xref: /curl/docs/cmdline-opts/_PROXYPREFIX.md (revision 2494b8dd)
1<!-- Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -->
2<!-- SPDX-License-Identifier: curl -->
3# PROXY PROTOCOL PREFIXES
4The proxy string may be specified with a protocol:// prefix to specify
5alternative proxy protocols. (Added in 7.21.7)
6
7If no protocol is specified in the proxy string or if the string does not
8match a supported one, the proxy is treated as an HTTP proxy.
9
10The supported proxy protocol prefixes are as follows:
11## http://
12Makes it use it as an HTTP proxy. The default if no scheme prefix is used.
13## https://
14Makes it treated as an **HTTPS** proxy.
15## socks4://
16Makes it the equivalent of --socks4
17## socks4a://
18Makes it the equivalent of --socks4a
19## socks5://
20Makes it the equivalent of --socks5
21## socks5h://
22Makes it the equivalent of --socks5-hostname
23