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.
| [reply] |
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.
| [reply] [d/l] [select] |
probably not, the good thing is, you can save "live http headers" to a file | [reply] |