0
我在Mac El Capitan上使用bash shell。如何使用curl为代理服务器传递空白的用户名/密码?我想这如何使用curl传递空白代理用户名/密码?
localhost:tmp davea$ curl http://www.google.com --proxy localhost:9050 --proxy-user "":""
514 Authentication required.
我在我的机器上使用此命令
tor --CookieAuthentication 0 --HashedControlPassword "" --ControlPort 9050 --SocksPort 50001
,我能够通过Telnet没有像这样
localhost:tmp davea$ telnet localhost 9050
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
AUTHENTICATE
250 OK
输入密码连接运行Tor守护进程
所以我知道我的密码,至少是正确的。