proxy.d 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. c: Copyright (C) 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:// it is treated as an HTTP proxy. Use socks4://,
  16. socks4a://, socks5:// or socks5h:// to request a specific SOCKS version to be
  17. used. (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 works set with the https:// protocol prefix for OpenSSL
  21. and GnuTLS (added in 7.52.0). It also works for BearSSL, mbedTLS, rustls,
  22. Schannel, Secure Transport and wolfSSL (added in 7.87.0).
  23. Unrecognized and unsupported proxy protocols cause an error (added in 7.52.0).
  24. Ancient curl versions ignored unknown schemes and used http:// instead.
  25. If the port number is not specified in the proxy string, it is assumed to be
  26. 1080.
  27. This option overrides existing environment variables that set the proxy to
  28. use. If there is an environment variable setting a proxy, you can set proxy to
  29. "" to override it.
  30. All operations that are performed over an HTTP proxy are transparently
  31. converted to HTTP. It means that certain protocol specific operations might
  32. not be available. This is not the case if you can tunnel through the proxy, as
  33. one with the --proxytunnel option.
  34. User and password that might be provided in the proxy string are URL decoded
  35. by curl. This allows you to pass in special characters such as @ by using %40
  36. or pass in a colon with %3a.
  37. The proxy host can be specified the same way as the proxy environment
  38. variables, including the protocol prefix (http://) and the embedded user +
  39. password.
  40. When a proxy is used, the active FTP mode as set with --ftp-port, cannot be
  41. used.