blob: e3afbaf6b160f630af4811af4302fdfc7004329f [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: socks4a
4Arg: <host[:port]>
5Help: SOCKS4a proxy on given host + port
6Added: 7.18.0
7Category: proxy
8Example: --socks4a hostname:4096 $URL
9See-also: socks4 socks5 socks5-hostname
10Multi: single
11---
12Use the specified SOCKS4a proxy. If the port number is not specified, it is
13assumed at port 1080. This asks the proxy to resolve the host name.
14
15To specify proxy on a unix domain socket, use localhost for host, e.g.
16socks4a://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 socks4a proxy with --proxy
22using a socks4a:// 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.