Aad has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to destroy the $ua object or disable caching some other way? Here it is...
And here are the number:# # pingloop.pl # use LWP::UserAgent; use Time::HiRes 'time', 'sleep'; $ua = LWP::UserAgent->new; $ua->proxy ('http', 'http://10.12.8.12:8080'); $count = 5; while ($count--) { $start = time(); $response = $ua->get("http://myaccount.polymerchemicals.com/ping.h +tm"); $latency = time() - $start; print "Received in $latency seconds\n"; sleep (60); }
TIA, Aad Slingerland, The Netherlands.Received in 0.4375 seconds Received in 0.03125 seconds Received in 0.03125 seconds Received in 0.03125 seconds Received in 0.03125 seconds
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::UserAgent without caching?
by liz (Monsignor) on Aug 21, 2003 at 12:08 UTC | |
|
Re: LWP::UserAgent without caching?
by Anonymous Monk on Aug 21, 2003 at 12:25 UTC | |
|
Re: LWP::UserAgent without caching?
by tcf22 (Priest) on Aug 21, 2003 at 14:25 UTC |