blob: b6f0f0f3626f262785e1e7c8cee1ac239687a6d4 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Long: proto-redir
4Arg: <protocols>
5Help: Enable/disable PROTOCOLS on redirect
6Added: 7.20.2
7Category: connection curl
8Example: --proto-redir =http,https $URL
9See-also: proto
10Multi: single
11---
12Tells curl to limit what protocols it may use on redirect. Protocols denied by
13--proto are not overridden by this option. See --proto for how protocols are
14represented.
15
16Example, allow only HTTP and HTTPS on redirect:
17
18 curl --proto-redir -all,http,https http://example.com
19
20By default curl will only allow HTTP, HTTPS, FTP and FTPS on redirect (since
217.65.2). Specifying *all* or *+all* enables all protocols on redirects, which
22is not good for security.