如何知道导出代理是否工作 [英] How to know export proxy working or Not

查看:21
本文介绍了如何知道导出代理是否工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要下载办公室防火墙后面的一些开源代码,我要导出代理像这样

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!

我的密码有一个特殊字符 - "!" 例如它是 ->abcd!efgh ,所以我必须以 abcd%21efgh 的形式提供密码(其中 21 是特殊字符!!代码>")

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 "!")

既然它不起作用,你会改变那些设置吗?

Since it isn't working, what would you change to those settings?

推荐答案

我通常会做一个:

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://... 用于 HTTP_PROXY HTTPS_PROXY)
换句话说,我确保不会为以 .company 结尾的内部 url 调用代理.

(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.

根据所使用的代理,您的特殊字符可能会或可能不会被支持,所以如果上面的设置不起作用,请尝试用普通的密码(没有任何特殊的字符).

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆