We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可以整一个查看curl里ch信息的功能,或者将该信息整合到data里也可。 不是所有语言都有php curl功能,该issue的提出旨在方便其他语言和框架手动实现curl以及类似功能,有助于拓展工作室后端技术栈。 望采纳。 (ch指的是以下代码的$ch) (data指的是以下代码的$data) (以下代码在Api.php文件的25至39行)
php curl
curl
Api.php
private function _request($url, $postData = null) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); if ($postData) { curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postData)); } $data = curl_exec($ch); curl_close($ch); return json_decode($data); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
可以整一个查看curl里ch信息的功能,或者将该信息整合到data里也可。
不是所有语言都有
php curl
功能,该issue的提出旨在方便其他语言和框架手动实现curl
以及类似功能,有助于拓展工作室后端技术栈。望采纳。
(ch指的是以下代码的$ch)
(data指的是以下代码的$data)
(以下代码在
Api.php
文件的25至39行)The text was updated successfully, but these errors were encountered: