PHP 请求kong返回no API found with those values
2017-10-28 17:49
369 查看
<?php $curl = curl_init('https://localhost:8443'); curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false); curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,false); // 可以正常访问 curl_setopt($curl,CURLOPT_HTTPHEADER,["Host:jbp_goods_general.my"]); // no API found with those values curl_setopt($curl,CURLOPT_HTTPHEADER,["Host" => "jbp_goods_general.my"]); curl_setopt($curl,CURLOPT_RETURNTRANSFER,1); curl_setopt($curl,CURLOPT_POST,true); $output = curl_exec($curl); curl_close($curl); print_r($output);
相关文章推荐
- 微信开发使用wechat.class.php调用API,测试发现返回no access,公众号出现暂时无法提供服务
- 使用PHP创建一个REST API(Create a REST API with PHP)节选6
- Your build settings specify a provisioning profile with the UUID, no provisioning profile was found (转载)
- Your build settings specify a provisioning profile with the UUID, no provisioning profile was found
- 新浪微博API中返回的中文表情转成相应图片的PHP代码
- 关于org.hibernate.ObjectNotFoundException: No row with the given identifier exists 的快捷解决问题
- @Controler注解未生效报No mapping found for HTTP request with URI 错误
- Error: No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/p
- CXF异常:No operation was found with the name
- 跨域请求返回jsonp 乱码三个解决api
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
- No mapping found for HTTP request with URI in DispatcherServlet with name 'XXX'
- Spring3中js/css/jpg/gif等静态资源无法找到(No mapping found for HTTP request with URI)问题解决
- 关于警告: No mapping found for HTTP request with URI [/spMVC/] in DispatcherServlet with name 'spMVC'的问题
- 使用PHP创建一个REST API(Create a REST API with PHP)
- error: No resource identifier found for attribute 'layout_with' in package 'android'
- 3C102EA3DB09E43F508B4643D9F4E34C23F2A3D8: no identity found Command /usr/bin/codesign failed with ex
- cocos2dx- call to OpenGL ES API with no current context(logged once per thread)
- 安装php扩展后,执行时找不到扩展 class xxx no found
- Error:No toolchains found in the NDK toolchains folder for ABI with prefix: x86_64