ServerVariable (environment variable)

zhaozj2021-02-16  52

Request.ServerVariables ["Varible] browser version number Request.ServerVariables [" http_user_agent "]

Get the user's IP address Request.ServerVariables ["remote_addr"]

Get request method request.servervariables ["request_method"]

Get the server's IP address request.servervariables ["local_addr"]

Through environment variables, it can not only know the IP of the server host, and it is also possible to know its hostname Request.ServerVariables ["Server_name"]

Use the path_info environment variable Request.ServerVariables ["Path_info"]

Get the total number of characters sent by the request program Request.servervariables ["Content_length"]

Get the information type of request request.servervariables ["content_type"]

Get a gateway interface request.servervariables ["Gateway_Interface"]

Get the additional information of the URL Request.ServerVariables ["Query_String"]

Get the file name of the current program (including virtual path) Request.ServerVariables ["script_name"]

Get the server accepts the port request.servervariables ["server_port"]

Get server compliance agreement and version number Request.ServerVariables ["server_protocol"]

Get the language used by the user ...ServerVariables [http_accept_language "]

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

New Post(0)