mirror of
https://github.com/curl/curl.git
synced 2024-12-21 06:50:10 +08:00
ddaa85893d
gen.pl now generates a warning if the "See Also" field is not filled in for a command line option All command line options now provide one or more related options. 167 "See alsos" added! Closes #8019
20 lines
634 B
Makefile
20 lines
634 B
Makefile
Long: proto-redir
|
|
Arg: <protocols>
|
|
Help: Enable/disable PROTOCOLS on redirect
|
|
Added: 7.20.2
|
|
Category: connection curl
|
|
Example: --proto-redir =http,https $URL
|
|
See-also: proto
|
|
---
|
|
Tells curl to limit what protocols it may use on redirect. Protocols denied by
|
|
--proto are not overridden by this option. See --proto for how protocols are
|
|
represented.
|
|
|
|
Example, allow only HTTP and HTTPS on redirect:
|
|
|
|
curl --proto-redir -all,http,https http://example.com
|
|
|
|
By default curl will only allow HTTP, HTTPS, FTP and FTPS on redirect (since
|
|
7.65.2). Specifying *all* or *+all* enables all protocols on redirects, which
|
|
is not good for security.
|