Hi all,
My code is
m_HeaderList= curl_slist_append(m_HeaderList, "Content-type:
image/jpeg");
m_HeaderList= curl_slist_append(m_HeaderList, "Authorization:
GoogleLogin
auth=DQAAAMEAAAB0JlUa7q3aeFJJco1_4gFheHNErhg50");
m_HeaderList= curl_slist_append(m_HeaderList, "GData-Version:
2");
..............................
curl_formadd(&post, &last,
CURLFORM_COPYNAME, "",
CURLFORM_FILE, m_strFileName.c_str(),
CURLFORM_CONTENTTYPE,"image/jpeg",
CURLFORM_END);
curl_easy_setopt(m_pHandle, CURLOPT_POSTFIELDS, "");
curl_easy_setopt(m_pHandle, CURLOPT_POSTFIELDSIZE,imagesize);
curl_easy_setopt(m_pHandle, CURLOPT_HTTPPOST, post);
I am getting following error message
< HTTP/1.1 400 Bad Request
< Expires: Mon, 18 Jul 2011 04:28:59 GMT
< Date: Mon, 18 Jul 2011 04:28:59 GMT
< Cache-Control: private, max-age=0, must-revalidate
* Added cookie _rtok="fqZzMVkDJ_Cd" for domain picasaweb.google.com,
path /, expire 28
< Set-Cookie: _rtok=fqZzMVkDJ_Cd; Path=/; HttpOnly
* Added cookie S="photos_html=tCzDceWavRXCDDsPVHY-Ig" for domain
google.com, path /, expire 28
< Set-Cookie: S=photos_html=tCzDceWavRXCDDsPVHY-Ig;
Domain=.google.com; Path=/; HttpOnly
< Content-Type: text/html; charset=UTF-8
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Server: GSE
< Transfer-Encoding: chunked
<
* Expire cleared
* Closing connection #0
Kindly help me to resolve the issue.
Thanks in advance
regards,
IBroy
--
You received this message because you are subscribed to the Google Groups
"Google Picasa Web Albums 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-picasa-data-api?hl=en.