blob: b8eb77fa4f53889e5328680389e6383c71a1fbe3 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001Long: preproxy
2Arg: [protocol://]host[:port]
3Help: Use this proxy first
4Added: 7.52.0
5---
6Use the specified SOCKS proxy before connecting to an HTTP or HTTPS --proxy. In
7such a case curl first connects to the SOCKS proxy and then connects (through
8SOCKS) to the HTTP or HTTPS proxy. Hence pre proxy.
9
10The pre proxy string should be specified with a protocol:// prefix to specify
11alternative proxy protocols. Use socks4://, socks4a://, socks5:// or
12socks5h:// to request the specific SOCKS version to be used. No protocol
13specified will make curl default to SOCKS4.
14
15If the port number is not specified in the proxy string, it is assumed to be
161080.
17
18User and password that might be provided in the proxy string are URL decoded
19by curl. This allows you to pass in special characters such as @ by using %40
20or pass in a colon with %3a.
21
22If this option is used several times, the last one will be used.