HTTP::Tiny(3p) Perl Programmers Reference Guide HTTP::Tiny(3p)
HTTP::Tiny(3p) Perl Programmers Reference Guide HTTP::Tiny(3p) # HTTP::Tiny(3p) Perl Programmers Reference Guide HTTP::Tiny(3p) NNAAMMEE # HTTP::Tiny - A small, simple, correct HTTP/1.1 client VVEERRSSIIOONN # version 0.080 SSYYNNOOPPSSIISS # use HTTP::Tiny; my $response = HTTP::Tiny->new->get('http://example.com/'); die "Failed!\n" unless $response->{success}; print "$response->{status} $response->{reason}\n"; while (my ($k, $v) = each %{$response->{headers}}) { for (ref $v eq 'ARRAY' ? @$v : $v) { print "$k: $_\n"; } } print $response->{content} if length $response->{content}; DDEESSCCRRIIPPTTIIOONN # This is a very simple HTTP/1. ...