$sck = fsockopen ("ssl://$host", 443, $errno, $errstr, 30); ... $header = implode ("\r\n",$headers) . "\r\n\r\n";