Re: [man-pages] Discrepancy between --fail-with-body and --fail
Daniel Stenberg via curl-users <[email protected]>
| Newsgroups | gmane.comp.web.curl.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 24 Apr 2024, Vincent MAILHOL via curl-users wrote: > 1. --fail-with-body returns an error if the http response code is > 400 or greater > > 2. --fail-with-body and --fail would fail under the same circumstances > > 3. for --fail, error code between 401 and 407 would "slip through" > > Those three conditions result in a logical contradiction. At least one of > those should be incorrect. To the extent of my knowledge, the third one > seems incorrect, but not fully sure of that. I think (2) is incorrect. The 401 and 407 exceptions mentioned for --fail does not seem to exist for --fail-with-body. -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.html