|
楼主 |
发表于 2013-9-26 18:33:16
|
显示全部楼层
果然是header的原因....多谢苏飞哥,又多学了一门技术
item = new HttpItem()
{
URL = textBox1.Text,
Method = "Post",
Postdata = textBox2.Text,
UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)",//用户的浏览器类型,版本,操作系统 可选项有默认值
ContentType = "application/x-www-form-urlencoded",//返回类型 可选项有默认值
Cookie = cookie,
//Encoding = System.Text.Encoding.GetEncoding("utf-8"),//
Referer = "http://www.fhcp2.com/Game/cqssc.html"
};
item.Header.Add("X-Requested-With", "XMLHttpRequest");
HttpResult result = http.GetHtml(item);
搞定了
|
|