cURL / Mailing Lists / curl-library / Single Mail

curl-library

bytes transferred before failure

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 17 Dec 2003 09:37:02 +0100 (CET)

On Mon, 17 Nov 2003, Pravin Jade wrote:

(please use a sensible subject)

> I am uploading a file to server using Libcurl with windows 2000 OS.. For
> aborting upload I can use READ_CALLBACK function to return a zero value. Am
> I right?

Yes.

> In case of failure of uploading, I want to resume it from where it stopped.
> So I want to know how much bytes were transferred before failure occurred.

You could sum up the bytes you've returned yourself...

> I searched your documents and found PROGRESS_CALLBACK function, which takes
> "ulnow" and "ultotal" as parameters. But when I printed " ulnow " (Bytes
> uploaded when PROGRESS_CALLBACK called), it shows minus value. Is it a wrong
> behavior of libcurl?

I think this part in libcurl works. I think your code might be doing the wrong
thing. Of course I could be wrong.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2003-12-17