I am doing:
$fp = fsockopen("www.x.com",443,&$en,&$es);
fputs($fp,"GET https://www.x.com/cgi-bin/testsock.cgi HTTP/1.0\nHost: www.x.com\n\n");
The server complains "You're speaking plain HTTP to an SSL-enabled server port.Instead use the HTTPS scheme to access this URL, please."
I want the connection to use the secure socket layer. I can open URL fine using port 80. What am I doing wrong?