What are the common parameters of the ServerVariables collection?
To read the client's environmental parameters with the Reques object, use the ServerVariables collection object to save the environment variable.
The following image is some of the commonly used parameters for the ServerVariables collection:
All HTTP header files sent by the all_http client. The Content_length client issues the length of content. Content_type content data type. Such as: "Text / HTML". Use with additional information, such as HTTP query GET, POST, and PUT. Local_addr Returns the server address that accepts the request. This variable is very important if you look for the address used by the request for multiple IP addresses. Logon_user user logs in to Windows NT Query_String Query the information after Question mark (?) In the HTTP request. Remote_addr issues the IP address of the Remote Host (Client). Remote_host issues a request for the host (Client) name. If the server doesn't have this information, it will set an empty Mote_Addr variable. Request_method This method is used to make a request. Equivalent to GET, HEAD, POST, etc. used for HTTP. Server_name appears in the server host name, DNS name, or IP address in the self-reference URL. Server_port sends the port number of the request. What is the syntax of the language environment of the server servervariables collection object?
This collection object is as follows: Request.ServerVariables How do I get the environmental parameters of the machine via the Request object? Example Request.asp, his main role is to read local IP addresses, server-side IP addresses, and machines used by the server, the source program is as follows: