cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: http upload: how to stop on error (after continue)?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 22 Sep 2008 23:32:10 +0200 (CEST)

On Sat, 23 Aug 2008, Craig Perras wrote:

> My large-file upload app does various checks and may return http errors
> (401,404,416,etc), but curl continues uploading even if an error is sent.

Getting back to this topic, I'm quite sure the -f/--fail option makes this
case actually return an error as soon as the >= 400 return code is received by
curl. Thus, I think I'll refrain from changing this behavior at this point.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-09-22