2016-11-16 08:20:36 -05:00
|
|
|
Long: proto-redir
|
|
|
|
Arg: <protocols>
|
|
|
|
Help: Enable/disable PROTOCOLS on redirect
|
|
|
|
Added: 7.20.2
|
2020-07-13 08:15:04 -04:00
|
|
|
Category: connection curl
|
2016-11-16 08:20:36 -05:00
|
|
|
---
|
|
|
|
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
|
|
|
|
|
2019-07-16 03:35:54 -04:00
|
|
|
By default curl will allow HTTP, HTTPS, FTP and FTPS on redirect (7.65.2).
|
|
|
|
Older versions of curl allowed all protocols on redirect except several
|
|
|
|
disabled for security reasons: Since 7.19.4 FILE and SCP are disabled, and
|
2021-03-22 11:50:57 -04:00
|
|
|
since 7.40.0 SMB and SMBS are also disabled. Specifying *all* or *+all*
|
2019-07-16 03:35:54 -04:00
|
|
|
enables all protocols on redirect, including those disabled for security.
|