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

Re: Copy contents passed in Firefox live http header

by keszler (Priest)
on Sep 24, 2013 at 10:09 UTC ( #1055463=note: print w/ replies, xml ) Need Help??


in reply to Copy contents passed in Firefox live http header

Are you interested in what Firefox sends, or in what you receive back from the HTTP server?

If the latter there are many Perl modules that will capture those, for example

  • LWP::Simple has head($url) returning ($content_type, $document_length, $modified_time, $expires, $server)
  • WWW::Mechanize has $mech->dump_headers( [$fh] ) which will print all the response headers to the given filehandle or STDOUT.


Comment on Re: Copy contents passed in Firefox live http header
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2014-12-22 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls