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

php curl调用接口问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:08:25
Original
1248 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
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template