Home  >  Article  >  Backend Development  >  php curl调用接口问题

php curl调用接口问题

WBOY
WBOYOriginal
2016-06-06 20:08:251117browse

php调用自己写的接口返回,curl错误码56 如何解决呢,排除接口问题

回复内容:

php调用自己写的接口返回,curl错误码56 如何解决呢,排除接口问题

<code>$errno = curl_errno($curl)</code>

打印出来 $errno 为56

问题已经解决 是windows系统的原因 加上这个即可

<code>CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_0</code>

curl errno

找到对应的错误号,排除错误

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