Paul Flint wrote: > I use LWP to check for dead external links, but some sites don't seem to > respond. I thought it might be a timeout problem, but a 10 second > timeout does not help, and the sites in question do not take near that > long when accessed manually. I'm wondering, do some servers block access > by LWP somehow?
You could sniff the transaction from browser and LWP and check for differences. You could try specifying the same browser/agent in your LWP script, eg: $ua->agent('Mozilla/8.0'); Dump your response object and see what's there, eg: use Data::Dumper; $Data::Dumper::Indent=1; ... my $res = $ua->request($req) or die "request: $!"; print Data::Dumper->Dump([$res], [qw($res)]); -- ,-/- __ _ _ $Bill Luebkert ICQ=162126130 (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl) -/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/ _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs