windows - 如何将 Tor 与 cURL 结合使用(在 Windows 中)?

标签 windows curl tor

我安装了 Vidalia,将 Chrome 设置为使用端口 8118 作为代理,并且我已经通过 https://check.torproject.org/ 检查了我的连接。但我在使用命令行工具 cURL 时遇到了困难。这是我的尝试:

C:\>curl -v --proxy localhost::9050 http://google.com
* About to connect() to proxy localhost port 0 (#0)
* Failed to connect to ↕: Address not available
* No error
*   Trying 127.0.0.1... Failed to connect to 127.0.0.1: Address not available
* No error
* couldn't connect to host
* Closing connection #0
curl: (7) Failed to connect to ↕: Address not available

已解决:

curl -v --socks4a localhost:9050 http://check.torproject.org/

最佳答案

使用 --socks5(两个破折号)。 -socks5 不是 curl 的有效参数,因此 curl 将其解释为主机名。

关于windows - 如何将 Tor 与 cURL 结合使用(在 Windows 中)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7167166/

相关文章:

python - Selenium Chromedriver Python - 使用 Tor 代理加载 ModHeader 扩展时为 'failed to wait for extension background page to load'

c++ - 为所有用户设置注册表值

windows - 如何验证文件是否存在于批处理文件中?

如果提供 URL 作为参数,C++ curl 无法解析主机

c++ - 通过 https 发布时出现 "CURLE_OUT_OF_MEMORY"错误

curl - 将用户添加到组织存储库 github API

windows - Tor 控制台输出问题 : running tor --hash-password gives no result

python - 使用 Tor + Privoxy 抓取谷歌购物结果 : How to avoid block?

windows - Powershell 上的 .bat 文件 : linux command is not understood

java - Mozilla FireFox(无响应)-Selenium WebDriver 拒绝通过 driver.quit() 命令终止