Request.ServerVariables Environment Server Scalar

Source: Internet
Author: User
Tags scalar servervariables unique id metabase

From:

Http://www.yesky.com/imagesnew/software/asp/innerobject/request/intr5vsj.htm

ServerVariables

The ServerVariables collection retrieves the predetermined environment variables.

Grammar
Request.ServerVariables (Server environmentvariable
Parameters
Server environment variables
Specifies the name of the server environment variable to retrieve. You can use the values listed below.
Variable Description
All_http All HTTP header files sent by the client.
All_raw Retrieves all headings in the unhandled table. Unlike All_raw and all_http, all_http places http_ prefix before the title file name, and the title name is always uppercase. When you use All_raw, the title name and value appear only when the client sends it.
Appl_md_path Retrieves the metabase path of the (WAM) application of the ISAPI DLL.
Appl_physical_path Retrieves the physical path corresponding to the metabase path. IIS returns a value by converting Appl_md_path to a physical (directory) path.
Auth_password The value is entered into the authentication dialog for the client. This variable is available only when Basic authentication is used.
Auth_type This is the authentication method that the server uses to validate users when they access a protected script.
Auth_User The user name that was not authenticated.
Cert_cookie The unique ID of the client authentication, returned as a string. A signature that can be verified as an entire client.
Cert_flags If there is client authentication, then BIT0 is 1.

If the verifier of the client authentication is not valid (not in the list of CAs recognized by the server), Bit1 is set to 1.

Cert_issuer The Issuer field in user authentication (O=ms,ou=ias,cn=user name,c=usa).
Cert_keysize The number of bits of the Secure Sockets Layer connection keyword, such as 128.
Cert_secretkeysize The server verifies the number of bits of the private keyword. such as 1024.
Cert_serialnumber The Serial number field of the user authentication.
Cert_server_issuer The issuer field of the server validation.
Cert_server_subject The primary field for server authentication.
Cert_subject The primary field for client authentication.
Content_length The length of the content emitted by the client.
Content_Type The data type of the content. Used with additional information queries, such as HTTP query GET, POST, and PUT.
Gateway_interface Revision of CGI specifications used by the server. The format is cgi/revision.
http_<headername> headername The value stored in the header file. Header files that are not listed in the table must be prefixed with HTTP_ so that the ServerVariables collection retrieves its values.

Note The server interprets the underscore (_) in headername as a dash in the actual caption. For example, if you specify Http_my_header, the server searches for a header file that is sent in My-header name.

HTTPS Returns on if the request crosses the secure channel (SSL). Returns off if the request is from a non-secure channel.
Https_keysize The number of bits of the Secure Sockets Layer connection keyword, such as 128.
Https_secretkeysize The server verifies the number of bits of the private keyword. such as 1024.
Https_server_issuer The issuer field of the server validation.
Https_server_subject The primary field for server authentication.
instance_id The ID of the text-formatted IIS instance. If the instance ID is 1, it appears as a character. Use this variable to retrieve the ID of the Web server instance (in the metabase) to which the request belongs.
Instance_meta_path Metabase path of the IIS instance that responds to the request.
Local_addr Returns the address of the server that accepted the request. This variable is important if the address used for the request is found on a multihomed machine that is bound to multiple IP addresses.
Logon_User User logs on to Windows NT® account.
Path_info Additional path information provided by the client. You can use these virtual paths and Path_info server variables to access scripts. If this information comes from a URL, it is decoded by the server before it arrives at the CGI script.
Path_translated Path_info the converted version, the variable gets the path and makes the necessary virtual-to-physical mapping.
Query_string Query for information after the question mark (?) in an HTTP request.
Remote_addr The IP address of the remote host that made the request.
Remote_host The name of the host that issued the request. If the server does not have this information, it will be set to an empty mote_addr variable.
Remote_user A string of unmapped user names sent by the user. The name is the name that the user actually sends, as opposed to the name of the validation filter that was modified on the server.
Request_method This method is used to make a request. Equivalent to, POST, and so on for HTTP.
Script_name The virtual path of the execution script. The URL to use for self-referencing.
server_name The server host name, DNS alias, or IP address that appears in the self-referencing UAL.
Server_port The port number on which the request was sent.
Server_port_secure A string that contains 0 or 1. If the security port handles the request, it is 1, otherwise 0.
Server_protocol The name and revision of the request information Agreement. The format is protocol/revision .
Server_software The name and version of the server software that answers the request and runs the gateway. The format is name/version .
Url Provides a basic part of the URL.
Comments

If the header file sent by the client is not found in the table above, you can add HTTP_ prefix to the title file name in the call Request.ServerVariables to retrieve its value.

Request.ServerVariables Environment Server Scalar

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.