Added: 7.15.2
Category: proxy
Multi: single
+Mutexed: proxy socks4a socks5 socks5-hostname
See-also:
- socks4a
- socks5
assumed at port 1080. Using this socket type makes curl resolve the hostname
and pass the address on to the proxy.
-To specify proxy on a Unix domain socket, use localhost for host, e.g.
-`socks4://localhost/path/to/socket.sock`
+To specify the proxy on a Unix domain socket, use localhost for host and
+append the absolute path to the domain socket. For example:
+`socks4://localhost/path/to/socket.sock` (the scheme may be omitted).
This option overrides any previous use of --proxy, as they are mutually
exclusive.
Added: 7.18.0
Category: proxy
Multi: single
+Mutexed: proxy socks4 socks5 socks5-hostname
See-also:
- socks4
- socks5
Use the specified SOCKS4a proxy. If the port number is not specified, it is
assumed at port 1080. This asks the proxy to resolve the hostname.
-To specify proxy on a Unix domain socket, use localhost for host, e.g.
-`socks4a://localhost/path/to/socket.sock`
+To specify the proxy on a Unix domain socket, use localhost for host and
+append the absolute path to the domain socket. For example:
+`socks4a://localhost/path/to/socket.sock` (the scheme may be omitted).
This option overrides any previous use of --proxy, as they are mutually
exclusive.
Added: 7.18.0
Category: proxy
Multi: single
+Mutexed: proxy socks4 socks4a socks5
See-also:
- socks5
- socks4a
Use the specified SOCKS5 proxy (and let the proxy resolve the hostname). If
the port number is not specified, it is assumed at port 1080.
-To specify proxy on a Unix domain socket, use localhost for host, e.g.
-`socks5h://localhost/path/to/socket.sock`
+To specify the proxy on a Unix domain socket, use localhost for host and
+append the absolute path to the domain socket. For example:
+`socks5h://localhost/path/to/socket.sock` (the scheme may be omitted).
This option overrides any previous use of --proxy, as they are mutually
exclusive.
See-also:
- socks5-hostname
- socks4a
+Mutexed: proxy socks4 socks4a socks5-hostname
Example:
- --socks5 proxy.example:7000 $URL
+ - --socks5 localhost/path/unix-domain $URL
---
# `--socks5`
Use the specified SOCKS5 proxy - but resolve the hostname locally. If the
port number is not specified, it is assumed at port 1080.
-To specify proxy on a Unix domain socket, use localhost for host, e.g.
-`socks5://localhost/path/to/socket.sock`
+To specify the proxy on a Unix domain socket, use localhost for host and
+append the absolute path to the domain socket. For example:
+`socks5://localhost/path/to/socket.sock` (the scheme may be omitted).
This option overrides any previous use of --proxy, as they are mutually
exclusive.
Setting the proxy string to "" (an empty string) explicitly disables the use
of a proxy, even if there is an environment variable set for it.
-Unix domain sockets are supported for socks proxies since 7.84.0. Set
-localhost for the host part. e.g. socks5h://localhost/path/to/socket.sock
+Unix domain sockets are supported for SOCKS proxies. Set `localhost` for the
+host part and append the absolute path to the domain socket. For example:
+`socks5h://localhost/path/to/socket.sock`
When you set a hostname to use, do not assume that there is any particular
single port number used widely for proxies. Specify it.