Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Copy contents passed in Firefox live http header

by vjkrish (Initiate)
on Sep 24, 2013 at 07:03 UTC ( #1055456=perlquestion: print w/replies, xml ) Need Help??
vjkrish has asked for the wisdom of the Perl Monks concerning the following question:

hi, is there a way to copy content passed in firefox "live http headers" extension using perl script
  • Comment on Copy contents passed in Firefox live http header

Replies are listed 'Best First'.
Re: Copy contents passed in Firefox live http header
by Corion (Pope) on Sep 24, 2013 at 07:22 UTC

    The closest thing to that I know is HTTP::Request::FromTemplate, which allows you to use the plaintext of an HTTP request dump.

    In the long run I never found much use for the module, as it does not integrate well with other tools like WWW::Mechanize, at least not for my use cases. It is very useful for determining the exact criteria needed to replay and parametrize a request, but never found its way into permanent scripts.

Re: Copy contents passed in Firefox live http header
by keszler (Priest) on Sep 24, 2013 at 10:09 UTC
    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.
Re: Copy contents passed in Firefox live http header
by Anonymous Monk on Sep 24, 2013 at 07:18 UTC
    probably not, the good thing is, you can save "live http headers" to a file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1055456]
Approved by hdb
Front-paged by toolic
help
Chatterbox?
[stevieb]: I have a 3 day winter survival kit in my vehicle in the event I get snowed in in the mountains (which has happened before due to avalanches closing the roads (and once in the summer due to a massive forest fire that trapped us
[perldigious]: a handful of people in my work area did not make it, but I live pretty close and it's flat the whole way, so I didn't have any trouble. The roundabout is the worst thing I have to negotiate.
[thezip]: G'day all!
[perldigious]: Well, that and dodging the people who forget how ice works right away. :-)
[stevieb]: hey, thezip
[perldigious]: I don't miss having to drive up and down in elevation on roads that are iced over, I white knuckled gripping the steering wheel every time I had to where I used to live.
[perldigious]: So I don't envy you mountain guys if you have to drive in the winter, even with tire chains.
MidLifeXis waves.
[stevieb]: man, I absolutely LOVE driving in the worst winter conditions. In the mountainous roads, there are extremely few (if any) other drivers. I love the challenge. I've been doing extreme off-road my whole life, and as I said, I'm always well...
[stevieb]: ...prepared for even the very worst

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2016-12-06 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (112 votes). Check out past polls.