zpslyp680 发表于 2013-4-6 00:28:35

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

代码如下
$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 Gatewaynginx/1.0.15
为什么会出现502错误 ???是不是服务器的问题呀

hahakanshu 发表于 2013-4-6 09:41:31

怎么的呢?????

海中叶 发表于 2013-4-6 10:52:39

{:1_1:}这问题我也碰到过

海中叶 发表于 2013-4-6 10:53:26

你看下抓取功能是否开启

zpslyp680 发表于 2013-4-6 12:05:25

海中叶 发表于 2013-4-6 10:53 static/image/common/back.gif
你看下抓取功能是否开启

额抓取功能 ?可以说的详细点吗? 不太懂。

Nop 发表于 2013-4-6 13:54:15

这个多是服务器php-fpm的问题哈
502 Bad Gateway

zpslyp680 发表于 2013-4-7 10:16:31

求大神~~有人会不。。。。。

zpslyp680 发表于 2013-4-7 14:48:45

:hug::hug::hug::hug:指点呀
页: [1]
查看完整版本: 急~实现qq登录功能 用file_get_contents远程打开URL出现502错误