1. 程式人生 > >ASP腳本獲取服務器全部參數列表說明

ASP腳本獲取服務器全部參數列表說明

window 遠程主機 數列 pass issue 安全套 參數 ftw 網關

以下是ASP獲取服務器全部參數的列表說明,在做ASP網頁時經常需要用到,特整理以供參考。

返回服務器地址<%=Request.ServerVariables("Url")%>

客戶端提供的路徑信息<%=Request.ServerVariables("Path_Info")%>

與應用程序元數據庫路徑相應的物理路徑<%=Request.ServerVariables("Appl_Physical_Path")%>

通過由虛擬至物理的映射後得到的路徑 <%=Request.ServerVariables("Path_Translated")%>

執行腳本的名稱 <%=Request.ServerVariables("Script_Name")%>

查詢字符串內容<%=Request.ServerVariables("Query_String")%>

請求的字符串內容 <%=Request.ServerVariables("Http_Referer")%>

接受請求的服務器端口號 <%=Request.ServerVariables("Server_Port")%>

發出請求的遠程主機的IP地址 <%=Request.ServerVariables("Remote_Addr")%>

發出請求的遠程主機名稱 <%=Request.ServerVariables("Remote_Host")%>

返回接受請求的服務器地址<%=Request.ServerVariables("Local_Addr")%>

返回服務器地址 <%=Request.ServerVariables("Http_Host")%>

服務器的主機名、DNS地址或IP地址<%=Request.ServerVariables("Server_Name")%>

提出請求的方法比如GET、HEAD、POST等等<%=Request.ServerVariables("<%=Request_Method")%>

如果接受請求的服務器端口為安全端口時,則為1,否則為0.<%=Request.ServerVariables("Server_Port_Secure")%>

服務器使用的協議的名稱和版本<%=Request.ServerVariables("Server_Protocol")%>

應答請求並運行網關的服務器軟件的名稱和版本 <%=Request.ServerVariables("Server_Software")%>

客戶端發送的所有HTTP標頭,前綴HTTP_ .<%=Request.ServerVariables("All_Http")%>

客戶端發送的所有HTTP標頭,其結果和客戶端發送時一樣,沒有前綴HTTP_ <%=Request.ServerVariables("All_Raw")%>

應用程序的元數據庫路徑<%=Request.ServerVariables("Appl_MD_Path")%>

客戶端發出內容的長度 <%=Request.ServerVariables("Content_Length")%>

如果請求穿過安全通道(SSL),則返回ON如果請求來自非安全通道,則返回OFF<%=Request.ServerVariables("Https")%>

IIS實例的ID號 <%=Request.ServerVariables("Instance_ID")%>

響應請求的IIS實例的元數據庫路徑 <%=Request.ServerVariables("Instance_Meta_Path")%>

返回內容如:gzip,deflate <%=Request.ServerVariables("Http_Accept_Encoding")%>

返回內容如:en-us <%=Request.ServerVariables("Http_Accept_Language")%>

返回內容:Keep-Alive <%=Request.ServerVariables("Http_Connection")%>

返回內容:Cookie的值 <%=Request.ServerVariables("Http_Cookie")%>

返回內容:Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.1;SV1) <%=Request.ServerVariables("Http_User_Agent")%>

安全套接字層連接關鍵字的位數,如128 <%=Request.ServerVariables("Https_Keysize")%>

服務器驗證私人關鍵字的位數如1024 <%=Request.ServerVariables("Https_Secretkeysize")%>

服務器證書的發行者字段 <%=Request.ServerVariables("Https_Server_Issuer")%>

服務器證書的主題字段 <%=Request.ServerVariables("Https_Server_Subject")%>

當使用基本驗證模式時,客戶在密碼對話框中輸入的密碼 <%=Request.ServerVariables("Auth_Password")%>

是用戶訪問受保護的腳本時,服務器用於檢驗用戶的驗證方法 <%=Request.ServerVariables("Auth_Type")%>

代證的用戶名 <%=Request.ServerVariables("Auth_User")%>

唯一的客戶證書ID號 <%=Request.ServerVariables("Cert_Cookie")%>

客戶證書標誌,如有客戶端證書,則bit0為0如果客戶端證書驗證無效,bit1被設置為1 <%=Request.ServerVariables("Cert_Flag")%>

用戶證書中的發行者字段 <%=Request.ServerVariables("Cert_Issuer")%>

安全套接字層連接關鍵字的位數,如128 <%=Request.ServerVariables("Cert_Keysize")%>

服務器驗證私人關鍵字的位數如1024 <%=Request.ServerVariables("Cert_Secretkeysize")%>

客戶證書的序列號字段 <%=Request.ServerVariables("Cert_Serialnumber")%>

服務器證書的發行者字段 <%=Request.ServerVariables("Cert_Server_Issuer")%>

服務器證書的主題字段 <%=Request.ServerVariables("Cert_Server_Subject")%>

客戶端證書的主題字段 <%=Request.ServerVariables("Cert_Subject")%>

客戶發送的form內容或HTTPPUT的數據類型 <%=Request.ServerVariables("Content_Type")%>

ASP腳本獲取服務器全部參數列表說明