We have to disable the SSL checks, otherwise the communication will fail for servers with self-signed certificates
This commit is contained in:
parent
20208acb23
commit
5cb6d6e537
|
@ -34,6 +34,11 @@ function fetch_url($url,$binary = false, &$redirects = 0, $timeout = 0, $accept_
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// There are many servers out there that don't have valid certificates
|
||||||
|
// We have to disable the checks :-(
|
||||||
|
@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
|
||||||
|
@curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
|
||||||
|
|
||||||
@curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
|
@curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
|
||||||
@curl_setopt($ch, CURLOPT_USERAGENT, $a->get_useragent());
|
@curl_setopt($ch, CURLOPT_USERAGENT, $a->get_useragent());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue