|
登陆网易通行证OK,但是再跳到love.163.com,就卡在一个跳转页面上了,请问怎么过去
[code=csharp]HttpItem item = new HttpItem()
{
URL = "https://reg.163.com/logins.jsp?url=&product=&savelogin=&outfoxer=&domains=" +
"&syscheckcode=034715eb7e1f16cd332e41f95e3303204ceadd7e&username="
+ this.textBox1.Text.Trim() + "&password="
+ this.textBox3.Text.Trim() + "&Submit=",
Referer = "https://reg.163.com/logins.jsp"
};
HttpHelper http = new HttpHelper();
HttpResult result = http.GetHtml(item);
string cookie = result.Cookie;
this.textBox2.Text = "cookie:" + cookie + "\r\n\r\n";
//使用Cookie转到主页
//item.URL = "http://reg.163.com/Main.jsp";
//textBox2.Text += result.Html;
item.URL = "http://love.163.com/home";
string body = result.Html.Replace("\n", "");
//body = Regex.Matches(body, @"(window.location.replace\(""http://reg.youdao.com/crossdomain.jsp(.*)\);)")[0].ToString();
////textBox2.Text += body + "\n\n";
//body = body.Substring(0, body.Length - 3).Replace("window.location.replace(\"", "");
////textBox2.Text += body;
//item.URL = body;
textBox2.Text += result.Html;[/code]
|
|