proxy.d 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Long: proxy
  2. Short: x
  3. Arg: [protocol://]host[:port]
  4. Help: Use this proxy
  5. Category: proxy
  6. Example: --proxy http://proxy.example $URL
  7. ---
  8. Use the specified proxy.
  9. The proxy string can be specified with a protocol:// prefix. No protocol
  10. specified or http:// will be treated as HTTP proxy. Use socks4://, socks4a://,
  11. socks5:// or socks5h:// to request a specific SOCKS version to be used.
  12. (The protocol support was added in curl 7.21.7)
  13. HTTPS proxy support via https:// protocol prefix was added in 7.52.0 for
  14. OpenSSL, GnuTLS and NSS.
  15. Unrecognized and unsupported proxy protocols cause an error since 7.52.0.
  16. Prior versions may ignore the protocol and use http:// instead.
  17. If the port number is not specified in the proxy string, it is assumed to be
  18. 1080.
  19. This option overrides existing environment variables that set the proxy to
  20. use. If there's an environment variable setting a proxy, you can set proxy to
  21. \&"" to override it.
  22. All operations that are performed over an HTTP proxy will transparently be
  23. converted to HTTP. It means that certain protocol specific operations might
  24. not be available. This is not the case if you can tunnel through the proxy, as
  25. one with the --proxytunnel option.
  26. User and password that might be provided in the proxy string are URL decoded
  27. by curl. This allows you to pass in special characters such as @ by using %40
  28. or pass in a colon with %3a.
  29. The proxy host can be specified the exact same way as the proxy environment
  30. variables, including the protocol prefix (http://) and the embedded user +
  31. password.
  32. If this option is used several times, the last one will be used.