Yazeed Hamid
2008-01-07 16:36:54 UTC
Hi to all.
Thank you very much for your efforts and a happy new year to all.
I have been using wget in a bash script to measure website response times
over different proxy configurations.
/usr/bin/time "%e Seconds" /usr/bin/wget -pEkq
--delete-after --proxy=$switch $URL[$index]
I'm using wget version 1.10.2 on cygwin running on Windows Vista (v
6.0.6000Build 6000).
When there is a proxy to go through, the corresponsent proxy address:port is
exported to the environment (export http_proxy=$proxy")
The problem is, when wget is working through a proxy, it doesn't seem to
reuse the existing
http connection like it does when --proxy=off is set. When there is no
proxy, all objects
referenced in an html file are fetched over the same connection. On the
other hand, when I am
going through a proxy, each object is fetched in a new connection although
the Connection: Keep-Alive header
is both in the http request and response messages.
As a result, the measured response time through a proxy is very much greater
than that through direct connection <no proxy>.
$ /usr/bin/time -f "%e Seconds" wget -pdEk --delete-after --proxy=off -o
log-no-proxy-w-debug www.mcafee.com
3.56 Seconds
$ /usr/bin/time -f "%e Seconds" wget -pdEk --delete-after --proxy=on -o
log-thru-proxy-w-debug www.mcafee.com
20.42 Seconds
How can I make wget make sense of the Connection: Keep-Alive message when
going through
a proxy and thus reuse the existing connection like it does when directly
connecting to the web server?
In an early post, I read something about modifying the source of wget, is
this the only solution?
Kindly see attached debug files. Thank you very much for all your efforts
and all the great work.
Thank you very much for your efforts and a happy new year to all.
I have been using wget in a bash script to measure website response times
over different proxy configurations.
/usr/bin/time "%e Seconds" /usr/bin/wget -pEkq
--delete-after --proxy=$switch $URL[$index]
I'm using wget version 1.10.2 on cygwin running on Windows Vista (v
6.0.6000Build 6000).
When there is a proxy to go through, the corresponsent proxy address:port is
exported to the environment (export http_proxy=$proxy")
The problem is, when wget is working through a proxy, it doesn't seem to
reuse the existing
http connection like it does when --proxy=off is set. When there is no
proxy, all objects
referenced in an html file are fetched over the same connection. On the
other hand, when I am
going through a proxy, each object is fetched in a new connection although
the Connection: Keep-Alive header
is both in the http request and response messages.
As a result, the measured response time through a proxy is very much greater
than that through direct connection <no proxy>.
$ /usr/bin/time -f "%e Seconds" wget -pdEk --delete-after --proxy=off -o
log-no-proxy-w-debug www.mcafee.com
3.56 Seconds
$ /usr/bin/time -f "%e Seconds" wget -pdEk --delete-after --proxy=on -o
log-thru-proxy-w-debug www.mcafee.com
20.42 Seconds
How can I make wget make sense of the Connection: Keep-Alive message when
going through
a proxy and thus reuse the existing connection like it does when directly
connecting to the web server?
In an early post, I read something about modifying the source of wget, is
this the only solution?
Kindly see attached debug files. Thank you very much for all your efforts
and all the great work.