cURL / Mailing Lists / curl-library / Single Mail


Re: Failed writing body (-1 != 16384)

From: Ray Satiro via curl-library <>
Date: Wed, 11 Mar 2015 02:15:03 -0400

On 3/10/2015 11:41 PM, 鍏板ぉ wrote:
> Thanks for answering,I use libcurl 7.36,
> in the callback function ,
> size_t write_callback(char *ptr, size_t size, size_t nmemb, void
> *userdata);
> all the type I use is unsigned int,does that lead to the Failed
> writing body (-1 != 16384) ?

Please do not top-post [1]. I don't know why you'd see -1 because in the
version of libcurl you claim to be using the format specifier is %zu [2]
and that should print an unsigned integer not -1. Maybe someone else on
the list can shed some insight on what could be happening there. Try
getting the version string dynamically to see which libcurl is actually
being used:


If you need more help please do what I said in my previous e-mail. Also
can you post your write callback function?


List admin:
Received on 2015-03-11