David Dick > Archive-Har-0.05 > Archive::Har::Entry::Cookie

Download:
Archive-Har-0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.05   Source  

NAME ^

Archive::Har::Entry::Cookie - Represents a single http cookie object for a request or response inside the HTTP Archive

VERSION ^

Version 0.05

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->httpOnly() . "\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

httpOnly

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

syntax highlighting: