mirror of
https://github.com/moparisthebest/curl
synced 2024-11-18 07:25:14 -05:00
8a964cb217
Prevent both --fail and --fail-with-body on the same command line. Verify with test 349, 360 and 361. Closes #6449
17 lines
673 B
Makefile
17 lines
673 B
Makefile
Long: fail
|
|
Short: f
|
|
Protocols: HTTP
|
|
Help: Fail silently (no output at all) on HTTP errors
|
|
See-also: fail-with-body
|
|
Category: important http
|
|
---
|
|
Fail silently (no output at all) on server errors. This is mostly done to
|
|
enable scripts etc to better deal with failed attempts. In normal cases
|
|
when an HTTP server fails to deliver a document, it returns an HTML document
|
|
stating so (which often also describes why and more). This flag will prevent
|
|
curl from outputting that and return error 22.
|
|
|
|
This method is not fail-safe and there are occasions where non-successful
|
|
response codes will slip through, especially when authentication is involved
|
|
(response codes 401 and 407).
|