David Dick > Archive-Har-0.05 > Archive::Har::Entry::Request::PostData

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::Request::PostData - Represents a single name/value pair from the query string for a request 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();
        my $postData = $request->postData();
        if (defined $postData) {
            print "MimeType: " . $postData->mimeType() . "\n";
            print "Text: " . $postData->text() . "\n";
            foreach my $element ($postData->params()) {
            }
            print "Comment: " . $postData->comment() . "\n";
        }
    }

SUBROUTINES/METHODS ^

mimeType

returns the mime type of the posted data

text

returns the plain text posted data. It will return undef if params has been defined

params

returns a list of posted parameters

comment

returns the comment about element in the Query String

syntax highlighting: