curl-users
Strange proxy hang
Date: Wed, 19 Dec 2001 15:49:38 +0100 (CET)
Here's another strange proxy problem. This time I don't think it's just an
undocumented feature. ;-)
Testing on freshly built 7.9.2:
$ echo $http_proxy
int-proxy1:8080
$ src/curl -O http://curl.haxx.se/programs/comhemlogin.txt
* Connected to int-proxy1.siemens.se (146.253.180.241)
> GET http://curl.haxx.se/programs/comhemlogin.txt HTTP/1.1
User-Agent: curl/7.9.2 (i686-pc-linux-gnu) libcurl 7.9.2 (SSL 0.9.5)
Host: curl.haxx.se
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
% Total % Received % Xferd Average Speed Time Curr.
Dload Upload Total Current Left Speed
100 1167 100 1167 0 0 285 0 0:00:04 0:00:04 0:00:00 0
(Curl is waiting forever for proxy close (?) so I press Ctrl-C.)
$ src/curl -x int-proxy1:8080 -O http://curl.haxx.se/programs/comhemlogin.txt
* Connected to int-proxy1.siemens.se (146.253.180.241)
> GET http://curl.haxx.se/programs/comhemlogin.txt HTTP/1.1
User-Agent: curl/7.9.2 (i686-pc-linux-gnu) libcurl 7.9.2 (SSL 0.9.5)
Host: curl.haxx.se
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
% Total % Received % Xferd Average Speed Time Curr.
Dload Upload Total Current Left Speed
100 1167 100 1167 0 0 16208 0 0:00:00 0:00:00 0:00:00 4875
* Connection #0 left intact
* Closing connection #0
$
(No hang, no wait, instant success.)
Even if it says 1167 bytes received in both cases, only the second command
line really works since the first obviously never closes the file.
/Björn
Received on 2001-12-19