- or download this
$results = $ua->request($req)->as_string; #grab the results
- or download this
$results = $ua->request($req)->headers_as_string; #grab the results
- or download this
use strict;
use LWP::Simple qw(get head);
my $url = 'http://www.w3c.org';
print head($url)->{_headers}->as_string;