📜  网页搜索c#代码示例

📅  最后修改于: 2022-03-11 14:49:01.809000             🧑  作者: Mango

代码示例1
string url = "http://someurl.com/default.aspx";
WebRequest webRequest=WebRequest.Create(url);
WebResponse response=webRequest.GetResponse();

Stream str=response.GetResponseStream();
StreamReader reader=new StreamReader(str);
string source=reader.ReadToEnd();