#!perl -w
use strict;
use Test;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new();
my $res = $ua->simple_request(HTTP::Request->new(GET => "https://www.sun.com"));
if ($res->code == 501 && $res->message =~ /Protocol scheme 'https' is not supported/) {
print "1..0 # Skipped: " . $res->message . "\n";
exit;
}
plan tests => 2;
ok($res->is_success);
ok($res->content =~ /Sun Microsystems/);
$res->dump(prefix => "# ");