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] size_t write_function(...) not catching all data?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 20 Jun 2005 21:11:54 +0200 (CEST)

On Mon, 20 Jun 2005, Jean-Philippe Barrette-LaPierre wrote:

>> Im doing a HTTP POST (upload) in curlPP with the following setup, however
>> write_function is only receiving about the first 50 bytes of data. Also i
>> noticed "size_t size" is always 1, even tho bufptr may contain around 50
>> bytes of data?
>
> You should send your questions to the libcurl's mailing-list.

Or, as an alternative, you can read the docs:

    http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTWRITEFUNCTION

A memorable quote:

   "The data area pointed at by the pointer ptr may be filled with at most size
   multiplied with nmemb number of bytes."

-- 
          -=- Daniel Stenberg -=- http://daniel.haxx.se -=-
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2005-06-20

These mail archives are generated by hypermail.

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

File upload with ASP.NET