Subject: | LWP::Simple mirror() bug |
Date: | Mon, 22 Nov 2010 21:49:43 +0530 (IST) |
To: | bug-libwww-perl [...] rt.cpan.org |
From: | P J P <pj.pandit [...] yahoo.co.in> |
Hi,
When try to mirror a page: http://emergentchaos.com/feed/atom using LWP::Simple::mirror() interface, it fails with an HTTP 403 Forbidden error.
But following works just fine:
Use LWP::UserAgent;
my $ua = LWP::UserAgent->new();
my $rs = $ua->mirror($url, $file);
it returns HTTP 200 OK.
I don't know what's wrong with LWP::Simple, but it's weird.
Thank you.
---
Regards
-Prasad
PS: Please don't send me html/attachment/Fwd mails