Chinaunix

标题: curl POST的使用问题 [打印本页]

作者: lanclot    时间: 2007-11-06 15:52
标题: curl POST的使用问题
使用CURL 来登录GOOGLE PICASA

下面是GOOGLE   API中的说明
For the action URL parameter, use:
https://www.google.com/accounts/ClientLogin
API中的实例
POST /accounts/ClientLogin HTTP/1.0
        Content-type: application/x-www-form-urlencoded
Email=johndoe@gmail.com&Passwd=north23AZ&service=cl&source=Gulp-CalGulp-1.05
我是这样用的
$curl -d "Content-type: application/x-www-form-urlencoded  Email=luowei03@sina.com&password=12345678" https://www.google.com/accounts/ClientLogin
报错为Error=BadAuthentication   按API中的说法是因为我帐号或者密码错误,但是帐号密码确实是对的,盼指点




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2