HTTP/1.1 403 Forbidden
Content-Type: text/plain
Cache-control: no-cache, no-store
Pragma: no-cache
Expires: Mon, 01-Jan-1990 00:00:00 GMT
Date: Wed, 10 Jun 2009 20:09:47 GMT
X-Content-Type-Options: nosniff
Content-Length: 24
Server: GFE/2.0
Error=BadAuthentication
code below:
CURL * curl;
CURLcode res;
string buffer;
string detect_url("https://www.google.com/accounts/ClientLogin");
curl = curl_easy_init();
char header[]=
"POST /accounts/ClientLogin HTTP/1.0 \r\n"
"Content-type: application/x-www-form-urlencoded \r\n"
"accountType=HOSTED_OR_GOOGLE&[email protected]&Passwd=hide&service=cl&source=Gcpm-
Cal-1 \r\n";
struct curl_slist *slist = NULL;
slist = curl_slist_append(slist, header);
if (curl)
{
curl_easy_setopt(curl,CURLOPT_URL,detect_url.c_str());
curl_easy_setopt(curl, CURLOPT_HEADER, slist);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
curl_easy_setopt(curl,CURLOPT_WRITEFUNCTION,writer);
curl_easy_setopt(curl,CURLOPT_WRITEDATA,&buffer);
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---