mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
ef305de95c
The keyword specifies how option works when specified multiple times: - single: the last provided value replaces the earlier ones - append: it supports being provided multiple times - boolean: on/off values - mutex: flag-like option that disable anoter flag The 'gen.pl' script then outputs the proper and unified language for each option's multi-use behavior in the generated man page. The multi: header is requires in each .d file and will cause build error if missing or set to an unknown value. Closes #9759
21 lines
742 B
Makefile
21 lines
742 B
Makefile
c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
SPDX-License-Identifier: curl
|
|
Long: fail-with-body
|
|
Protocols: HTTP
|
|
Help: Fail on HTTP errors but save the body
|
|
Category: http output
|
|
Added: 7.76.0
|
|
See-also: fail
|
|
Mutexed: fail
|
|
Example: --fail-with-body $URL
|
|
Multi: boolean
|
|
---
|
|
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 flag will still allow 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.
|