cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

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 <basarajesh_at_yahoo.com>
Date: Sat, 6 Aug 2005 09:15:12 -0700 (PDT)

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

These mail archives are generated by hypermail.

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

File upload with ASP.NET