Fix: add curl_setopt($cHandler, CURLOPT_SSL_VERIFYHOST, false);

This commit is contained in:
Laurent Destailleur 2014-07-19 16:47:51 +02:00
parent a6992e116b
commit 8e9d760903

View File

@ -146,6 +146,7 @@ class MailmanSpip
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, empty($conf->global->MAIN_USE_CONNECT_TIMEOUT)?5:$conf->global->MAIN_USE_CONNECT_TIMEOUT);
curl_setopt($ch, CURLOPT_TIMEOUT, empty($conf->global->MAIN_USE_RESPONSE_TIMEOUT)?30:$conf->global->MAIN_USE_RESPONSE_TIMEOUT);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$result = curl_exec($ch);
dol_syslog('result curl_exec='.$result);