如何使curl忽略代理? [英] How do I make curl ignore the proxy?
本文介绍了如何使curl忽略代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使curl忽略代理?
设置$ NO_PROXY对我来说似乎不起作用。
How do I make curl ignore the proxy? Setting $NO_PROXY doesn't seem to work for me.
推荐答案
我认为curl正在从中读取代理地址环境变量 http_proxy
,并且该变量应保留其值。然后在像bash这样的shell中, export http_proxy ='';
在命令之前(或在shell脚本中)会临时更改其值。
I assume curl is reading the proxy address from the environment variable http_proxy
and that the variable should keep its value. Then in a shell like bash, export http_proxy='';
before a command (or in a shell script) would temporarily change its value.
(请参见curl的手册,查看它在环境
标题下的所有变量。)
(See curl's manual for all the variables it looks at, under the ENVIRONMENT
heading.)
这篇关于如何使curl忽略代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文