Enable check for website with unverified SSL
Signed-off-by: Samuel Denis-D'Ortun <sam@sddproductions.com>pull/105/head
parent
8e74a48b3c
commit
909085cc1c
|
@ -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, '');
|
||||
|
|
Loading…
Reference in New Issue