I am using libwww-perl 5.80 with perl 5.80 and get a high GET-
retrieval failure rate (70-80%) when I connect to a particular server
located in Israel (I am based in Europe).
When I use curl instead of LWP the failure rate is almost 0%.
Has anyone had this problem before? Do I need to upgrade both Perl and
LWP?
I have been using Mechanize, rather than LWP directly, so I am not sure
I can be of much help. When I was debugging my connections, one useful
tip I got was to turn on LWP's debugging. Include this line in your script:
use LWP::Debug qw(+);
This way you can see what is happening at the protocol level.
I run queries on several different servers on a daily basis. My problems
all appear to be time of day issues ( = scheduled maintenance). When
logging into some sites, I have had some problems with the site not
being ready for the followup request until after a few seconds have gone
by, but this is a server problem, not a connectivity issue, and was
solved by sleeping for a few seconds.
The actual URL would be helpful to reproce the problem.
Good Luck!
Peter
Philippe de Rochambeau wrote:
> Hello,
>
> I am using libwww-perl 5.80 with perl 5.80 and get a high GET-
> retrieval failure rate (70-80%) when I connect to a particular server
> located in Israel (I am based in Europe).
>
> When I use curl instead of LWP the failure rate is almost 0%.
>
> Has anyone had this problem before? Do I need to upgrade both Perl and
> LWP?
>
> Philippe
>
> --------- My script ----------------
>
> #!/usr/bin/perl -w
> use strict;
>
> use LWP::UserAgent;
>
> if ( ! @ARGV ) {
> die "Usage: $0