|
现在很多网站都支持QQ登录,在模拟登录过程中组后一步授权总出问题,在这个请求前面的都成功了。来到这里不成功。如果成功location应该是跳转网站的授权接口
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "https://graph.qq.com/oauth2.0/authorize",
Host = "graph.qq.com",
Method = "POST",
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
Referer = "https://graph.qq.com/oauth/show?which=ConfirmPage&display=pc&response_type=code&client_id=100253636&redirect_uri=http%3a%2f%2fwww.quanmama.com%2ft%2fqq.aspx%3freturl%3dhttp%253a%252f%252fwww.quanmama.com%252ft%252flogin_jump.htm%253faj_is_from_login%253d1%2526from%253dhttp%253a%252f%252fwww.quanmama.com%252fquan%252f1930570.html&state="+state,
UserAgent = "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.104 Safari/537.36 Core/1.53.2372.400 QQBrowser/9.5.10548.400",
Cookie = ck2,
KeepAlive = true,
Expect100Continue=true,
ContentType = "application/x-www-form-urlencoded",
Postdata = "response_type=code&client_id=100253636&redirect_uri=http%3A%2F%2Fwww.quanmama.com%2Ft%2Fqq.aspx%3Freturl%3Dhttp%253a%252f%252fwww.quanmama.com%252ft%252flogin_jump.htm%253faj_is_from_login%253d1%2526from%253dhttp%253a%252f%252fwww.quanmama.com%252fquan%252f1930570.html&scope=&state=" + state + "&src=1&update_auth=1&openapi=80901010&g_tk=" + result1 + "&auth_time=" + GetTime() + "&ui=1988D39C-5E36-43CE-B9D1-1BD516726213",
};
item.Header.Add("Cache-Control", "max-age=0");
item.Header.Add("Origin", "https://graph.qq.com");
item.Header.Add("Accept-Encoding", "gzip, deflate, br");
item.Header.Add("Accept-Language", "zh-CN,zh;q=0.8");
大牛有研究的吗。欢迎指教
|
|