CURL 设置出错

WBOY
WBOYOriginal
2016-06-23 14:24:27861browse

curl ssl

CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value 2 will be used instead

这个要怎么解决?

回复讨论(解决方案)

它是说value 1不再被接受,value 2将被取代,尝试把它改成
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);

CURL >= 7.28.1 以后的版本都不支持CURLOPT_SSL_VERIFYHOST为1

它是说value 1不再被接受,value 2将被取代,尝试把它改成
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);

原来是这个样子...thx

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn