/usr/share/doc/libhttp-tiny-perl/examples/mirror.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 | #!/usr/bin/perl
use strict;
use warnings;
use HTTP::Tiny;
my $url = shift(@ARGV) || 'http://example.com';
my $file = shift(@ARGV) || 'example.output';
my $response = HTTP::Tiny->new->mirror($url, $file);
print "$response->{status} $response->{reason}\n";
while (my ($k, $v) = each %{$response->{headers}}) {
for (ref $v eq 'ARRAY' ? @$v : $v) {
print "$k: $_\n";
}
}
|