2
0

preproxy.d 1.0 KB

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