1 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 2 SPDX-License-Identifier: curl 3 Long: proto-redir 4 Arg: <protocols> 5 Help: Enable/disable PROTOCOLS on redirect 6 Added: 7.20.2 7 Category: connection curl 8 Example: --proto-redir =http,https $URL 9 See-also: proto 10 Multi: single 11 --- 12 Tells 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 14 represented. 15 16 Example, allow only HTTP and HTTPS on redirect: 17 18 curl --proto-redir -all,http,https http://example.com 19 20 By default curl only allows HTTP, HTTPS, FTP and FTPS on redirects (added in 21 7.65.2). Specifying *all* or *+all* enables all protocols on redirects, which 22 is not good for security. 23