网页信息抓取
摘要:
//创建http链接 var request = (HttpWebRequest)WebRequest.Create("http://www.cnblogs.com/huangxincheng/archive/2012/03/14/2395279.html"); request.Timeout = 1000 * 5; //5s过期 var response = (HttpWebResponse)request.GetResponse(); Stream stream = response.GetResponseStream(); StreamReader sr = new 阅读全文
posted @ 2013-03-28 17:51 水行者 阅读(135) 评论(0) 推荐(0) 编辑