I am using google API's for picasa with curl.
When i am using get album feed type everytime application runs it returns
around 5700 to 5800 bytes data
following are the options i am using
curl_easy_setopt(curl, CURLOPT_URL,request1);
curl_easy_setopt(curl, CURLOPT_HTTPHEADER,"GData-Version: 2");
curl_easy_setopt(curl,CURLOPT_HTTPGET,1L);
curl_easy_setopt(curl,CURLOPT_HEADER,0);
curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 1L);
res = curl_easy_perform(curl);
curl_easy_getinfo(curl, CURLINFO_LASTSOCKET, &sockextr);
after sending GET request to picasa API server i am using following code to
receive the data
for(;;)
{
char buf[18095];
wait_on_socket(sockfd, 1, 60000L);
res = curl_easy_recv(curl, buf, 18095, &iolen);
if(CURLE_OK != res)
break;
printf("Received %u bytes.\n", iolen);
strcat(XML,buf);
}
but all i am getting is limited data of 5700-5800 bytes, while the acutal
length is 3800 bytes only
How am i receiving more data?
Any idea
--
Regards,
Hemanshu Patel
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html