6 my $ua = LWP::UserAgent->new(keep_alive => 1);
9 "http://jigsaw.w3.org/HTTP/h-content-md5.html",
13 use Digest::MD5 qw(md5_base64);
14 print "not " unless $res->header("Content-MD5") eq md5_base64($res->content) . "==";
17 print $res->as_string;
19 my $etag = $res->header("etag");
22 "http://jigsaw.w3.org/HTTP/h-content-md5.html",
24 "If-None-Match" => $etag,
26 print $res->as_string;
28 print "not " unless $res->code eq "304" && $res->header("Client-Response-Num") == 2;