System.Collections.Specialized.NameValueCollection namevalue=Request.Headers;
if (namevalue != null)
{
//for (int i = 0; i < namevalue.Count; i++)
//{
// Response.Output.WriteLine(namevalue[i]+"<br/>");
//}
foreach (string str in namevalue.AllKeys)
{
Response.Output.WriteLine("键:" + str + ";值:" + namevalue[str]);
}
}