mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
e7219c2bdc
Use imperative mood consistently for the first sentence describing an option. "Set this" instead "tell curl to set" or "this sets..." Plus some extra cleanups and rephrasing. Closes #13106
771 B
771 B
c | SPDX-License-Identifier | Long | Protocols | Help | Category | Added | Mutexed | Multi | See-also | Example | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. | curl | fail-with-body | HTTP | Fail on HTTP errors but save the body | http output | 7.76.0 | fail | boolean |
|
|
--fail-with-body
Return an error on server errors where the HTTP response code is 400 or greater). 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 option allows curl to output and save that content but also to return error 22.
This is an alternative option to --fail which makes curl fail for the same circumstances but without saving the content.