mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
TODO: 17.14 --fail without --location should treat 3xx as a failure
Closes #727
This commit is contained in:
parent
9cf8577eb3
commit
7e5f3c3781
13
docs/TODO
13
docs/TODO
@ -129,6 +129,7 @@
|
|||||||
17.11 -w output to stderr
|
17.11 -w output to stderr
|
||||||
17.12 keep running, read instructions from pipe/socket
|
17.12 keep running, read instructions from pipe/socket
|
||||||
17.13 support metalink in http headers
|
17.13 support metalink in http headers
|
||||||
|
17.14 --fail without --location should treat 3xx as a failure
|
||||||
|
|
||||||
18. Build
|
18. Build
|
||||||
18.1 roffit
|
18.1 roffit
|
||||||
@ -793,6 +794,18 @@ that doesn't exist on the server, just like --ftp-create-dirs.
|
|||||||
See also https://lists.gnu.org/archive/html/bug-wget/2015-06/msg00034.html for
|
See also https://lists.gnu.org/archive/html/bug-wget/2015-06/msg00034.html for
|
||||||
an implematation of this in wget.
|
an implematation of this in wget.
|
||||||
|
|
||||||
|
17.14 --fail without --location should treat 3xx as a failure
|
||||||
|
|
||||||
|
To allow a command line like this to detect a redirect and consider it a
|
||||||
|
failure:
|
||||||
|
|
||||||
|
curl -v --fail -O https://example.com/curl-7.48.0.tar.gz
|
||||||
|
|
||||||
|
... --fail must treat 3xx responses as failures too. The least problematic
|
||||||
|
way to implement this is probably to add that new logic in the command line
|
||||||
|
tool only and not in the underlying CURLOPT_FAILONERROR logic.
|
||||||
|
|
||||||
|
|
||||||
18. Build
|
18. Build
|
||||||
|
|
||||||
18.1 roffit
|
18.1 roffit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user