1*6236dae4SAndroid Build Coastguard Worker--- 2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al. 3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl 4*6236dae4SAndroid Build Coastguard WorkerLong: proto-redir 5*6236dae4SAndroid Build Coastguard WorkerArg: <protocols> 6*6236dae4SAndroid Build Coastguard WorkerHelp: Enable/disable PROTOCOLS on redirect 7*6236dae4SAndroid Build Coastguard WorkerAdded: 7.20.2 8*6236dae4SAndroid Build Coastguard WorkerCategory: connection curl 9*6236dae4SAndroid Build Coastguard WorkerMulti: single 10*6236dae4SAndroid Build Coastguard WorkerSee-also: 11*6236dae4SAndroid Build Coastguard Worker - proto 12*6236dae4SAndroid Build Coastguard WorkerExample: 13*6236dae4SAndroid Build Coastguard Worker - --proto-redir =http,https $URL 14*6236dae4SAndroid Build Coastguard Worker--- 15*6236dae4SAndroid Build Coastguard Worker 16*6236dae4SAndroid Build Coastguard Worker# `--proto-redir` 17*6236dae4SAndroid Build Coastguard Worker 18*6236dae4SAndroid Build Coastguard WorkerLimit what protocols to allow on redirects. Protocols denied by --proto are 19*6236dae4SAndroid Build Coastguard Workernot overridden by this option. See --proto for how protocols are represented. 20*6236dae4SAndroid Build Coastguard Worker 21*6236dae4SAndroid Build Coastguard WorkerExample, allow only HTTP and HTTPS on redirect: 22*6236dae4SAndroid Build Coastguard Worker 23*6236dae4SAndroid Build Coastguard Worker curl --proto-redir -all,http,https http://example.com 24*6236dae4SAndroid Build Coastguard Worker 25*6236dae4SAndroid Build Coastguard WorkerBy default curl only allows HTTP, HTTPS, FTP and FTPS on redirects 26*6236dae4SAndroid Build Coastguard Worker(added in 7.65.2). Specifying *all* or *+all* enables all protocols on 27*6236dae4SAndroid Build Coastguard Workerredirects, which is not good for security. 28