HttpWebRequest web = (HttpWebRequest)HttpWebRequest.Create(url);
            web.ServicePoint.Expect100Continue = false;
            web.AllowAutoRedirect = false;
            web.ContentType = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*";
            web.Accept = this.Request.AcceptTypes.ToString();
            web.Method = "GET";
            web.UserAgent = this.Request.UserAgent;

            HttpWebResponse res = (HttpWebResponse)web.GetResponse();
            string html = new StreamReader(res.GetResponseStream(), Encoding.UTF8).ReadToEnd();
            return html;

相关文章:

  • 2021-06-28
  • 2022-12-23
  • 2022-02-19
  • 2021-11-27
  • 2021-07-19
  • 2021-12-14
  • 2021-04-19
  • 2021-08-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-06-14
相关资源
相似解决方案