[C#] 纯文本查看 复制代码 HttpItem hi = new HttpItem();
hi.URL = US_PublicSource.URL + "klc/history/ListPlay";
hi.Method = "POST";
hi.Postdata = "date=" + DateTime.Now.ToString("yyyy-MM-dd") + "&platform=all&pager=1&status=1";
hi.UserAgent = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)";
hi.ContentType = "application/x-www-form-urlencoded";
hi.Cookie = US_PublicSource.Cookies;
hi.Referer = US_PublicSource.URL + "index.htm";
string resString = hh.GetHtml(hi).Html; 有时候会出现基础链接已经关闭,然后重新请求一次就正常,但是有时就是一直处于基础链接关闭。飞哥看看。。
|