blob: a5781370d7018f6f8f47c057c3baac193e84f562 [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-hostname
4Arg: <host[:port]>
5Help: SOCKS5 proxy, pass host name to proxy
6Added: 7.18.0
7Category: proxy
8Example: --socks5-hostname proxy.example:7000 $URL
9See-also: socks5 socks4a
10Multi: single
11---
12Use the specified SOCKS5 proxy (and let the proxy resolve the host name). If
13the port 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.
16socks5h://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 hostname proxy with
22--proxy using a socks5h:// 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.