diff --git a/src/Util/Downloader.php b/src/Util/Downloader.php index 3731ce6..28d477e 100644 --- a/src/Util/Downloader.php +++ b/src/Util/Downloader.php @@ -35,7 +35,10 @@ public function download(Request $request) { $pathFile = $this->pathDownload . $filename; $handle = fopen($pathFile, 'w'); $client = new Client(); - $client->request('GET', $url, ['sink' => $handle]); + $client->request('GET', $url, array( + 'sink' => $handle, + 'verify' => false // TODO : allow to pass ssl certificate + )); // Security about fake images if ($checkFile['isImage']) { @@ -120,7 +123,9 @@ private function checkFile($url) { private function url_exist($url) { try { $client = new Client(); - $client->request('HEAD', $url); + $client->request('HEAD', $url, array( + 'verify' => false // TODO : allow to pass ssl certificate + )); return true; } catch (ClientException $e) {