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