|
通过baidu找了下,大家都说加个System.Net.Sockets.ServicePointManager.Expect100Continue=false的方法,但我加了还是依旧如此,代码
如下,望高人指点指点
item = new HttpItem()
{
URL = "http://zt.hefei.cc/zt2013/zmqg/pol.php",//URL 必需项
Method = "Post",//URL 可选项 默认为Get
Accept="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
ContentType = "application/x-www-form-urlencoded",//返回类型
UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36",//用户的浏览器类型,版本,操作系统
Postdata = "input%5Byzm%5D="+dic["Code"].ToString()+"&id=703364&Submit=%CC%E1%BD%BB%D0%C5%CF%A2",
ProxyIp = dic["ProxyIp"],
Cookie = cookie,
Referer="http://zt.hefei.cc/zt2013/zmqg/poll.php?id=703364",
Timeout = 10000,
ResultType = ResultType.String
};
|
|