Merge pull request #105 from sadortun/website_unverified_ssl
Enable check for website with unverified SSLpull/104/merge
commit
6636097a2c
|
@ -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