From 19cfe46b3b8815bfb3158e760159bc7482dead09 Mon Sep 17 00:00:00 2001 From: Chad Hutchins Date: Sat, 17 Sep 2011 11:28:11 -0500 Subject: [PATCH] Added ssl curl option. On Windows (Apache or IIS) systems running PHP 5.2.x, the http_request() method would always return an empty response. Since the peer is always Panda Stream, it's not a big deal ignoring this verification. --- panda.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda.php b/panda.php index 2652585..35d3849 100644 --- a/panda.php +++ b/panda.php @@ -87,6 +87,8 @@ private function http_request($verb, $path, $query = null, $data = null) { } curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); // curl_setopt($curl, CURLOPT_VERBOSE, 1); + + curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); $response = curl_exec($curl); curl_close($curl);