Hi,
I am unable to receive more than 16kb data from a http server using libcurl. Please tell me how to solve this problem.
{
....
CURL* handle;
curl_global_init(CURL_GLOBAL_ALL);
handle=curl_easy_init();
curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, write_data);
curl_easy_setopt(handle, CURLOPT_URL, url.c_str());
curl_easy_setopt(handle, CURLOPT_POSTFIELDS, postData.c_str());
curl_easy_setopt(handle,CURLOPT_BUFFERSIZE , 100000);
curl_easy_perform(handle); // post away!
}
{
size_t write_data(void *buffer, size_t size, size_t nmemb, void *userp)
{
cout<<"size="<<size <<" nmemb=" <<nmemb<<endl;
}
The output is
size=1 nmemb=16034.
But the http server is sending 32kb of data.
Best Regards
Rajesh
---------------------------------
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2005-08-09