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);

 

 

 

相关文章:

  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2022-02-09
  • 2021-06-03
  • 2021-06-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
相关资源
相似解决方案