Winfrom 抓取web页面内容代码

            WebRequest request = WebRequest.Create("http://1.bjapp.sinaapp.com/play.php?a=" + PageUrl);
            WebResponse response = request.GetResponse();
            Stream resStream = response.GetResponseStream();
            StreamReader sr = new StreamReader(resStream, System.Text.Encoding.UTF8);
            string htmlinfo = sr.ReadToEnd();
            resStream.Close();
            sr.Close();

Winfrom 抓取web页面内容代码

上一篇:HBase高级操作


下一篇:Window Server 2008 R2 TFS2010 安装前的准备