首页 > Windows开发 > 详细

Winfrom 抓取web页面内容代码

时间:2014-09-18 18:30:54      阅读:301      评论:0      收藏:0      [点我收藏+]
            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页面内容代码

原文:http://www.cnblogs.com/xiao-bei/p/3979717.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!