http://www.perlmonks.org?node_id=1003717


in reply to Using LWP::Simple to read a redirected page

Hi

OK, long story short...I think the url should have http in front of it and LWP just works with what it's got and doesn't complain.

I tried again using WWW::Mechanize and it demanded an absolute url. I put in http - it then said it couldn't deal with https, and instructed me to install LWP-Protocol-https.

I went back to LWP and fed it the absolute url, and it resolved properly giving me the forwarded url as it ought. Out of interest I removed LWP-Protocol-https and that didn't seem to bother it.

Thanks for the help

MorayJ

  • Comment on Re: Using LWP::Simple to read a redirected page