1 Long: proto-redir 2 Arg: <protocols> 3 Help: Enable/disable PROTOCOLS on redirect 4 Added: 7.20.2 5 Category: connection curl 6 Example: --proto-redir =http,https $URL 7 --- 8 Tells curl to limit what protocols it may use on redirect. Protocols denied by 9 --proto are not overridden by this option. See --proto for how protocols are 10 represented. 11 12 Example, allow only HTTP and HTTPS on redirect: 13 14 curl --proto-redir -all,http,https http://example.com 15 16 By default curl will only allow HTTP, HTTPS, FTP and FTPS on redirect (since 17 7.65.2). Specifying *all* or *+all* enables all protocols on redirects, which 18 is not good for security. 19