curl / Mailing Lists / curl-users / Single Mail


[PATCH] Intend to add --fail-early

From: Daniel Stenberg <>
Date: Sat, 12 Nov 2016 14:25:28 +0100 (CET)


I plan to add this new command line option, as shown in the attached patch.

Comments, feedback and complaints are welcome!

The curl man page documentation for the new option is shown below.



Fail and exit on first detected error.

When curl is used to do multiple transfers on the command line, it will
attempt to operate on each given URL, one by one. By default, it will ignore
errors if there are more URLs given and the last URL's success will determine
the error code curl returns. So early failures will be "hidden" by subsequent
successful transfers.

Using this option, curl will instead return an error on the first transfers
that fails, independent on the amount of more URLs that are given on the
command line. This way, no transfer failures go undetected by scripts and


List admin:

Received on 2016-11-12