cURL / Mailing Lists / curl-library / Single Mail

curl-library

Curl returning 0 return code during error

From: Michael Lam <Michael.Lam_at_silkroad.com>
Date: Tue, 3 Jan 2012 14:26:41 -0500

we were running curl to ftp a file to the client, we got the destination folder wrong but somehow still got 0 as return code. The return message told us there was error. This is very confusing, is there a way to fix this without having to parse the return message? I don't think --fail would work because it pertains to http servers. Thanks.

From my Android phone on T-Mobile. The first nationwide 4G network.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-03