Skip Menu |

This queue is for tickets about the WWW-Cache-Google CPAN distribution.

Report information
The Basics
Id: 38085
Status: new
Priority: 0/
Queue: WWW-Cache-Google

People
Owner: Nobody in particular
Requestors: cpan [...] zoffix.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Hello, looking at the release date for your module I see that the issue might not have been obvious when the module was written. Anyway, now, when Google sees User-Agent HTTP header which either LWP::UserAgent or LWP::Simple use by default it gives 403. So your fetch method always comes out with an undef due to 403 error. The solution is to change the User-Agent string with either use LWP::Simple; LWP::Simple::_init_ua; $LWP::Simple::ua->agent("MyUserAgentString");" or just use LWP::UserAgent instead (I'd recommend the later and provide a useful error message). Cheers