in reply to Re: LWP::UserAgent timeout
in thread LWP::UserAgent timeout
Oh thanks. Anticipating the timeout declaration to:
my $ua = LWP::UserAgent->new; $ua->timeout(0.1); my $req = HTTP::Request->new(GET => $url); my $res = $ua->request($req);
makes it work. However, the idea to make it async is for sure a better idea. I'll give it a try.
|
---|