摘要:
1.无需身份验证的web请求(get/set方式)using System.net ;publicstaticstringGetUrltoHtml(stringUrl,stringtype){try{System.Net.WebRequestwReq=System.Net.WebRequest.Create(Url);//Gettheresponseinstance.System.Net.WebResponsewResp=wReq.GetResponse();System.IO.StreamrespStream=wResp.GetResponseStream();//DimreaderAsS. 阅读全文