|
|
| No such thing as a small change | |
| PerlMonks |
Re: Using LWP::Simple to read a redirected pageby Anonymous Monk |
| on Nov 13, 2012 at 22:34 UTC ( #1003717=note: print w/ replies, xml ) | Need Help?? |
|
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
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||