cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: http_proxy not working quite right

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 17 Jan 2007 09:14:41 +0100 (CET)

On Tue, 16 Jan 2007, Dan Fandrich wrote:

> I've just noticed a problem with the http_proxy environment variable that
> caused test case 63 to fail on one machine I tried it on. Here's a log
> (192.168.0.128:80 actually is just a plain web server, not a proxy, and
> test-url doesn't actually exist, but that doesn't affect things):
>
> $ env http_proxy=http://192.168.0.128:80/ ../src/curl -v http://adelie/test-url
> * About to connect() to proxy 192.168.0.128 port 80 (#0)
> * Trying 192.168.0.29... connected
> * Connected to (nil) (192.168.0.29) port 80 (#0)
> > GET http://adelie/test-url HTTP/1.1

Whoa, that certainly looks like a total confusion. What's possibly even
weirder is that I just can't repeat it:

$ env http_proxy=http://127.0.0.1:80 ./src/curl -v http://www.haxx.se/
* About to connect() to proxy 127.0.0.1 port 80 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
> GET http://www.haxx.se/ HTTP/1.1

[your version]
> curl 7.16.1-CVS (i686-pc-linux-gnu) libcurl/7.16.1-CVS OpenSSL/0.9.6b
> zlib/1.1.4 libidn/0.4.6
> Protocols: tftp ftp telnet dict ldap http file https ftps
> Features: Debug IDN IPv6 Largefile NTLM SSL libz

[my version]
curl 7.16.1-CVS (i686-pc-linux-gnu) libcurl/7.16.1-CVS OpenSSL/0.9.8c
zlib/1.2.3 libidn/0.6.5 libssh2/0.14
Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
Features: Debug IDN IPv6 Largefile NTLM SSL libz

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-01-17