1--- 2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3SPDX-License-Identifier: curl 4Long: proto-redir 5Arg: <protocols> 6Help: Enable/disable PROTOCOLS on redirect 7Added: 7.20.2 8Category: connection curl 9Multi: single 10See-also: 11 - proto 12Example: 13 - --proto-redir =http,https $URL 14--- 15 16# `--proto-redir` 17 18Tells curl to limit what protocols it may use on redirect. Protocols denied by 19--proto are not overridden by this option. See --proto for how protocols are 20represented. 21 22Example, allow only HTTP and HTTPS on redirect: 23 24 curl --proto-redir -all,http,https http://example.com 25 26By default curl only allows HTTP, HTTPS, FTP and FTPS on redirects (added in 277.65.2). Specifying *all* or *+all* enables all protocols on redirects, which 28is not good for security. 29