2
0

preproxy.d 987 B

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