6 my $ua = LWP::UserAgent->new();
7 my $res = $ua->simple_request(HTTP::Request->new(GET => "https://www.sun.com"));
9 if ($res->code == 501 && $res->message =~ /Protocol scheme 'https' is not supported/) {
10 print "1..0 # Skipped: " . $res->message . "\n";
15 print "not " unless $res->is_success;
18 print "not " unless $res->content =~ /Sun Microsystems/;
21 my $cref = $res->content_ref;
22 substr($$cref, 100) = "..." if length($$cref) > 100;
23 print "\n", $res->as_string;