cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

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

From: Jean-Philippe Barrette-LaPierre <jpb_at_rrette.com>
Date: Mon, 8 Aug 2005 18:54:14 -0400

On Saturday 06 August 2005 12:15, Rajesh Basa wrote:
> Hi,
> I am unable to receive more than 16kb data from a http server using
> libcurl. Please tell me how to solve this problem.
>

This is a libcurl related problem. Remember that cURLpp (that you're not
using) is a C++ wrapper for libcURL. You can send some questions to their
mailing-list:

http://cool.haxx.se/mailman/listinfo/curl-library

> {
> ....
>
> 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.

-- 
Jean-Philippe Barrette-LaPierre
cURLpp maintener (http://rrette.com/curlpp.html)
_______________________________________________
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