kyogaraj / opensocial-php-client

Automatically exported from code.google.com/p/opensocial-php-client
Apache License 2.0
0 stars 0 forks source link

Avoid cert Validation error #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Index: src/osapi/io/osapiCurlProvider.php
===================================================================
--- src/osapi/io/osapiCurlProvider.php  (revision 88)
+++ src/osapi/io/osapiCurlProvider.php  (working copy)
@@ -44,8 +44,9 @@
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
     curl_setopt($ch, CURLOPT_USERAGENT, $ua);
     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
-    if ($headers && is_array($headers)) {
-      curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
+    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); 
+    if ($headers) {
+      curl_setopt($ch, CURLOPT_HEADER, true);
     }
     $data = @curl_exec($ch);
     $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

Original issue reported on code.google.com by rovagn...@gmail.com on 18 Mar 2009 at 12:15

GoogleCodeExporter commented 9 years ago
Applied in r96

Original comment by api.kurrik%google.com@gtempaccount.com on 25 Mar 2009 at 12:38