Request. ServerVariables ("Url ")Back to server address
Request. ServerVariables ("Path_Info ")Path information provided by the client
Request. ServerVariables ("Appl_Physical_Path ")Physical path corresponding to the application metadatabase
Request. servervariables ("url ")Back to server address
Request. servervariables ("path_info ")Path information provided by the client
Request. servervariables ("appl_physical_path ")And ApplicationsProgramPhysical path of the metabase path
Request. servervariables parameter set request. servervariables parameter set
Necessary for Asp.net probe.
Request. servervariables ('url ')Back to server address
Request. servervariables ('path _ info ')Path information provided by the client
Request. servervariables ("http_referer ")Returns the source URL.
Request. servervariables ("url ")Back to server address
Request. servervariables ("path_info ")Path information provided by the client
Request. servervariables ("appl_physical_path
C # request. servervariables parameter set. The parameters are as follows:
Request. servervariables ["url"] returns the server address
Request. servervariables ["path_info"] path information provided by the client
Request. servervariables
Request. ServerVariables ("Url ")Back to server addressValue 0:/WebSite1/Default. aspx
Request. ServerVariables ("Path_Info ")Path information provided by the clientValue 0:/WebSite1/Default. aspx
Request. ServerVariables ("Appl_Physical_Path
Request. ServerVariables ("Url ")
Back to server address
Request. ServerVariables ("Path_Info ")Path information provided by the client
Request. ServerVariables ("Appl_Physical_Path ")Physical path corresponding to the application metadatabase path
Httpcontext. Current. Request. servervariables
Request. servervariables ["url"]Back to server addressValue 0:/website1/default. aspx
Request. servervariables ["path_info"]Path information provided by the clientValue 0:/website1/default. aspx
HttpContext. Current. Request. ServerVariables, httpcontext. current
Request. ServerVariables ("Url ")Back to server addressValue 0:/WebSite1/Default. aspx
Request. ServerVariables ("Path_Info ")Path information provided by the clientValue
Request. servervariables parameter set
Necessary for Asp.net probe. Request. servervariables ("url ")Back to server address Request. servervariables ("path_info ")Path information provided by the client Request. servervariables
Request. servervariables ("url ")
Back to server address
Request. servervariables ("path_info ")Path information provided by the client
Request. servervariables ("appl_physical_path ")And ApplicationsProgramPhysical path of the metabase path
Request. servervariables ("path_translated ")
Path obtained after ing from virtual to physical
Request. servervariables ("script_name ")Script Execution name
Request. servervariables ("QUERY_STRING ")Query string content
Request.
Obtain the IP address of the client. The Code is as follows:
Copy codeThe Code is as follows: //
/// Obtain the Client IP Address
///
///
Public string GetClientIP ()
{
String userIP = Request. ServerVariables ["HTTP_X_FORWARDED_FOR"];
If
Obtain the IP address of the client. The Code is as follows:Copy codeThe Code is as follows:/// /// Obtain the Client IP Address/// /// Public string GetClientIP (){String userIP = Request. ServerVariables ["HTTP_X_FORWARDED_FOR"];If (userIP = null)
As we all know, using Request in ASP. serverVariables ("REMOTE_ADDR") can obtain the client's IP address. However, if the client uses a proxy server for access, the obtained IP address is the proxy server's IP address rather than the real client IP
How request. servervariables ("http_referer") Works
In the following cases, the request. servervariables ("http_referer") is obtained from the address bar of the browser:1. directly use 2. Form submitted with submit or (post or get)3. Form
Request. servervariables ["url"]Back to server addressRequest. servervariables ["path_info"]Path information provided by the clientRequest. servervariables ["appl_physical_path"]Physical path corresponding to the application metadatabase pathRequest.
Common Request. ServerVariables
Ip address path of this file:
Local ip Address:
Server Name:
Server IP Address:
Server Port:
Server time:
IIS version:
Script Timeout:
Path of this file:
Server CPU count:
Server interpretation
Write ASP
Program All of you know,
Request. servervariables ("script_name ") Returns the relative path of the current page, for example,"
Http: // localhost/BBS/post. asp ", The returned result is"
BBS/post. asp ". However, I occasionally find
// Local IP address:
// Server name:
// Server IP:
// Server port:
// Server time:
// IIS Version:
// Script Timeout:
// Path of this file:
// Number of server CPUs:
// Server interpretation engine:
// Server OS:
// Supported file types:
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.