HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://localhost:5983/Default.aspx");
request.Method = "POST";
using (WebResponse response = request.GetResponse())
{
using (StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8))
{
string message = reader.ReadToEnd();
}
}
request 请求页面,,response获取请求的内容,,正则表达式 匹配 a标签下的href。。
百度搜搜看