HttpHelper使用记录

重新载入页面以获取源代码

 

 1    var item = new HttpItem()

 2             {

 3                 URL = @"http://www.xxx.com/msg/basic/?a=sendmsg",

 4                 //Encoding = System.Text.Encoding.GetEncoding("GBK"),

 5                 Method = "post",

 6                 //IsToLower = false,

 7                 Expect100Continue = false,

 8                 //Cookie = cookie,

 9                 Postdata = "src=send&contents=" + content + "&disp_uid=" + uid,

10                 Timeout = 100000,

11                 ReadWriteTimeout = 30000,

12                 ProxyIp = proxyIp,

13                 UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0",

14                 ContentType = "application/x-www-form-urlencoded",

15                 CookieCollection = cookieCollection,

16                 Allowautoredirect = true, 17             };

18 

19             var httpResult = http.GetHtml(item);

 

 

 

你可能感兴趣的:(http)