cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl returning 0 return code during error

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 3 Jan 2012 23:41:56 +0100 (CET)

On Tue, 3 Jan 2012, Michael Lam wrote:

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

Sounds like a bug to me. Can you tell us which libcurl version this was and
can you show us the VERBOSE output of the relevant pieces of the protocol
exchange that lead to the failure?

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