NAME
Archive::Har::Entry::Cookie - Represents a single http cookie object for a request or response inside the HTTP Archive
VERSION
Version '0.11'
SYNOPSIS
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 $cookie ($request->cookies()) {
print "Name: " . $header->name() . "\n";
print "Value: " . $header->value() . "\n";
print "Path: " . $header->path() . "\n";
print "Domain: " . $header->domain() . "\n";
print "Expires: " . $header->expires() . "\n";
print "httpOnly: " . $header->http_only() . "\n";
print "secure: " . $header->secure() . "\n";
print "Comment: " . $header->comment() . "\n";
}
}
SUBROUTINES/METHODS
name
returns the name of the cookie
value
returns the value of the cookie
path
returns the path of the cookie
domain
returns the domain of the cookie
expires
returns the expiry date (if any) of the cookie
http_only
returns a true/false value if the cookie is marked as httpOnly
secure
returns a true/false value if the cookie is marked as secure, to only be transmitted over https
comment
returns the comment about the header