Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    my $contents = $response->decoded_content;
    print "Returned headers are:\n";
    print "$contents";
    
  2. or download this
    Headers before http request are:
    Connection: keep-alive
    ...
    Host: localhost
    TE: deflate,gzip;q=0.3
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)