Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2007
    Posts
    57
    Thanks
    11
    Thanked 0 Times in 0 Posts

    HTTP Headers Module

    Hello,

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

    http://seopen.com/seopen-tools/heade...url=google.com

    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.

  • #2
    New Coder
    Join Date
    Mar 2009
    Location
    Fabric Covered Box
    Posts
    69
    Thanks
    1
    Thanked 16 Times in 14 Posts
    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

  • Users who have thanked Shannon Blonk for this post:

    electrify77 (07-22-2009)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •