aboutsummaryrefslogtreecommitdiff
path: root/docs/curl.1
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-11-12 14:19:29 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-14 08:35:40 +0100
commitf82bbe01c8835b8788c69f05362bb789766473cd (patch)
treee5c8bd5b8b10e24c350d0cfa830875f53cbc31ca /docs/curl.1
parentf682156a4fc6c43fb38db4abda49b9a1bc1ed368 (diff)
curl: add --fail-early
Exit with an error on the first transfer error instead of continuing to do the rest of the URLs. Discussion: https://curl.haxx.se/mail/archive-2016-11/0038.html
Diffstat (limited to 'docs/curl.1')
-rw-r--r--docs/curl.117
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/curl.1 b/docs/curl.1
index 8434d6b7a..44bfe5b0c 100644
--- a/docs/curl.1
+++ b/docs/curl.1
@@ -620,6 +620,23 @@ or no response at all is received, the verification fails.
This is currently only implemented in the OpenSSL, GnuTLS and NSS backends.
(Added in 7.41.0)
+.IP "--fail-early"
+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
+similar.
+
+This option will apply for all given URLs even if you use \fI--next\fP.
+
+(Added in 7.52.0)
.IP "--false-start"
(SSL) Tells curl to use false start during the TLS handshake. False start is a