cURL / Mailing Lists / curl-library / Single Mail

curl-library

(no subject)

From: Pravin Jade <pravin.jade_at_lionbridge.com>
Date: Mon, 17 Nov 2003 10:28:56 +0530

Hi list,
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?

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.
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?

Is there any other option in Libcurl to know no. bytes transferred before
failure?

Regards,
PRAVIN

-------------------------------------------------------
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