|
static void Main(string[] args)
{
HttpHelper _help = new HttpHelper();
HttpResult result = _help.GetHtml(new HttpItem
{
Method = "POST",
URL = "http://passport.hupu.com/login",
ContentType = "application/x-www-form-urlencoded",
Postdata = string.Format("username={0}&password={1}", "123", "123"),
});
//此处查看result已经显示登陆成功,正在跳转。。。。
var item = new HttpItem
{
Method="GET",
URL = "http://my.hupu.com/112319",
Cookie = result.Cookie,
};
item.Cookie = item.Cookie.Replace("path=/;", "");
HttpResult re3 = _help.GetHtml(item);
//此处页面却一直有个框显示要登陆才能留言,而且最近访客痕迹也没有
}
请大大们帮忙呀。
|
|