Re: HTTP_Request and Client Certs
| From: | Justin Patrin | Date: | Sat, 24 Jan 2004 22:26:52 +0000 |
| Subject: | Re: HTTP_Request and Client Certs | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-25256@lists.php.net to get a copy of this message | ||
Alexey Borzov wrote:
Hi! Richard Heyes wrote:Of course, that if statement if looking for 'https' at the beginning, not 'ssl', so the if fails anyway.... -- paperCrane <Justin Patrin>Yes, of course. Here is the current check from HTTP_Request:Is there a reliable way in PHP 4.x to test whether 'ssl://' connectionswillwork without actually trying to connect?Well it has to be 4.3 and up for a start.// 4.3.0 supports SSL connections using OpenSSL. The function test determines // we running on at least 4.3.0 if (strcasecmp($this->_url->protocol, 'https') == 0 AND function_exists('file_get_contents') AND extension_loaded('openssl')) {The problem is, the check passes, but the 'ssl://' connection does not work still.