How can I get the ultimate URL without fetching the pages using perl and LWP?

Posted by planetp on Stack Overflow See other posts from Stack Overflow or by planetp
Published on 2010-03-18T13:20:03Z Indexed on 2010/03/18 13:21 UTC
Read the original article Hit count: 395

Filed under:
|
|

I'm doing some web scraping using perl's LWP. I need to process a set of URLs, some of which may redirect (1 or more times).

How can I get ultimate url with all redirects resolved, using HEAD method ?

© Stack Overflow or respective owner

Related posts about perl

Related posts about lwp