The ServerVariables set retrieves the predefined environment variables.
Syntax
Request. ServerVariables [server environment variable]
Parameters
Server Environment Variables
The name of the server environment variable to be retrieved. You can use the values listed below.
Variable description
All HTTP header files sent by the ALL_HTTP client.
ALL_RAW Retrieves all titles in the unprocessed table. Different from ALL_RAW, ALL_HTTP puts HTTP _ prefix before the title file name, and the title name is always capitalized. When ALL_RAW is used, the title name and value only appear when the client sends them.
APPL_MD_PATH: retrieves the metadatabase path of the isapi dll (WAM) Application.
APPL_PHYSICAL_PATH: retrieves the physical path corresponding to the metabase path. IIS converts APPL_MD_PATH to a physical (directory) path to return values.
AUTH_PASSWORD: enter this value in the authentication dialog box of the client. This variable is available only when basic authentication is used.
AUTH_TYPE when a user accesses a protected script, the server is used to verify the user's authentication method.
AUTH_USER: the user name that has not been authenticated.
The unique ID verified by the CERT_COOKIE client, which is returned as a string. It can be used as a signature for verification by the entire client.
If CERT_FLAGS has client verification, bit0 is 1. If the authenticated by the client is invalid (not in the CA list recognized by the server), bit1 is set to 1.
The issuer field in CERT_ISSUER user authentication (O = MS, OU = IAS, CN = user name, C = USA ).
CERT_KEYSIZE the number of digits of the Secure Socket Layer connection keyword, such as 128.
The CERT_SECRETKEYSIZE server verifies the number of digits of a private keyword. For example, 1024.
The serial number field verified by the CERT_SERIALNUMBER user.
The issuer field verified by the CERT_SERVER_ISSUER server.
The main field verified by the CERT_SERVER_SUBJECT server.
The main field verified by the CERT_SUBJECT client.
CONTENT_LENGTH the length of the content sent by the client.
The data type of the CONTENT_TYPE content. It is used together with the query of additional information, such as HTTP query GET, POST, and PUT.
Modify the CGI specification used by the GATEWAY_INTERFACE server. The format is CGI/revision.
The value of HTTP _ <HeaderName> HeaderName stored in the title file. The title file not included in the table must be prefixed with HTTP _ For the ServerVariables set to retrieve its value. Note that the server interprets the underscore (_) in the HeaderName as a broken number in the actual title. For example, if you specify HTTP_MY_HEADER, the server searches for the title file sent in the name of MY-HEADER.
HTTPS returns ON if the request passes through the Secure Channel (SSL. If the request comes from an insecure channel, return OFF.
HTTPS_KEYSIZE the number of digits of the Secure Socket Layer connection keyword, such as 128.
HTTPS_SECRETKEYSIZE the number of digits for the server to verify the private keyword. For example, 1024.
The issuer field verified by the HTTPS_SERVER_ISSUER server.
The main field verified by the HTTPS_SERVER_SUBJECT server.
The ID of the IIS instance in the text format of INSTANCE_ID. If the instance ID is 1, it appears as a character. You can use this variable to retrieve the ID of the Web server instance to which the request belongs (in the metabase.
INSTANCE_META_PATH: The metabase path of the IIS instance that responds to the request.
LOCAL_ADDR returns the server address that receives the request. This variable is very important if you look for the address used by the request on a multi-host machine bound with multiple IP addresses.
How does a LOGON_USER log on to Windows NT? .
The additional path information provided by the PATH_INFO client. You can use these virtual paths and the PATH_INFO server variable to access the script. If the information comes from the URL, It is decoded by the server before it reaches the CGI script.
PATH_TRANSLATED PATH_INFO: The converted version. This variable obtains the path and performs necessary ing from virtual to physical.
QUERY_STRING query the question mark (?) in an HTTP request (?) .
The IP address of the remote host that REMOTE_ADDR sends the request.
The name of the host that REMOTE_HOST sends the request. If the server does not have this information, it will set the MOTE_ADDR variable to null.
The unmapped username string sent by the REMOTE_USER user. The name is the name actually sent by the user, which is opposite to the name modified by the server verification filter.
REQUEST_METHOD this method is used to request. It is equivalent to GET, HEAD, POST, and so on for HTTP.
The virtual path for SCRIPT_NAME to execute the script. The URL used for self-reference.
SERVER_NAME displays the server host name, DNS alias, or IP address in the Self-referenced UAL.
The Port Number of the request sent by SERVER_PORT.
SERVER_PORT_SECURE contains a string of 0 or 1. If the security port processes the request, it is 1; otherwise, it is 0.
Name and revision of the SERVER_PROTOCOL request information protocol. Format: protocol/revision.
SERVER_SOFTWARE answers the request and runs the name and version of the gateway's server software. The format is name/version.
The URL provides the basic part of the URL.