blob: c46c571bfe970f98a04ed0dc4ec958c8585e0378 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001Long: fail
2Short: f
3Protocols: HTTP
4Help: Fail silently (no output at all) on HTTP errors
5---
6Fail silently (no output at all) on server errors. This is mostly done to
7better enable scripts etc to better deal with failed attempts. In normal cases
8when an HTTP server fails to deliver a document, it returns an HTML document
9stating so (which often also describes why and more). This flag will prevent
10curl from outputting that and return error 22.
11
12This method is not fail-safe and there are occasions where non-successful
13response codes will slip through, especially when authentication is involved
14(response codes 401 and 407).