php curl调用接口问题

WBOY
Release: 2016-06-06 20:08:25
Original
1122 people have browsed it

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

回复内容:

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

<code>$errno = curl_errno($curl)</code>
Copy after login

打印出来 $errno 为56

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

<code>CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_0</code>
Copy after login

curl errno

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

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template