curl-users
HTTP_PROXY bug?
Date: Mon, 10 Dec 2001 11:23:22 +0100 (CET)
I can't get curl (7.8) to use the HTTP_PROXY environment variable. Very
strange:
$ env | grep PROXY
HTTP_PROXY=int-proxy1:8080
FTP_PROXY=postal:8080
$ curl -I http://curl.haxx.se
<nothing happens for 10-15 seconds, so I press Ctrl-C>
$ curl -x int-proxy1:8080 -I http://curl.haxx.se
HTTP/1.0 200 OK
Date: Mon, 10 Dec 2001 10:17:53 GMT
Server: Apache/1.3.17 (Unix) PHP/4.0.4pl1
Content-Type: text/html; charset=iso-8859-1
X-Cache: MISS from ext-proxy1.siemens.se
X-Cache: MISS from int-proxy1.siemens.se
Proxy-Connection: keep-alive
sh-2.04$ export ALL_PROXY=int-proxy1:8080
sh-2.04$ curl -I http://curl.haxx.se
HTTP/1.0 200 OK
Date: Mon, 10 Dec 2001 10:18:14 GMT
Server: Apache/1.3.17 (Unix) PHP/4.0.4pl1
Content-Type: text/html; charset=iso-8859-1
X-Cache: MISS from ext-proxy1.siemens.se
X-Cache: MISS from int-proxy1.siemens.se
Proxy-Connection: keep-alive
sh-2.04$
So ALL_PROXY and the -x option works, but not HTTP_PROXY?
/Björn
Received on 2001-12-10