socks5.d 1.1 KB

1234567891011121314151617181920212223242526272829
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <[email protected]>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: socks5
  4. Arg: <host[:port]>
  5. Help: SOCKS5 proxy on given host + port
  6. Added: 7.18.0
  7. Category: proxy
  8. Example: --socks5 proxy.example:7000 $URL
  9. See-also: socks5-hostname socks4a
  10. ---
  11. Use the specified SOCKS5 proxy - but resolve the host name locally. If the
  12. port number is not specified, it is assumed at port 1080.
  13. To specify proxy on a unix domain socket, use localhost for host, e.g.
  14. socks5://localhost/path/to/socket.sock
  15. This option overrides any previous use of --proxy, as they are mutually
  16. exclusive.
  17. This option is superfluous since you can specify a socks5 proxy with --proxy
  18. using a socks5:// protocol prefix. (Added in 7.21.7)
  19. Since 7.52.0, --preproxy can be used to specify a SOCKS proxy at the same time
  20. --proxy is used with an HTTP/HTTPS proxy. In such a case curl first connects to
  21. the SOCKS proxy and then connects (through SOCKS) to the HTTP or HTTPS proxy.
  22. If this option is used several times, the last one will be used.
  23. This option (as well as --socks4) does not work with IPV6, FTPS or LDAP.