It looks to me very much like there's a bug in HTTP::Response, in that in
the case shown below, the request object is missing.

I'm trying out the sample program, verifactrola001.pl, from Chap 12 of Sean
Burke's "Perl & LWP". This program checks for valid links on a website.

I got a pgm error yesterday when accessing www.nytimes.com. I added a call
to Data::Dumper just prior to the error.

HEADing http://nytimes.com/nytstore/books/NSBGH01.html
  For http://nytimes.com/nytstore/books/NSBGH01.html, Referer =>
http://www.nytimes.com/pages/nytoday/index.html
  That was hit #9
  403 Forbidden by robots.txt
%response = bless( (
                     '_content' => '',
                     '_rc' => 403,
                     '_headers' => bless( {}, 'HTTP::Headers' ),
                     '_msg' => 'Forbidden by robots.txt'
                   ), 'HTTP::Response' );
Can't call method "uri" on an undefined value at ./verifactrola001.pl line
244.

It seems that the request object is missing from the response. I assume this
is a bug in LWP...

(version 5.65)

Reply via email to