proxy.d 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: proxy
  4. Short: x
  5. Arg: [protocol://]host[:port]
  6. Help: Use this proxy
  7. Category: proxy
  8. Example: --proxy http://proxy.example $URL
  9. Added: 4.0
  10. See-also: socks5 proxy-basic
  11. Multi: single
  12. ---
  13. Use the specified proxy.
  14. The proxy string can be specified with a protocol:// prefix. No protocol
  15. specified or http:// will be treated as HTTP proxy. Use socks4://, socks4a://,
  16. socks5:// or socks5h:// to request a specific SOCKS version to be used.
  17. (Added in 7.21.7)
  18. Unix domain sockets are supported for socks proxy. Set localhost for the host
  19. part. e.g. socks5h://localhost/path/to/socket.sock
  20. HTTPS proxy support via https:// protocol prefix was added in 7.52.0 for
  21. OpenSSL, GnuTLS and NSS.
  22. Unrecognized and unsupported proxy protocols cause an error since 7.52.0.
  23. Prior versions may ignore the protocol and use http:// instead.
  24. If the port number is not specified in the proxy string, it is assumed to be
  25. 1080.
  26. This option overrides existing environment variables that set the proxy to
  27. use. If there's an environment variable setting a proxy, you can set proxy to
  28. "" to override it.
  29. All operations that are performed over an HTTP proxy will transparently be
  30. converted to HTTP. It means that certain protocol specific operations might
  31. not be available. This is not the case if you can tunnel through the proxy, as
  32. one with the --proxytunnel option.
  33. User and password that might be provided in the proxy string are URL decoded
  34. by curl. This allows you to pass in special characters such as @ by using %40
  35. or pass in a colon with %3a.
  36. The proxy host can be specified the same way as the proxy environment
  37. variables, including the protocol prefix (http://) and the embedded user +
  38. password.