c# 获取网页信息 url
c# 获取网页信息 url
string uri1 = “http://www.hscode.net/Goods/GetHsCodeInfo/?hscode=” + hscode;
var request = WebRequest.Create(uri1);
request.Method = “GET”;
var response = request.GetResponse();
using (var stream = new System.IO.StreamReader(response.GetResponseStream()))
{
var content = stream.ReadToEnd();//获取到远程的页面字符串
}