Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.2k views
in Technique[技术] by (71.8m points)

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

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I usually do a:

set HTTP_PROXY=http://username:abcd%[email protected]:portnumber
set HTTPS_PROXY=http://username:abcd%[email protected]:portnumber
set NO_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.

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...