Get Response Status 关键字用来获取http请求返回的http状态码. 示例1:访问苏宁易购网站上的http推荐接口,使用Get Response Status 关键字来获取返回的http 状态码 Create Http Context tuijian.suning.com scheme=http GET /recommend-portal/recommendv2/biz.jsonp?callback=showFinal¶meter=%E7%A
//测试 请求接口 public function index(){ $arr = array('a'=>'555','b'=>56454564); $data=$this->post_json_data('http://www.test.com/public/index/api/postTest',json_encode($arr)); dump(json_decode($data['result'],true)); } //测试 接口 public function postTest
1.请求接口时出现 Status (blocked:other) 2.原因分析:安装了Adblock 3.解决办法 1)关掉Adblock2)修改接口名称,不能用 ad 或者 XX ad XX 等名称 其实除了adblock外,还有一些广告拦截的也会有这个提示,我的就是uBlock,关闭即可 关闭步骤: 点击更多工具-扩展程序