File: get.pl

package info (click to toggle)
libfurl-perl 3.14-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 660 kB
  • sloc: perl: 2,188; makefile: 5; sh: 1
file content (10 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#!perl -w
use strict;
use Furl;
use HTTP::Response;

my $uri = shift(@ARGV) or die "Usage: $0 URI\n";

my $furl = Furl->new(headers => ['Accept-Encoding' => 'gzip']);
$furl->env_proxy;
print $furl->get($uri)->as_http_response->as_string;