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