blob: c99a134e4f00d9f8bebef059137e29a132f0dfb8 [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: socks4
4Arg: <host[:port]>
5Help: SOCKS4 proxy on given host + port
6Added: 7.15.2
7Category: proxy
8Example: --socks4 hostname:4096 $URL
9See-also: socks4a socks5 socks5-hostname
10Multi: single
11---
12Use the specified SOCKS4 proxy. If the port number is not specified, it is
13assumed at port 1080. Using this socket type make curl resolve the host name
14and passing the address on to the proxy.
15
16To specify proxy on a unix domain socket, use localhost for host, e.g.
17socks4://localhost/path/to/socket.sock
18
19This option overrides any previous use of --proxy, as they are mutually
20exclusive.
21
22This option is superfluous since you can specify a socks4 proxy with --proxy
23using a socks4:// protocol prefix. (Added in 7.21.7)
24
25Since 7.52.0, --preproxy can be used to specify a SOCKS proxy at the same time
26--proxy is used with an HTTP/HTTPS proxy. In such a case curl first connects to
27the SOCKS proxy and then connects (through SOCKS) to the HTTP or HTTPS proxy.