|
楼主 |
发表于 2013-6-18 15:36:47
|
显示全部楼层
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "http://tieba.baidu.com/f/commit/post/add",
Postdata = "ie=utf-8&kw=%E5%B2%9B%E5%B4%8E%E9%81%A5%E9%A6%99&fid=2904815&tid=2397024549&floor_num=3"e_id=34108051015&rich_text=1&tbs=e22c64b9d6b787171371486736&content=%E5%B9%B2%E4%BB%80%E4%B9%88%E7%9A%84&lp_type=0&lp_sub_type=0&new_vcode=1&tag=11&repostid=34108051015&anonymous=0",
ContentType = "application/x-www-form-urlencoded; charset=UTF-8",
UserAgent="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E)",
Referer="http://tieba.baidu.com/p/2397024549",
Cookie="SSUDBTSP=1369318934; BAIDUID=B2A3D0623A62F6111A3DE4936749C7B5:FG=1;",
Method="post",
};
item.Header.Add("x-requested-with", "XMLHttpRequest");
HttpResult result = http.GetHtml(item);
string html = result.Html;
}
}
这样也不行
|
|