Archive::Har::Entry::Header - Represents a single http header object for a request or response inside the HTTP Archive
Version 0.04
use Archive::Har(); my $http_archive_string = '"log": { "version": "1.1", .... '; my $har = Archive::Har->new(); $har->string($http_archive_string); foreach my $entry ($har->entries()) { my $request = $entry->request(); foreach my $header ($request->headers()) { print "Name: " . $header->name() . "\n"; print "Value: " . $header->value() . "\n"; print "Comment: " . $header->comment() . "\n"; } }
returns the name of the http header
returns the value of the http header
returns the comment about the header
To install Archive::Har, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Archive::Har
CPAN shell
perl -MCPAN -e shell install Archive::Har
For more information on module installation, please visit the detailed CPAN module installation guide.