Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Using LWP::Simple to read a redirected page

by Anonymous Monk
on Nov 13, 2012 at 22:34 UTC ( #1003717=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003717]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2014-10-31 10:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (216 votes), past polls