The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Archive::Har::Entry::Request::PostData::Params - Represents a single name/value pair from the query string for a request 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();
        my $postData = $request->postData();
        if (defined $postData) {
                foreach my $param ($postData->params()) {
                        print "Name: " . $element->name() . "\n";
                        print "Value: " . $element->value() . "\n";
                        print "File Name: " . $element->file_name() . "\n";
                        print "Content Type: " . $element->content_type() . "\n";
                        print "Comment: " . $element->comment() . "\n";
                }
        }
    }

SUBROUTINES/METHODS

new

returns a new Params object

name

returns the name of the parameter in the posted data

value

returns the value of the parameter in the posted data or content of the posted file

file_name

returns the name of the posted file

content_type

returns the content type of the posted file

comment

returns the comment about the parameters