jadell/neo4jphp — pull request #64 by rado-h (2012-09-03 12:13:12+00:00)
Title: Add options for request through ssl

Add options to the transport for ssl request.
Example:
$transport = new Transport\Curl("127.0.0.1", "443");
$sslOptions = array(CURLOPT_SSL_VERIFYPEER => true, CURLOPT_SSLCERT => "/path/to/cert");
$transport->useHttps(true, $sslOptions);
OR
$transport = new Transport\Stream("127.0.0.1", 443);
$sslOptions = array("verify_peer" => false, "cafile" => "path/to/cafile);
$transport->useHttps(true, $sslOptions);

Also when sending request through ssl with context_stream the stream_options array must be with key http for the http options and the ssl specific option must be with key ssl.