9 $Net::HTTPS::Any::skip_NetSSLeay=1;
10 $Net::HTTPS::Any::skip_NetSSLeay=1;
11 use_ok 'Net::HTTPS::Any', 'https_get';
16 my($content, $response, %headers) = https_get(
17 { 'host' => 'www.fortify.net',
19 'path' => '/sslcheck.html',
21 'net_https_any_test' => 1,
24 #like($response, qr/^HTTP\/[\d\.]+\s+200/i, 'Received 200 (OK) response');
25 like($response, qr/^200/i, 'Received 200 (OK) response');
27 ok( length($content), 'Received content' );
31 my($content2, $response2, %headers2) = https_get(
32 { 'host' => 'www.fortify.net',
34 'path' => '/notfound.html',
36 'net_https_any_test' => 1,
39 #like($response2, qr/^HTTP\/[\d\.]+\s+404/i, 'Received 404 (Not found) response');
40 like($response2, qr/^404/i, 'Received 404 (Not found) response');