我正在尝试执行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
为什么?
固定:
原文链接:https://www.f2er.com/php/132445.htmlcurl_setopt($ch,CURLOPT_SSLVERSION,3);