c# HttpWebRequest与HttpWebResponse 绝技
摘要:
1.第一招,根据URL地址获取网页信息 先来看一下代码get方法publicstaticstringGetUrltoHtml(stringUrl,stringtype){try{System.Net.WebRequestwReq=System.Net.WebRequest.Create(Url);//Gettheresponseinstance.System.Net.WebResponsewResp=wReq.GetResponse();System.IO.StreamrespStream=wResp.GetResponseStream();//DimreaderAsStreamReader= 阅读全文
posted @ 2011-09-30 15:16 bicabo 阅读(11414) 评论(0) 推荐(1) 编辑