ServerVariables collection

xiaoxiao2021-03-06  40

ServerVariables collection is used to get the system's environment variables to use the following programs that all content names of the ServerVariables collection are displayed.

<% for Each Item in Request.ServerVariables

Response.write ("

" & item & ":")

Response.write (Request.ServerVariables (Item))

NEXT

%>

The specific system environment variable is as follows:

Auth_Type When the user accesses a protected script, it is used to determine if it is a valid user.

The length of the text submitted by the Content_length client

Text data type submitted by Content_Type

CGI revision used by the Gateway_Interface server

Login_User users log in with a Windows NT account

Path_info client path information

Query_String query information in an HTTP request

Remote_addr Sends the IP address of the requesting remote host, you can know the source of access to this

Remote_host sends a remote host name of the request. If the remote server does not include this information, return to the empty string

REQUEST_METHOD data request method

Basic part of the Script_Map URL

Script_name Executes the virtual path of the script

Server_name This server name DNS alias, IP address, and its developed URL path

Port number used by Server_Port data request

Software name and version number of Server_Software running

Server_Protocol requires protocol and revision of information

URL path of the URL system

HTTP_REFERER When passing by linking to a big current page

HTTP_REFERER HEADER Saves the source of this user

转载请注明原文地址:https://www.9cbs.com/read-69156.html

New Post(0)