Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Your humble monk (OK, not so humble) bows deeply :-))my $ua; my $url; my $request; my $response; my $timeout = 60; $ua = LWP::UserAgent->new(); $ua->agent("DMC-Monitor/1.0"); $request = new HTTP::Request("GET", "$url"); print "\$request=|$request|\n"; $response = $ua->timeout($timeout); print "\$response=|$response|\n"; $response = $ua->request($request); # <== Hangs here print "\$response=|$response|\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP Request Wrapper Wanted
by chromatic (Archbishop) on Mar 05, 2003 at 19:23 UTC | |
by Anonymous Monk on Mar 06, 2003 at 14:36 UTC |