From 0e62c8593b4018f0a32c8b54a96bb0a95383c014 Mon Sep 17 00:00:00 2001 From: Marek Vacek Date: Thu, 9 Oct 2014 18:01:31 +0200 Subject: [PATCH] Fixes Issue #43 reported by Hsidhu --- phpFlickr.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpFlickr.php b/phpFlickr.php index 975371e..51c2e75 100644 --- a/phpFlickr.php +++ b/phpFlickr.php @@ -225,6 +225,7 @@ function post ($data, $type = null) { curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); + curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($curl); curl_close($curl); } else { @@ -434,6 +435,7 @@ function sync_upload ($photo, $title = null, $description = null, $tags = null, curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $args); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); + curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($curl); $this->response = $response; curl_close($curl); @@ -496,6 +498,7 @@ function async_upload ($photo, $title = null, $description = null, $tags = null, curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $args); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); + curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($curl); $this->response = $response; curl_close($curl); @@ -557,6 +560,7 @@ function replace ($photo, $photo_id, $async = null) { curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $args); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); + curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($curl); $this->response = $response; curl_close($curl);