[PHP] Problem with fsockopen and SSL

2006-01-09 Thread Barry
Hi everyone! I want to connect to an SSL server but i can't get the content :( Here is the code i use: $xml = 'xmldataHello!/data/xml'; function PostToHost($host, $path, $referer, $data_to_send) { $fp = fsockopen($host, 443); printf(Open!\n); fputs($fp, POST $path HTTP/1.1\r\n\r\n);

Re: [PHP] Problem with fsockopen and SSL

2006-01-09 Thread David Grant
Hi Barry, I'm not terrible au fait with the workings of SSL, but it strikes me as potentially problematic that you are communicating in plain text over an encrypted protocol. Might that be the problem? David Barry wrote: Hi everyone! I want to connect to an SSL server but i can't get the