Created
November 27, 2017 14:05
-
-
Save openstrike/a1feb72d62aad5c0cea6115bb58f0029 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use LWP::UserAgent; | |
print "Content-type: text/html\n\n"; | |
my $ua = LWP::UserAgent->new; | |
$ua->ssl_opts ({ SSL_version => 'TLSv1_2' }); | |
my $res = $ua->get ('https://tlstest.nochex.com'); | |
unless ($res->is_success && $res->content =~ /NOCHEX_Connection_OK/) { | |
print "<h1>Test Failed</h1>", $res->content; die $res->code; | |
} | |
print "<h1>Test passed</h1>\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment