blob: c9eeeab1d778e5b337639fa91deb51bffbc984d7 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001Long: proto-redir
2Arg: <protocols>
3Help: Enable/disable PROTOCOLS on redirect
4Added: 7.20.2
5---
6Tells curl to limit what protocols it may use on redirect. Protocols denied by
7--proto are not overridden by this option. See --proto for how protocols are
8represented.
9
10Example, allow only HTTP and HTTPS on redirect:
11
12 curl --proto-redir -all,http,https http://example.com
13
14By default curl will allow all protocols on redirect except several disabled
15for security reasons: Since 7.19.4 FILE and SCP are disabled, and since 7.40.0
16SMB and SMBS are also disabled. Specifying \fIall\fP or \fI+all\fP enables all
17protocols on redirect, including those disabled for security.