Enable check for website with unverified SSL

Signed-off-by: Samuel Denis-D'Ortun <sam@sddproductions.com>
This commit is contained in:
Samuel Denis-D'Ortun 2014-06-17 22:44:04 -04:00
parent 8e74a48b3c
commit 909085cc1c
1 changed files with 2 additions and 0 deletions

View File

@ -273,6 +273,8 @@ function psm_curl_get($href, $header = false, $body = true, $timeout = 10, $add_
curl_setopt($ch, CURLOPT_NOBODY, (!$body));
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_ENCODING, '');