Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

[cURLpp] unable treceive more than 15kb data from a http server

From: Rajesh Basa <>
Date: Sat, 6 Aug 2005 09:15:12 -0700 (PDT)

 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_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

Do you Yahoo!?
 Yahoo! Mail - You care about security. So do we.

cURLpp mailing list
Received on 2005-08-09

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET