用户
 找回密码
 入住 CI 中国社区
搜索
查看: 6092|回复: 7
收起左侧

[Others] 急~实现qq登录功能 用file_get_contents远程打开URL出现502错误

[复制链接]
发表于 2013-4-6 00:28:35 | 显示全部楼层 |阅读模式
代码如下
$inputs = $this->input->get();
$token_url = "https://graph.qq.com/oauth2.0/token?grant_type=authorization_code&client_id=替换&redirect_uri=http://www.luxsun.com.cn/index.php&client_secret=替换&code=".$inputs['code'];
$response = file_get_contents($token_url);
  
错误

502 Bad Gateway
nginx/1.0.15
为什么会出现502错误 ???  是不是服务器的问题呀

发表于 2013-4-6 09:41:31 | 显示全部楼层
怎么的呢?????
发表于 2013-4-6 10:52:39 | 显示全部楼层
这问题我也碰到过
发表于 2013-4-6 10:53:26 | 显示全部楼层
你看下抓取功能是否开启
 楼主| 发表于 2013-4-6 12:05:25 | 显示全部楼层
海中叶 发表于 2013-4-6 10:53
你看下抓取功能是否开启

额  抓取功能 ?  可以说的详细点吗? 不太懂。
发表于 2013-4-6 13:54:15 | 显示全部楼层
这个多是服务器php-fpm的问题哈
502 Bad Gateway
 楼主| 发表于 2013-4-7 10:16:31 | 显示全部楼层
求大神~~  有人会不。。。。。
 楼主| 发表于 2013-4-7 14:48:45 | 显示全部楼层
  指点呀

本版积分规则