preproxy.d 1.1 KB

123456789101112131415161718192021222324252627
  1. c: Copyright (C) 1998 - 2022, 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. ---
  11. Use the specified SOCKS proxy before connecting to an HTTP or HTTPS --proxy. In
  12. such a case curl first connects to the SOCKS proxy and then connects (through
  13. SOCKS) to the HTTP or HTTPS proxy. Hence pre proxy.
  14. The pre proxy string should be specified with a protocol:// prefix to specify
  15. alternative proxy protocols. Use socks4://, socks4a://, socks5:// or
  16. socks5h:// to request the specific SOCKS version to be used. No protocol
  17. specified will make curl default to SOCKS4.
  18. If the port number is not specified in the proxy string, it is assumed to be
  19. 1080.
  20. User and password that might be provided in the proxy string are URL decoded
  21. by curl. This allows you to pass in special characters such as @ by using %40
  22. or pass in a colon with %3a.
  23. If this option is used several times, the last one will be used.