How to know export proxy working or Not

前端 未结 1 445
慢半拍i
慢半拍i 2020-12-20 07:58

To download some opensource code behind the office firewalls I am exporting the Proxy like this

export http_proxy=http://username:passwdatXYZ.com:portnumbe         


        
相关标签:
1条回答
  • 2020-12-20 08:47

    I usually do a:

    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
    

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

    0 讨论(0)
提交回复
热议问题