Add ARM files
[dh-make-perl] / dev / arm / libwww-perl / libwww-perl-5.813 / t / live / https.t
diff --git a/dev/arm/libwww-perl/libwww-perl-5.813/t/live/https.t b/dev/arm/libwww-perl/libwww-perl-5.813/t/live/https.t
new file mode 100644 (file)
index 0000000..d7b6df1
--- /dev/null
@@ -0,0 +1,23 @@
+#!perl -w
+
+use strict;
+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;
+}
+
+print "1..2\n";
+print "not " unless $res->is_success;
+print "ok 1\n";
+
+print "not " unless $res->content =~ /Sun Microsystems/;
+print "ok 2\n";
+
+my $cref = $res->content_ref;
+substr($$cref, 100) = "..." if length($$cref) > 100;
+print "\n", $res->as_string;