大佬教程收集整理的这篇文章主要介绍了linux – 如何通过本地代理允许curl?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
语法是curl –proxy localhost:8080 http://google.com/
但是,这对我不起作用.这是我的语法和结果 – 我也使用-v选项进行调试:
curl -v --proxy localhost:8080 http://google.com/ * About to connect() to proxy localhost port 8080 (#0) * Trying 127.0.0.1... Connection refused * Trying ::1... Connection refused * Trying fe80::1... Connection refused * Couldn't connect to host * Closing connection #0 curl: (7) Couldn't connect to host
我可以在Web浏览器中连接到localhost:8080,并将结果记录在代理中.但是这不起作用,连接被拒绝,没有记录任何内容.
到目前为止,我还尝试过:
- execuTing this as root - using 127.0.0.1 instead of localhost - using wget instead of curl - disabling the system firewall
我究竟做错了什么?我还能尝试什么?
以上是大佬教程为你收集整理的linux – 如何通过本地代理允许curl?全部内容,希望文章能够帮你解决linux – 如何通过本地代理允许curl?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。