返回一个Internet的响应Headers
HttpWebRequest wr =(HttpWebRequest)WebRequest.Create("http://www.goole.cn");
HttpWebResponse wrp =(HttpWebResponse)wr.GetResponse();
if (wrp.StatusCode ==HttpStatusCode.OK)
{
foreach(string _key in wrp.Headers.AllKeys)
{
Response.Write(wrp.GetResponseHeader(_key));
}
}
HttpWebResponse wrp =(HttpWebResponse)wr.GetResponse();
if (wrp.StatusCode ==HttpStatusCode.OK)
{
foreach(string _key in wrp.Headers.AllKeys)
{
Response.Write(wrp.GetResponseHeader(_key));
}
}