Exclude localhost from htt_proxy

Posted by Chilloutman on Super User See other posts from Super User or by Chilloutman
Published on 2010-05-04T07:34:48Z Indexed on 2010/05/04 7:38 UTC
Read the original article Hit count: 164

Filed under:
|
|

I'm trying to access a server that is running locally on my machine (localhost). I'm using the "wget"-command to download the servers http-response. I've also tried using the "curl"-command to do this, but both (wget and curl) are trying to get through my proxy-server and failing at it:

--2010-05-04 09:05:34--  http://localhost:8080/api/getplist
...
Proxy request sent, awaiting response... 503 Service Unavailable
2010-05-04 09:05:35 ERROR 503: Service Unavailable.

Obviously they shouldn't need to go through the proxy, right? So I disabled the http_proxy:

export http_proxy=""

And then it worked fine. Disabling the the http_proxy every time or permanently are no options. How can I set it to ignore the proxy settings when accessing "localhost"?

© Super User or respective owner

Related posts about localhost

Related posts about http