foreach (string key in Request.ServerVariables.AllKeys)
{
Response.Write("key + ":" + Request.ServerVariables[key] + "<br/>");
}
ALL_HTTP:HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:*/* HTTP_ACCEPT_ENCODING:gzip, deflate HTTP_ACCEPT_LANGUAGE:zh-cn HTTP_HOST:localhost:2428 HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Alexa Toolbar) HTTP_UA_CPU:x86
ALL_RAW:Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, deflate Accept-Language: zh-cn Host: localhost:2428 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Alexa Toolbar) UA-CPU: x86
APPL_MD_PATH:
APPL_PHYSICAL_PATH:D:\WebAppTest\WebAppTest\
AUTH_TYPE:NTLM
AUTH_USER:SOUFUN-0D1D798B\minhongbo
AUTH_PASSWORD:
LOGON_USER:SOUFUN-0D1D798B\minhongbo
REMOTE_USER:SOUFUN-0D1D798B\minhongbo
CERT_COOKIE:
CERT_FLAGS:
CERT_ISSUER:
CERT_KEYSIZE:
CERT_SECRETKEYSIZE:
CERT_SERIALNUMBER:
CERT_SERVER_ISSUER:
CERT_SERVER_SUBJECT:
CERT_SUBJECT:
CONTENT_LENGTH:0
CONTENT_TYPE:
GATEWAY_INTERFACE:
HTTPS:
HTTPS_KEYSIZE:
HTTPS_SECRETKEYSIZE:
HTTPS_SERVER_ISSUER:
HTTPS_SERVER_SUBJECT:
INSTANCE_ID:
INSTANCE_META_PATH:
LOCAL_ADDR:127.0.0.1
PATH_INFO:/ResponseTest.aspx
PATH_TRANSLATED:D:\WebAppTest\WebAppTest\ResponseTest.aspx
QUERY_STRING:
REMOTE_ADDR:127.0.0.1
REMOTE_HOST:127.0.0.1
REMOTE_PORT:
REQUEST_METHOD:GET
SCRIPT_NAME:/ResponseTest.aspx
SERVER_NAME:localhost
SERVER_PORT:2428
SERVER_PORT_SECURE:0
SERVER_PROTOCOL:HTTP/1.1
SERVER_SOFTWARE:
URL:/ResponseTest.aspx
HTTP_CONNECTION:Keep-Alive
HTTP_ACCEPT:*/*
HTTP_ACCEPT_ENCODING:gzip, deflate
HTTP_ACCEPT_LANGUAGE:zh-cn
HTTP_HOST:localhost:2428
HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Alexa Toolbar)
HTTP_UA_CPU:x86