|
1金钱
我就是做了个登陆,然后跳转到 主页(http://www.qclm360.com/)
可是最后返回的 不是登陆成功的信息,
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "http://www.qclm360.com/Login/Index",
Method = "post",
Referer="http://www.qclm360.com/Login",
Postdata=string.Format("Phone={0}&Password={1}&ValidateCode={2}",textBox1.Text,textBox2.Text,textBox3.Text),
ContentType="application/x-www-form-urlencoded",
Cookie=cookie
};
HttpResult result = http.GetHtml(item);
cookie += result.Cookie;
if (result.Html.Contains("Object moved"))
{
item = new HttpItem() {
URL = "http://www.qclm360.com/",
Referer = "http://www.qclm360.com/Login",
Cookie=cookie,
Method="get"
};
result = http.GetHtml(item);
MessageBox.Show(result.Html); //这里的html 没有获取成功呢
}
|
|