Pathologically Eclectic Rubbish Lister | |
PerlMonks |
LWP::UserAgent gets 403 when other browser does notby pileofrogs (Priest) |
on Jul 01, 2010 at 19:56 UTC ( [id://847604]=perlquestion: print w/replies, xml ) | Need Help?? |
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
Back to
Seekers of Perl Wisdom
|
|