cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: retrieving files by http won't give me the whole file !

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 15 Nov 2004 19:58:26 +0100 (CET)

On Mon, 15 Nov 2004, Pierre Ancelot wrote:

> so i make as much threads as i need to and from them, i call libcurl as
> this:

...

> return 0;

This makes your write callback return error on each invoke so you'll never get
it called more than once per thread.

Why don't you return the proper value instead? The number of bytes you took
care of (which in working cases is the amount of bytes passed in to the
function).

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-11-15