curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: : Why resolve the dns locally when using a socks5 proxy

From: Daniel Stenberg via curl-users <>
Date: Thu, 15 Aug 2019 20:26:28 +0200 (CEST)

On Fri, 16 Aug 2019, Qiying Wang via curl-users wrote:

>> It already does. See --socks5-hostname or specify the proxy with --proxy
>> socks5h://

> The option --socks5-hostname specify the proxy server’s host name.
> But what I want is the following command line:

> curl --socks5

No, you want the following command line:

   curl --socks5-hostname

... as the --socks5-hostname documentation says:

  "Use the specified SOCKS5 proxy (and let the proxy resolve the host name)."

  / | Get the best commercial curl support there is - from me
                   | Private help, bug fixes, support, ports, new features

Received on 2019-08-15