Wrap tor socks proxy with http proxy in command line

一个人想着一个人 提交于 2019-12-09 04:41:24

You should change:

export http_proxy=127.0.0.1:9050 https_proxy=127.0.0.1:9050

to

export http_proxy=127.0.0.1:8123 https_proxy=127.0.0.1:8123

You set the proxy environment variables to Tor's SOCKS proxy, not the polipo HTTP proxy.

If you installed Tor from apt, you could also try:

torify wget https://torproject.org

This will force whatever program you run through it to use Tor's SOCKS proxy.

Or, just use curl which has built in SOCKS support:

curl --socks5-hostname 127.0.0.1:9050 https://torproject.org/
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!