Uri myUri =new Uri("http://211.154.170.249:9002/xxx.aspx?para1=x&para2=y)

   WebRequest wrq = WebRequest.Create(myUri);
   WebResponse wrs = wrq.GetResponse();  

   Stream strm = wrs.GetResponseStream();
   StreamReader sr = new StreamReader(strm, System.Text.Encoding.GetEncoding( "gb2312" ));     
   
   //读取网页
   string allHtml = sr.ReadToEnd();

posted on 2005-12-22 14:22  apple  阅读(488)  评论(0编辑  收藏  举报