curl-users
RE: detect if an upload/download is finished or failed
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 2 Jan 2004 14:03:22 +0100 (CET)
Date: Fri, 2 Jan 2004 14:03:22 +0100 (CET)
On Tue, 30 Dec 2003, Sebastien WILLEMIJNS wrote:
> hum... notion of errorlevel programmed by default in CURL was very
> detailed sic !
It's called exit codes in the curl manual, as that's the unix name for it.
> generally, people wants to know if transferts failed or not..
Yes. And if it fails, they want to know why. That's why you can use the exit
code to see if it worked (it returns zero) or why it failed (a non-zero
value).
> i'm only want to know if tranferts fails or not
Use the exit code as Kevin showed.
-- 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=clickReceived on 2004-01-02