quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

socks4.md (1081B)


      1 ---
      2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
      3 SPDX-License-Identifier: curl
      4 Long: socks4
      5 Arg: <host[:port]>
      6 Help: SOCKS4 proxy on given host + port
      7 Added: 7.15.2
      8 Category: proxy
      9 Multi: single
     10 See-also:
     11   - socks4a
     12   - socks5
     13   - socks5-hostname
     14 Example:
     15   - --socks4 hostname:4096 $URL
     16 ---
     17 
     18 # `--socks4`
     19 
     20 Use the specified SOCKS4 proxy. If the port number is not specified, it is
     21 assumed at port 1080. Using this socket type makes curl resolve the hostname
     22 and pass the address on to the proxy.
     23 
     24 To specify proxy on a Unix domain socket, use localhost for host, e.g.
     25 `socks4://localhost/path/to/socket.sock`
     26 
     27 This option overrides any previous use of --proxy, as they are mutually
     28 exclusive.
     29 
     30 This option is superfluous since you can specify a socks4 proxy with --proxy
     31 using a socks4:// protocol prefix. (Added in 7.21.7)
     32 
     33 --preproxy can be used to specify a SOCKS proxy at the same time proxy is used
     34 with an HTTP/HTTPS proxy (added in 7.52.0). In such a case, curl first
     35 connects to the SOCKS proxy and then connects (through SOCKS) to the HTTP or
     36 HTTPS proxy.