使用curl通过SOCKS5代理(tor)执行https请求

SKu*_*bin 37 proxy curl

我的系统(debian)上有TOR设置,经过测试并运行良好.我想要做的是通过此设置代理HTTPS请求.

只是https工作: curl https://www.reg.ru/whois/?dname=google.com

Tor + http工作 curl --socks5 127.0.0.1:9050 http://stackoverflow.com/

但是使用https的tor不起作用:

curl --socks5 127.0.0.1:9050 https://www.torproject.org/download/download.html.en

我收到一个错误 curl: (6) Failed to resolve "www.torproject.org" for SOCKS5 connect.

我怎么解决这个问题?

And*_*ris 41

我有类似的问题,使用选项--socks5-hostname而不是--socks5指定curl的代理解决了这个问题.

  • 我遇到了“curl: (7) Unable to receive initial SOCKS5 response”,不知道为什么。 (2认同)