Linux curl命令与代理 [英] Linux curl command with proxy
本文介绍了Linux curl命令与代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个代理地址: 125.119.175.48:8909
如何使用curl命令,例如: curl http://www.example.com
,但我需要使用代理地址这样做。
How can I use it with the curl command, for example: curl http://www.example.com
, but I need to do this using the proxy address.
推荐答案
一般方法:
export http_proxy=http://your.proxy.server:port/
通过代理从(许多)应用程序。
Then you can connect through proxy from (many) application.
并且,如下面的注释,https:
And, as per comment below, for https:
export https_proxy=https://your.proxy.server:port/
这篇关于Linux curl命令与代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文