抓取HTML

   WebRequest objRequest = System.Net.HttpWebRequest.Create(("url绝对路径"));

        StreamReader sr = new StreamReader(objRequest.GetResponse().GetResponseStream(), System.Text.Encoding.UTF8);
        string result = sr.ReadToEnd();
        sr.Close();
      
            Response.Write(result);

posted @ 2008-10-18 11:38  Sgvon  阅读(183)  评论(0编辑  收藏  举报