Re: Closing connection #0
Date: Sat, 12 Apr 2008 01:43:46 +0200
Daniel Stenberg schrieb:
> On Fri, 11 Apr 2008, Peter Evertz wrote:
>> return -1; /* no more data left to deliver */
> Right, but the docs says you should return 0 then.
> The callback returns an unsigned value so your -1 becomes a very large
> number and recent libcurls consider you returning a value larger than
> the buffer size as a sign of a sever failure and will return error.
> You should really check the return code from curl_easy_perform() as
> that will offer clues when things go wrong.
the code is from the example "post-callback.c" in the current curl
release ( including the comment ). Nevertheless: Thanks for the hint. I
will try it on monday.
Received on 2008-04-12