I'm trying to POST to an https:// site, and I'm using Port 443 as everybody has said to do. The problem is that I think there is something wrong with my header. Could somebody please tell me what changes I need to make to my header or if there is something else I don't know about. Also please don't tell me to use cURL or any other outside software, I need to do this in native PHP 4. Thanks.
$Header = "POST ".(($url['path'])?$url['path']:'/')." HTTPS/1.0\n".
"Host: ".$url[host]."\n".
"User-Agent: UAT\n".
"Cookie: $cookie_header\n".
"Content-Type: application/x-www-form-urlencoded\n".
"Content-Length: $content_size\n\n".
"$content_body\n";