Skip to content

IO::LWP documentation #114

@saturdaywalkers

Description

@saturdaywalkers

Please add another example to the doco that shows how to check the HTTP status,
e.g.

my $response = io( "https://www.google.com" )->get() ; # =, NOT < or >
print $response->is_success() . "\n"; # from HTTP::Request
print $response->headers_as_string() . "\n"; # from HTTP::Message
print $response->header('Content-Length') . "\n";
print $response->code() . "\n";
print $response->content() . "\n";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions