xref: /aosp_15_r20/external/curl/docs/cmdline-opts/_PROXYPREFIX.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<!-- Copyright (C) Daniel Stenberg, <[email protected]>, et al. -->
2*6236dae4SAndroid Build Coastguard Worker<!-- SPDX-License-Identifier: curl -->
3*6236dae4SAndroid Build Coastguard Worker# PROXY PROTOCOL PREFIXES
4*6236dae4SAndroid Build Coastguard WorkerThe proxy string may be specified with a protocol:// prefix to specify
5*6236dae4SAndroid Build Coastguard Workeralternative proxy protocols. (Added in 7.21.7)
6*6236dae4SAndroid Build Coastguard Worker
7*6236dae4SAndroid Build Coastguard WorkerIf no protocol is specified in the proxy string or if the string does not
8*6236dae4SAndroid Build Coastguard Workermatch a supported one, the proxy is treated as an HTTP proxy.
9*6236dae4SAndroid Build Coastguard Worker
10*6236dae4SAndroid Build Coastguard WorkerThe supported proxy protocol prefixes are as follows:
11*6236dae4SAndroid Build Coastguard Worker## http://
12*6236dae4SAndroid Build Coastguard WorkerMakes it use it as an HTTP proxy. The default if no scheme prefix is used.
13*6236dae4SAndroid Build Coastguard Worker## https://
14*6236dae4SAndroid Build Coastguard WorkerMakes it treated as an **HTTPS** proxy.
15*6236dae4SAndroid Build Coastguard Worker## socks4://
16*6236dae4SAndroid Build Coastguard WorkerMakes it the equivalent of --socks4
17*6236dae4SAndroid Build Coastguard Worker## socks4a://
18*6236dae4SAndroid Build Coastguard WorkerMakes it the equivalent of --socks4a
19*6236dae4SAndroid Build Coastguard Worker## socks5://
20*6236dae4SAndroid Build Coastguard WorkerMakes it the equivalent of --socks5
21*6236dae4SAndroid Build Coastguard Worker## socks5h://
22*6236dae4SAndroid Build Coastguard WorkerMakes it the equivalent of --socks5-hostname
23