Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO::LWP documentation #114

Open
saturdaywalkers opened this issue Apr 30, 2020 · 0 comments
Open

IO::LWP documentation #114

saturdaywalkers opened this issue Apr 30, 2020 · 0 comments

Comments

@saturdaywalkers
Copy link

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";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant