如何知道出口代理工作与否 [英] How to know export proxy working or Not
问题描述
要在办公室防火墙后面下载一些开源代码,我正在导出代理
,这样
To download some opensource code behind the office firewalls I am exporting the Proxy like this
export http_proxy=http://username:passwdatXYZ.com:portnumber
export https_proxy=http://username:passwdatXYZ.com:portnumber
export HTTP_PROXY=://username:passwdatXYZ.com:portnumber
export HTTPS_PROXY=://username:passwdatXYZ.com:portnumber
我如何知道我的这个导出使用以上密码和登录是否正确或不正常工作?
How do I know wether my this export with the above password and login is correct or not or working or not!
我的pasword有一个特殊字符 - !
例如它是 - > abcd!efgh
,所以我必须提供密码为 abcd%21efgh
(其中 21
是特殊字符!
的unicode
My pasword has a special character - "!
" e.g it is -> abcd!efgh
, so do I have to supply the password as abcd%21efgh
(where 21
is the unicode for special character "!
")
由于它不工作,你会
推荐答案
我通常做一个:
set HTTP_PROXY=http://username:abcd%21efgh@proxy.xxx.company:portnumber
set HTTPS_PROXY=http://username:abcd%21efgh@proxy.xxx.company:portnumber
set NO_PROXY=.company
(始终使用 http:// ...
both HTTP_PROXY
和 HTTPS_PROXY
)
换句话说,我确保没有为 .company
结尾的内部网址调用代理。
(always use http://...
both for HTTP_PROXY
and HTTPS_PROXY
)
In other words, I make sure the proxy isn't called for internal url ending by .company
.
根据使用的代理,您可能需要或可能不支持特殊字符,因此如果上述设置不起作用,请尝试首先使用更改密码平原(没有任何特殊的特征r)。
Depending on the proxy used, you special character may or may not be supported, so if the setting above isn't working, try first to change your password with a plain one (without any special character).
这篇关于如何知道出口代理工作与否的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!