Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (10 sloc) 321 Bytes
print "1..1\n";
use strict;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new(keep_alive => 1);
my $req = HTTP::Request->new(GET => "http://jigsaw.w3.org/HTTP/neg");
$req->header(Connection => "close");
my $res = $ua->request($req);
print $res->as_string, "\n";
print "not " unless $res->code == 300;
print "ok 1\n";
Something went wrong with that request. Please try again.