/usr/share/doc/libhttp-tiny-perl/examples/get.pl is in libhttp-tiny-perl 0.050-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/usr/bin/perl
use strict;
use warnings;
use HTTP::Tiny;
my $url = shift(@ARGV) || 'http://example.com';
my $response = HTTP::Tiny->new->get($url);
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};
|