Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print($response->protocol(), ' ');
    print($response->status_line(), "\n");
    print($response->headers_as_string()); # $response->headers->as_string
    
  2. or download this
    use strict;
    use warnings;
    ...
    print($response->protocol(), ' ');
    print($response->status_line(), "\n");
    print($response->headers_as_string());
    
  3. or download this
    use strict;
    use warnings;
    ...
    print($response->protocol(), ' ');
    print($response->status_line(), "\n");
    print($response->headers_as_string());
    
  4. or download this
    use strict;
    use warnings;
    ...
    my $response = $ua->head($url);  # or "get", etc.
    
    print($response->as_string());
    
  5. or download this
    use strict;
    use warnings;
    ...
    
       print_deep($response);
    }