9 $Net::HTTPS::Any::skip_NetSSLeay=1;
10 $Net::HTTPS::Any::skip_NetSSLeay=1;
11 use_ok 'Net::HTTPS::Any', 'https_post';
16 my($content, $response, %headers) = https_post(
17 { 'host' => 'www.google.com',
19 'path' => '/accounts/ServiceLoginAuth',
20 'args' => { 'posted' => 'data' },
22 'net_https_any_test' => 1,
25 #like($response, qr/^HTTP\/[\d\.]+\s+200/i, 'Received 200 (OK) response');
26 like($response, qr/^200/i, 'Received 200 (OK) response');
28 ok( length($content), 'Received content' );
32 my($content2, $response2, %headers2) = https_post(
33 { 'host' => 'www.fortify.net',
35 'path' => '/notfound.html',
37 'net_https_any_test' => 1,
40 #like($response2, qr/^HTTP\/[\d\.]+\s+404/i, 'Received 404 (Not FOund) response');
41 like($response2, qr/^404/i, 'Received 404 (Not Found) response');