Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl -w
    
    use strict;
    ...
    
    warn "[Headers Out v1]\n", $response->request()->as_string(), "\n\n";
    warn "[Headers In]:\n", $response->headers()->as_string, "\n\n";
    
  2. or download this
    #!/usr/bin/env perl -w
    
    use strict;
    ...
    
    warn "[Headers Out v2]\n", $response->request()->as_string(), "\n\n";
    warn "[Headers In]:\n", $response->headers()->as_string, "\n\n";
    
  3. or download this
    GET http://example.com/
    User-Agent: libwww-perl/6.05
    
  4. or download this
    GET / HTTP/1.1
    Host: example.com
    User-Agent: libwww-perl/6.05
    Connection: keep-alive