perlmonkdr has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks!!! I have a little problem with LWP if I use this inside a loop for takes pages:
my $res = $ua->get("http://www.perlmonks.com"); if ($res->is_success) { }
after some loops it returns an Error 500 timeout, but if I use this:
my $req = HTTP::Request->new(GET => "http://www.perlmonks.com"); my $res = $ua->request($req); if ($res->is_success) { }
Works properly.
I saw other post with same problem and LWP errors reports but not solution is posted.
Thank a lot
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP error 500 timeout
by ikegami (Patriarch) on Feb 16, 2008 at 19:48 UTC | |
by perlmonkdr (Beadle) on Feb 16, 2008 at 21:48 UTC | |
by ikegami (Patriarch) on Feb 16, 2008 at 22:27 UTC | |
|
Re: LWP error 500 timeout
by proceng (Scribe) on Feb 16, 2008 at 23:25 UTC | |
|
Re: LWP error 500 timeout
by Khen1950fx (Canon) on Feb 16, 2008 at 20:18 UTC | |
by perlmonkdr (Beadle) on Feb 16, 2008 at 21:58 UTC | |
by Anonymous Monk on Feb 17, 2008 at 13:04 UTC | |
by ambrus (Abbot) on Feb 18, 2008 at 08:49 UTC |