NAME
Archive::Har - Provides an interface to HTTP Archive (HAR) files
VERSION
Version 0.09
SYNOPSIS
use Archive::Har();
my $http_archive_string = '"log": { "version": "1.1", .... ';
my $har = Archive::Har->new();
$har->string($http_archive_string);
print $har->creator()->name() . ' version ' . $har->creator()->version();
$har->creator()->name("new name"); # update har
print $har->browser()->name() . ' version ' . $har->browser()->version();
foreach my $page = $har->pages()) {
print "Page Title: " . $page->title() . "\n";
}
print $har; # print har in stringified pretty form
...
SUBROUTINES/METHODS
new
Archive::Har->new() will return a new har object, ready to process http
archives
string
$har->string() accepts a stringified version of an http archive
and parses it. It
returns the previous state of the archive in stringified form
xml
$har->xml() accepts a stringified version of Internet Explorer's Network
Inspector XML export and parses it. There is no return value.
version
$har->version() will return the version of the HTTP Archive ('1.1' by
default);
creator
$har->creator() will return the creator object for the HTTP Archive
browser
$har->browser() will return the browser object for the HTTP Archive
pages
$har->pages() will return the list of page objects for the HTTP Archive
entries
$har->entries() will return the list of entry objects for the HTTP
Archive
comment
$har->comment() will return the comment for the HTTP Archive
SEE ALSO
HTTP Archive 1.2 Specification
AUTHOR
David Dick, ""
BUGS
Please report any bugs or feature requests to "bug-archive-har at
rt.cpan.org", or through the web interface at
. I will be
notified, and then you'll automatically be notified of progress on your
bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Archive::Har
You can also look for information at:
* RT: CPAN's request tracker
* AnnoCPAN: Annotated CPAN documentation
* CPAN Ratings
* Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
Copyright 2012 David Dick.
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.