Help for this page

Select Code to Download


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