pileofrogs has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Monks!
I'm writing a link checker and I've noticed that I get '403' errors for some pages with LWP::UserAgent, but if I try the same URLs from firefox, I get the content, no problem. I'm doing $ua->get($uri) and $ua->head($uri) requests.
My first thought was that LWP::UserAgent was doing some kind of robots.txt handling without telling me, but there's LWP::RobotUA for that, so I assume that's not the case. (Is my assumption wrong?)
Does anyone know a reason why certain web pages would return a status 403 to LWP::UserAgent, but work fine with a normal web browser?
Thanks!
--Pileofrogs
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::UserAgent gets 403 when other browser does not
by ikegami (Patriarch) on Jul 01, 2010 at 20:00 UTC | |
|
Re: LWP::UserAgent gets 403 when other browser does not
by pemungkah (Priest) on Jul 01, 2010 at 23:42 UTC | |
by ikegami (Patriarch) on Jul 01, 2010 at 23:46 UTC | |
|
Re: LWP::UserAgent gets 403 when other browser does not
by pileofrogs (Priest) on Jul 26, 2010 at 16:33 UTC |