返回一个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));
          }
        }

posted on 2009-09-16 11:43  画一个圆圈  阅读(85)  评论(0编辑  收藏  举报

导航