dReKurCe has asked for the wisdom of the Perl Monks concerning the following question:
#! /usr/bin/perl use Crypt::SSLeay; use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $response = $ua->get('https://66.11.78.112'); #this timeout statement is not effective $ua->timeout(3); if ($response->is_success) { print $response->content; # or whatever } else { die printf " %s\n", $response->status_line; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Enabling timeout method in LWP::UserAgent
by marto (Cardinal) on Jul 27, 2005 at 22:02 UTC | |
by dReKurCe (Scribe) on Jul 27, 2005 at 22:30 UTC | |
by marto (Cardinal) on Jul 27, 2005 at 23:21 UTC | |
by pg (Canon) on Jul 28, 2005 at 01:57 UTC | |
by marto (Cardinal) on Jul 28, 2005 at 08:09 UTC | |
by dReKurCe (Scribe) on Jul 28, 2005 at 04:13 UTC |