Subject: | 403 Forbidden error with LWP::Simple in Weather::Google |
Date: | Fri, 13 Feb 2009 11:35:31 -0500 |
To: | bug-weather-google [...] rt.cpan.org |
From: | Telemachus <telemachus [...] arpinum.org> |
Hey there,
I've been using Weather::Google steadily for some time now, and it's a
great, simple module. Unfortunately as of one or two days ago, Google seems
to forbid LWP::Simple requests. The error you actually see has to do with a
missing weather.xml file, but after knocking around a bit, I think that
LWP::Simple is the problem.
Things work again, if I (hackishly) do this:
use LWP::Simple qw/get $ua/;
## later, above line 42
$ua->agent("Mozilla/3.1");
my $xml = get(GAPI.$zip);
## everything else as before
The current version with only LWP::Simple is a no go on Perl 5.10.0 on Mac
OS X and 5.8.8 on openBSD.
Thanks, T