9 use_ok 'Net::HTTPS::Any', 'https_post';
13 my($content, $response, %headers) = https_post(
14 { 'host' => 'www.google.com',
16 'path' => '/accounts/ServiceLoginAuth',
17 'args' => { 'posted' => 'data' },
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_post(
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');