cURL / Mailing Lists / curl-users / Single Mail

curl-users

Bug: "--fail" stops ALL downloads! It did not do that in earlier versions

From: Harald E Brandt <hblist_at_bragit.com>
Date: Mon, 2 Jul 2012 23:08:17 +0200

Version 7.24.0 of curl behaves totally different from version 7.21.4 and earlier as regards '--fail'.
Version 7.24.0 is the version included in Mac OS X 10.8 build 12A248 ("OS X Mountain Lion Developer Preview 4"), so that's why I refer to that version.

Using --fail shall cause curl to output error code 22 instead of downloading the file associated with a 404 return code (or other failure codes).
With multiple URLs by using part sets, this has worked fine in e.g version 7.21.4, which is the one included with Mac OS X 10.7.4 (Lion), but also earlier versions of curl behave the same as that one. The result has always been that curl proceeds through all urls, writing error code 22 on stderr for failing urls and producing no files for them, but it will not stop curl from downloading the other urls.

With version 7.24.0 of curl, however, and using multiple URLs by using part sets, it simply stops all downloads and exits as soon as it hits on an url that returns e.g a 404!

To me, this is a serious bug, but I wonder if this is an intentional change?
I can't find anything in the change log (http://curl.haxx.se/changes.html) concerning this.
(My own workaround will have to be an embedded older curl.)

Details of the tested curl version: version 7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0

/Regards,
/Harald

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-07-02