Windows7 command: set http_proxy and bypass

command linehttp-proxyPROXYwindows 7

I am sitting behind a company proxy. To start vagrant i had to use

set HTTP_proxy=http://http-proxy.example.org:9999

i tryed using netsh winhttp but that didn't work. So now my command line uses the proxy, but now it also uses it for localhost / 127.0.0.1.

Is there a way to bypass the proxy?

I already tryed setting no_proxy like this

set no_proxy=localhost;127.0.0.*

Best Answer

  1. Specify multiple no_proxy hosts separated by commas, not semicolons.
  2. Also, by convention Windows/DOS environment variables should be all uppercase (although I would hope most tools would ignore case).

    set NO_PROXY=localhost,127.0.0.*

From the Python 2 docs for urllib:

The no_proxy environment variable can be used to specify hosts which shouldn’t be reached via proxy; if set, it should be a comma-separated list of hostname suffixes, optionally with :port appended, for example cern.ch,ncsa.uiuc.edu,some.host:8080.

Related Question