Obtain client information

Source: Internet
Author: User
Tags servervariables

Foreach (string key in Request. ServerVariables. AllKeys)
{
Response. Write ("key +": "+ Request. ServerVariables [key] +" <br/> ");
}

 

ALL_HTTP: HTTP_CONNECTION: Keep-Alive HTTP_ACCEPT: */* restart: 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.20.6.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.20.6.2152 ;. net clr 3.5.30729; Alexa Toolbar) UA-CPU: x86
APPL_MD_PATH:
APPL_PHYSICAL_PATH: D: \ 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 \ 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.20.6.2152 ;. net clr 3.5.30729; Alexa Toolbar)
HTTP_UA_CPU: x86

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.