POST to port 443 (SSL)

From: Date: Mon, 27 Aug 2001 23:28:11 +0000
Subject: POST to port 443 (SSL)
Groups: php.general 
Request: Send a blank email to php-general+get-64704@lists.php.net to get a copy of this message
Hello, I am trying to use the UPS Online Tools, the XML version. This requires you POSTing an XML document to their Tools server, which is SSL enabled. I am having a problem getting this to connect in PHP (4.0.6) on my server (Apache 1.3.20). In my scripts, I use $Socket = fsockopen (www.ups.com, 443, $errno, $errstr); if (!$Socket) die ("Error bla bla bla"); fputs ($Socket, "GET /ups.app/xml/Rate HTTP/1.0\r\n\r\n"); ... ... If you point your browser to https://www.ups.com/ups.app/xml/Rate you will see a response. But this code seems to just time-out. If I change the port 443 to port 80, I will get a response. What am I missing for it to talk to an SSL port?? Thanks! Patrick pcalkins_xxx_@oemsupport.com ** remove the _xxx_ to reply -- Patrick Calkins OEMSupport.Com, Inc. ** please remove the _ to reply **

« previous php.general (#64704) next »