View Full Version : HTTP Headers Module

07-21-2009, 05:31 PM

How can I get the same kind of headers info using Perl that this PHP script returns:


I'm particularly interested in the Location bit. I'm sure there must be a Perl Module for this - I just don't know which one.

Shannon Blonk
07-22-2009, 03:32 AM
You can use the LWP suite, which comes standard with Perl. Just do a HEAD request and examine the headers of the response object.

Start with perldoc LWP (search.cpan.org/perldoc?LWP)