多多色-多人伦交性欧美在线观看-多人伦精品一区二区三区视频-多色视频-免费黄色视屏网站-免费黄色在线

中國最全IT社區(qū)平臺 聯(lián)系我們 | 收藏本站
阿里云優(yōu)惠2

ASP 教程

ASP ServerVariables 集合

閱讀 (1804)

ASP ServerVariables 集合


Request 對象參考手冊 完整的 Request 對象參考手冊

ServerVariables 集合用于取回服務器變量的值。

語法

Request.ServerVariables (server_variable)

參數(shù) 描述
server_variable 必需。要取回的 服務器變量 的名稱。

服務器變量

Variable 描述
ALL_HTTP Returns all HTTP headers sent by the client. Always prefixed with HTTP_ and capitalized
ALL_RAW Returns all headers in raw form
APPL_MD_PATH Returns the meta base path for the application for the ISAPI DLL
APPL_PHYSICAL_PATH Returns the physical path corresponding to the meta base path
AUTH_PASSWORD Returns the value entered in the client's authentication dialog
AUTH_TYPE The authentication method that the server uses to validate users
AUTH_USER Returns the raw authenticated user name
CERT_COOKIE Returns the unique ID for client certificate as a string
CERT_FLAGS bit0 is set to 1 if the client certificate is present and bit1 is set to 1 if the cCertification authority of the client certificate is not valid
CERT_ISSUER Returns the issuer field of the client certificate
CERT_KEYSIZE Returns the number of bits in Secure Sockets Layer connection key size
CERT_SECRETKEYSIZE Returns the number of bits in server certificate private key
CERT_SERIALNUMBER Returns the serial number field of the client certificate
CERT_SERVER_ISSUER Returns the issuer field of the server certificate
CERT_SERVER_SUBJECT Returns the subject field of the server certificate
CERT_SUBJECT Returns the subject field of the client certificate
CONTENT_LENGTH Returns the length of the content as sent by the client
CONTENT_TYPE Returns the data type of the content
GATEWAY_INTERFACE Returns the revision of the CGI specification used by the server
HTTP_<HeaderName> Returns the value stored in the header HeaderName
HTTP_ACCEPT Returns the value of the Accept header
HTTP_ACCEPT_LANGUAGE Returns a string describing the language to use for displaying content
HTTP_COOKIE Returns the cookie string included with the request
HTTP_REFERER Returns a string containing the URL of the page that referred the request to the current page using an <a> tag. If the page is redirected, HTTP_REFERER is empty
HTTP_USER_AGENT Returns a string describing the browser that sent the request
HTTPS Returns ON if the request came in through secure channel or OFF if the request came in through a non-secure channel
HTTPS_KEYSIZE Returns the number of bits in Secure Sockets Layer connection key size
HTTPS_SECRETKEYSIZE Returns the number of bits in server certificate private key
HTTPS_SERVER_ISSUER Returns the issuer field of the server certificate
HTTPS_SERVER_SUBJECT Returns the subject field of the server certificate
INSTANCE_ID The ID for the IIS instance in text format
INSTANCE_META_PATH The meta base path for the instance of IIS that responds to the request
LOCAL_ADDR Returns the server address on which the request came in
LOGON_USER Returns the Windows account that the user is logged into
PATH_INFO Returns extra path information as given by the client
PATH_TRANSLATED A translated version of PATH_INFO that takes the path and performs any necessary virtual-to-physical mapping
QUERY_STRING Returns the query information stored in the string following the question mark (?) in the HTTP request
REMOTE_ADDR Returns the IP address of the remote host making the request
REMOTE_HOST Returns the name of the host making the request
REMOTE_USER Returns an unmapped user-name string sent in by the user
REQUEST_METHOD Returns the method used to make the request
SCRIPT_NAME Returns a virtual path to the script being executed
SERVER_NAME Returns the server's host name, DNS alias, or IP address as it would appear in self-referencing URLs
SERVER_PORT Returns the port number to which the request was sent
SERVER_PORT_SECURE Returns a string that contains 0 or 1. If the request is being handled on the secure port, it will be 1. Otherwise, it will be 0
SERVER_PROTOCOL Returns the name and revision of the request information protocol
SERVER_SOFTWARE Returns the name and version of the server software that answers the request and runs the gateway
URL Returns the base portion of the URL


實例

您可以像這樣來循環(huán)遍歷所有的服務器變量:

<%
for each x in Request.ServerVariables
??response.write(x & "<br>")
next
%>

下面的實例演示了如何查明訪問者瀏覽器的類型、IP 地址等等:

<html>
<body>
<p>
<b>You are browsing this site with:</b>
<%Response.Write(Request.ServerVariables("http_user_agent"))%>
</p>
<p>
<b>Your IP address is:</b>
<%Response.Write(Request.ServerVariables("remote_addr"))%>
</p>
<p>
<b>The DNS lookup of the IP address is:</b>
<%Response.Write(Request.ServerVariables("remote_host"))%>
</p>
<p>
<b>The method used to call the page:</b>
<%Response.Write(Request.ServerVariables("request_method"))%>
</p>
<p>
<b>The server's domain name:</b>
<%Response.Write(Request.ServerVariables("server_name"))%>
</p>
<p>
<b>The server's port:</b>
<%Response.Write(Request.ServerVariables("server_port"))%>
</p>
<p>
<b>The server's software:</b>
<%Response.Write(Request.ServerVariables("server_software"))%>
</p>
</body>
</html>


Request 對象參考手冊 完整的 Request 對象參考手冊
關閉
程序員人生
主站蜘蛛池模板: 亚洲视频免费在线观看 | 欧美18videosex性欧美群 | 亚洲欧美日韩高清 | 亚洲视频中文 | 中文乱码精品一区二区三区 | 被公侵犯肉体中文字幕一区二区 | 手机看片国产欧美日韩高清 | 久久www免费人成看片入口 | 在线国产高清 | 国产精品中文字幕在线 | 韩国午夜理伦三级2020宅男 | 国产精品视频永久免费播放 | 国产精品视频第一区二区 | 亚洲免费一区 | 福利国产在线 | 亚洲最大成人在线 | 女人大毛片一级毛片一 | 国产v日韩v欧美v精品专区 | 成人精品久久 | 中文国产成人精品少久久 | 最新日本免费一区二区三区中文 | 激情综合色综合久久综合 | 亚洲成人免费在线视频 | 欧美色欧美亚洲另类二区精品 | 国产精品久久久久久免费播放 | 校园春色 激情 | freesex呦交6一12东 | 爱爱小视频在线观看网站 | 欧美性大战久久久久久久蜜桃 | 毛片免费观看视频 | 色久综合大榴莲 | 99久久精品国产国产毛片 | 97精品一区二区三区在线不卡 | 日韩欧美亚洲国产一区二区三区 | 国产精品久久久久乳精品爆 | 国产精品欧美日韩 | 国产午夜永久福利视频在线观看 | 亚洲欧美日韩国产综合高清 | 国产真实乱小说 | 国产亚洲一区二区三区在线 | 亚洲精品456 |