c9eeeab1d778e5b337639fa91deb51bffbc984d7
[platform/upstream/curl.git] / docs / cmdline-opts / proto-redir.d
1 Long: proto-redir
2 Arg: <protocols>
3 Help: Enable/disable PROTOCOLS on redirect
4 Added: 7.20.2
5 ---
6 Tells 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
8 represented.
9
10 Example, allow only HTTP and HTTPS on redirect:
11
12  curl --proto-redir -all,http,https http://example.com
13
14 By default curl will allow all protocols on redirect except several disabled
15 for security reasons: Since 7.19.4 FILE and SCP are disabled, and since 7.40.0
16 SMB and SMBS are also disabled. Specifying \fIall\fP or \fI+all\fP enables all
17 protocols on redirect, including those disabled for security.