9 use_ok( 'Net::HTTPS::Any', qw( https_get ) );
14 my($content, $response, %headers) = https_get(
15 { 'host' => 'www.fortify.net',
17 'path' => '/sslcheck.html',
19 'net_https_any_test' => 1,
22 #like($response, qr/^HTTP\/[\d\.]+\s+200/i, 'Received 200 (OK) response');
23 like($response, qr/^200/i, 'Received 200 (OK) response');
25 ok( length($content), 'Received content' );
29 my($content2, $response2, %headers2) = https_get(
30 { 'host' => 'www.fortify.net',
32 'path' => '/notfound.html',
34 'net_https_any_test' => 1,
37 #like($response2, qr/^HTTP\/[\d\.]+\s+404/i, 'Received 404 (Not Found) response');
38 like($response2, qr/^404/i, 'Received 404 (Not Found) response');