C#几种获取网页源文件代码的实例
方法一: 代码如下:using System.Text;using System.Net;private string getHtml(string url){WebClient myWebClient = new WebClient();byte[] myDataBuffer = myWebClient.DownloadData (url);return Encoding.Default.GetString(myDataBuffer);}方法二: 代码如下:public string getHttp(string HttpUrl,string RefererUrl){string html
暂无评论