4 for (("", "live/", "t/live/")) {
5 if (-f $_ . "ZLIB_OK") {
13 print "Apparently no working ZLIB installed\n";
23 my $ua = LWP::UserAgent->new(keep_alive => 1);
29 for my $te (undef, "", "deflate", "gzip", "trailers, deflate;q=0.4, identity;q=0.1") {
30 my $req = HTTP::Request->new(GET => "http://jigsaw.w3.org/HTTP/TE/foo.txt");
32 $req->header(TE => $te);
33 $req->header(Connection => "TE");
35 print $req->as_string;
37 my $res = $ua->request($req);
38 if (defined $content) {
39 print "not " unless $content eq $res->content;
40 print "ok $testno\n\n";
44 $content = $res->content;
47 print $res->as_string;