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
In reply to LWP error 500 timeout by perlmonkdr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |