Request.Form:獲取以POST方式提交的數據。
Request.QueryString:獲取地址欄參數(以GET方式提交的數據)。
Request:包含以上兩種方式(優先獲取GET方式提交的數據),它會在QueryString、Form、ServerVariable中都搜尋一遍。
有時候會得到不同的結果。如果僅僅需要Form中的數據,但是使用了Request而不是Request.Form,那么程序將在QueryString、ServerVariable中也搜尋一遍。如果其中有同名的項,就得到不一樣的結果。
Request.ServerVariables中的各種參數
Request.ServerVariables("Url")返回服務器地址
Request.ServerVariables("Path_Info")客戶端提供的路徑信息
Request.ServerVariables("Appl_Physical_Path")與應用程序元數據庫路徑相應的物理路徑
Request.ServerVariables("Path_Translated")通過由虛擬至物理的映射后得到的路徑
Request.ServerVariables("Scr 2DYum=125;ASPsessionIDCARTQTRA=FDOBFFABJGOECBBKHKGPFIJI;ASPSESSIONIDCAQQTSRB=LKJJPLABABILLPCOGJGAMKAM;ASPSESSIONIDACRrssRA=DK HHHFBBJOJCCONPPHLKGHPB Request.ServerVariables("Http_User_Agent")返回內容:Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.1;SV1) Request.ServerVariables("Https_Keysize")安全套接字層連接關鍵字的位數,如128 Request.ServerVariables("Https_Secretkeysize")服務器驗證私人關鍵字的位數如1024 Request.ServerVariables("Https_Server_Issuer")服務器證書的發行者字段 Request.ServerVariables("Https_Server_Subject")服務器證書的主題字段 Request.ServerVariables("Auth_PassWord")當使用基本驗證模式時,客戶在密碼對話框中輸入的密碼 Request.ServerVariables("Auth_Type")是用戶訪問受保護的腳本時,服務器用於檢驗用戶的驗證方法 Request.ServerVariables("Auth_User")代證的用戶名 Request.ServerVariables("Cert_Cookie")唯一的客戶證書ID號 Request.ServerVariables("Cert_Flag")客戶證書標誌,如有客戶端證書,則bit0為0如果客戶端證書驗證無效,bit1被設置為1 Request.ServerVariables("Cert_Issuer")用戶證書中的發行者字段 Request.ServerVariables("Cert_Keysize")安全套接字層連接關鍵字的位數,如128 Request.ServerVariables("Cert_Secretkeysize")服務器驗證私人關鍵字的位數如1024 Request.ServerVariables("Cert_Serialnumber")客戶證書的序列號字段 Request.ServerVariables("Cert_Server_Issuer")服務器證書的發行者字段 Request.ServerVariables("Cert_Server_Subject")服務器證書的主題字段 Request.ServerVariables("Cert_Subject")客戶端證書的主題字段
原文地址:http://www.49028c.com/zzandlx/archive/2011/04/01/2001760.html
新聞熱點
疑難解答