Request.ServerVariables collection

xiaoxiao2021-04-05  240

All HTTP Title files sent by the all_http client. all_raw  Retrieves all the titles in the form in the form. APPL_MD_Path Retrieves the  (WAM) Application   (WAM) Application   (WAM). Appl_physical_path Retrieves the physical path corresponding to the metadata path. IIS converts the appl_md_path to the Physical (Directory) path to return values. auth_password  This value is input to the client's authentication dialog. This variable is only available when using basic identification. auth_type  This is the user's verification method when the user has access to protected scripts. auth_user  The username that is not identified. cert_cookie  The unique ID of the client verification is returned in a string. Can be used as a signature of the entire client verification. cert_flags If there is a client verification, bit0  is 1. If the verification person of the client authentication is invalid (not in the ca list of the server), Bit1 is set to 1. The enactor field in the user verification (O = MS, OU = IAS, CN) = USER NAME, C = USA). cert_keysize  The safety socket layer is connected to the number of bits of the 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 verification. cert_server_subject Server Verification The primary field. cert_subject  The primary field of the client verification. Content_lengthth  The length of the client issues a content. The data type of content_type . Use with additional information, such as: HTTP query GET, POST, and PUT. Gateway_Interface  The revision of the CGI specification used by the server. The format is CGI / Revision. logon_user  Users log in to the account of the Windowsnt®. The additional path information provided by the path_info  client. These virtual paths can be used to access scripts with the Path_Info server variable. If the information comes from the URL, it has decoded the server before reaching the CGI script. Path_translated path_info Convert version, the variable acquires the path and makes the necessary mapping by virtual to physical. Query_string  Query the information after Question mark (?) In the http request. Remote_addr  Send a request for the remote host's  IP address. Remote_host  Send a request for host name. If the server does not have this information, it will set an empty Mote_ADDR variable. Remote_USER  The unmapped username string sent by the user. This name is the name of the user's actual sector, which is relative to the server that verifies the filler modified. Request_method This method is used to make a request. Equivalent to GET / HEAD / POST, etc. for HTTP. Script_name  Perform the virtual path of the script. Used for url from the quotation. SERVER_NAME  The server host name, DNS graphic name or IP address in the quoted ual  appears. SERVER_PORT  Send the port number of the request. SERVER_PORT_SECURE  Contains a string of 0  or 1. If the security port processes the request, it is 1, otherwise it is 0. Server_Protocol  Request the name and revision of the information protocol. Format is protocol / revision. Server_software  Request and run the name and version of the server software for the gateway. The format is name / version.

It was found hidden from the Request.ServerVariables ( "NUMBER_OF_PROCESSORS") Request.ServerVariables ( "OS") Request.ServerVariables ( "WINDIR") Request.ServerVariables ( "TEMP") Request.ServerVariables ( "TMP") Request.ServerVariables ( " ComSpec ") Request.ServerVariables (" Os2LibPath ") Request.ServerVariables (" Path ") Request.ServerVariables (" PATHEXT ") Request.ServerVariables (" PROCESSOR_ARCHITECTURE ") Request.ServerVariables (" PROCESSOR_IDENTIFIER ") Request.ServerVariables (" PROCESSOR_LEVEL " Request.serverVariables ("processor_revision") Request.serverVariables ("http_x_forwarded_for") is a direct IP behind the agent (gateway), of course, this agent must be supported using Request.SerVariables ("remote_addr") in ASP to get customers. The end IP address, but if the client is accessible using the proxy server, the take-off is the IP address of the proxy server, not the real client IP address. To obtain a real IP address of the client through the proxy server, use the request.servervariables ("http_x_forwarded_for") to read. However, it is not paying attention to every proxy server to read the client's true IP with Request.ServerVariables ("http_x_forwarded_for"), and some use this method reads the IP of the proxy server. One thing to note is that if the client does not pass the proxy server to access, the value taken by Request.ServerVariables ("http_x_forwarded_for") will be empty. Therefore, if this method is to be used in the program, it can be processed: ... userip = request.serverVariables ("http_x_forwarded_for") if userip = "" "" Remote_Addr ") ... That is: If the client passes the proxy server, take the value of http_x_forwarded_for, if not through the proxy server, take the value of Remote_ADDR.

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

New Post(0)