PHP Curl:SSL例程:SSL23_GET_SERVER_HELLO:reason(1112)

前端之家收集整理的这篇文章主要介绍了PHP Curl:SSL例程:SSL23_GET_SERVER_HELLO:reason(1112)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试执行HTTPS请求:
curl_setopt($curl,CURLOPT_URL,'https://***.com');
curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl,CURLOPT_FOLLOWLOCATION,CURLOPT_POST,false);
curl_setopt($curl,CURLOPT_COOKIEJAR,$cookiesFile);
curl_setopt($curl,CURLOPT_VERBOSE,true);
$out = curl_exec($curl);

请求后,$out为空,我正在获取此日志:

* About to connect() to ***.com port 443 (#0)
*   Trying *.*.*.*...
* connected
* Connected to ***.com (*.*.*.*) port 443 (#0)
* error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)
* Closing connection #0

为什么?

固定:
curl_setopt($ch,CURLOPT_SSLVERSION,3);
原文链接:https://www.f2er.com/php/132445.html

猜你在找的PHP相关文章