curl-library
Re: size_t write_function(...) not catching all data?
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 21 Jun 2005 07:31:59 +0200 (CEST)
Date: Tue, 21 Jun 2005 07:31:59 +0200 (CEST)
On Tue, 21 Jun 2005, leighm_at_linuxbandwagon.com 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?
"The size of the data pointed to by ptr is size multiplied with nmemb"
> What should write_function return?
"Return the number of bytes actually taken care of."
> Any ideas on where to check?
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTWRITEFUNCTION
(and I already replied this to the curlpp list where you asked this in the
first place...)
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-06-21