Request. servervariables, C # Get server information, C # Get access information

Source: Internet
Author: User
Tags servervariables

Httpcontext. Current. Request. servervariables

 

Request. servervariables ["url"]
Back to server address
Value 0:/website1/default. aspx

Request. servervariables ["path_info"]
Path information provided by the client
Value 0:/website1/default. aspx

Request. servervariables ["appl_physical_path"]
And ApplicationsProgramPhysical path corresponding to the metadata path
Value 0: C: \ Documents ents and Settings \ Yukun \ My Documents ents \ Visual Studio 2005 \ websites \ website1 \

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. servervariables ["http_referer"]
Request string content

Request. servervariables ["server_port"]
Server port number that receives the request

Request. servervariables ["remote_addr"]
IP address of the remote host that sends the request

Request. servervariables ["remote_host"]
Name of the remote host that sends the request

Request. servervariables ["local_addr"]
Returns the server address that receives the request.

Request. servervariables ["http_host"]
Back to server address

Request. servervariables ["SERVER_NAME"]

Httpcontext. Current. Request. servervariables ["SERVER_NAME"]. tolower (); //. tolower ();

Domain Name: for example: www.baidu.com // can be used for multiple domain names for subwebsites
Host Name, DNS address, or IP address of the server

Request. servervariables ["request_method"]
Request methods such as get, Head, and post

Request. servervariables ["server_port_secure"]
If the server port receiving the request is a security port, the value is 1. Otherwise, the value is 0.

Request. servervariables ["server_protocol"]
Name and version of the protocol used by the server

Request. servervariables ["server_software"]
Name and version of the server software that responds to the request and runs the Gateway

Request. servervariables ["all_http"]
All HTTP headers sent by the client, prefixed with HTTP _

Request. servervariables ["all_raw"]
All HTTP headers sent by the client have the same results as those sent by the client without the prefix HTTP _

Request. servervariables ["appl_md_path"]
Metadatabase path of the application

Request. servervariables ["content_length"]
Length of the content sent by the client

Request. servervariables ["HTTPS"]
If the request passes through the Secure Channel (SSL), on is returned. If the request comes from an insecure channel, off is returned.

Request. servervariables ["instance_id"]
ID of the IIS instance

Request. servervariables ["instance_meta_path"]
Metadatabase path of the IIS instance that responds to the request

Request. servervariables ["http_accept_encoding"]
Returned content, such as gzip and deflate

Request. servervariables ["http_accept_language"]
Returned content, for example, en-US

Request. servervariables ["http_connection"]
Returned content: keep-alive

Request. servervariables ["http_cookie"]
Returned content, for example, nvisit % 2 dyum = 125; aspsessionidcartqtra = bytes; aspsessionidcaqqtsulfate = lkjjplababillpcogjgamkam; aspsessionidacrrssra = bytes

Request. servervariables ["http_user_agent"]
Returned content: Mozilla/4.0 [compatible; msie6.0; windowsnt5.1; sv1]

Request. servervariables ["https_keysize"]
Number of connections in the Secure Socket Layer, such as 128

Request. servervariables ["https_secretkeysize"]
The number of bits for Server Authentication for private keywords, for example, 1024

Request. servervariables ["https_server_issuer"]
Issuer field of the server certificate

Request. servervariables ["https_server_subject"]
Topic field of the server certificate

Request. servervariables ["auth_password"]
The password entered in the Password dialog box when the Basic Authentication mode is used

Request. servervariables ["auth_type"]
When a user accesses a protected script, the server is used to verify the user's authentication method.

Request. servervariables ["auth_user"]
User Name of the Credential

Request. servervariables ["cert_cookie"]
Unique customer certificate ID

Request. servervariables ["cert_flag"]
The customer certificate is marked as a token. If a client certificate exists, bit0 is 0. If the client certificate verification is invalid, bit1 is set to 1.

Request. servervariables ["cert_issuer"]
Issuer field in the user certificate

Request. servervariables ["cert_keysize"]
Number of connections in the Secure Socket Layer, such as 128

Request. servervariables ["cert_secretkeysize"]
The number of bits for Server Authentication for private keywords, for example, 1024

Request. servervariables ["cert_serialnumber"]
Serial number field of the customer Certificate

Request. servervariables ["cert_server_issuer"]
Issuer field of the server certificate

Request. servervariables ["cert_server_subject"]
Topic field of the server certificate

Request. servervariables ["cert_subject"]
Subject field of the client certificate

Request. servervariables ["content_type"]
Form Content or httpput data type sent by the customer

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.