<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Hopes

    Start Here..

     

    Request、Request.Form和Request.QueryString的區(qū)別

    Request、Request.Form和Request.QueryString的區(qū)別

    Request.Form:獲取以POST方式提交的數(shù)據(jù)(接收Form提交來的數(shù)據(jù));

    Request.QueryString:獲取地址欄參數(shù)(以GET方式提交的數(shù)據(jù))

    Request:包含以上兩種方式(優(yōu)先獲取GET方式提交的數(shù)據(jù)),它會在QueryString、Form、ServerVariable中都搜尋一遍。

           而且有時候也會得到不同的結果。如果你僅僅是需要Form中的一個數(shù)據(jù),但是你使用了Request而不是Request.Form,那么程序?qū)⒃赒ueryString、ServerVariable中也搜尋一遍。如果正好你的QueryString或者ServerVariable里面也有同名的項,你得到的就不是你原本想要的值了。

     

     Request.ServerVariables中的各種參數(shù)

     

    Request.ServerVariables("Url") 
    返回服務器地址

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

    Request.ServerVariables("Appl_Physical_Path") 
    與應用程序元數(shù)據(jù)庫路徑相應的物理路徑

    Request.ServerVariables("Path_Translated") 
    通過由虛擬至物理的映射后得到的路徑

    Request.ServerVariables("Script_Name") 
    執(zhí)行腳本的名稱

    Request.ServerVariables("Query_String") 
    查詢字符串內(nèi)容

    Request.ServerVariables("Http_Referer") 
    請求的字符串內(nèi)容

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

    Request.ServerVariables("Remote_Addr") 
    發(fā)出請求的遠程主機的IP地址

    Request.ServerVariables("Remote_Host") 
    發(fā)出請求的遠程主機名稱

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

    Request.ServerVariables("Http_Host") 
    返回服務器地址

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

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

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

    Request.ServerVariables("Server_Protocol")
    服務器使用的協(xié)議的名稱和版本

    Request.ServerVariables("Server_Software")
    應答請求并運行網(wǎng)關的服務器軟件的名稱和版本

    Request.ServerVariables("All_Http")
    客戶端發(fā)送的所有HTTP標頭,前綴HTTP_

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

    Request.ServerVariables("Appl_MD_Path")
    應用程序的元數(shù)據(jù)庫路徑

    Request.ServerVariables("Content_Length")
    客戶端發(fā)出內(nèi)容的長度

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

    Request.ServerVariables("Instance_ID")
    IIS實例的ID號

    Request.ServerVariables("Instance_Meta_Path")
    響應請求的IIS實例的元數(shù)據(jù)庫路徑

    Request.ServerVariables("Http_Accept_Encoding")
    返回內(nèi)容如:gzip,deflate

    Request.ServerVariables("Http_Accept_Language")
    返回內(nèi)容如:en-us

    Request.ServerVariables("Http_Connection")
    返回內(nèi)容:Keep-Alive

    Request.ServerVariables("Http_Cookie")
    返回內(nèi)容如:nVisiT%

    2DYum=125;ASPSESSIONIDCARTQTRA=FDOBFFABJGOECBBKHKGPFIJI;ASPSESSIONIDCAQQTSRB=LKJJPLABABILLPCOGJGAMKAM;ASPSESSIONIDACRRSSRA=DK

    HHHFBBJOJCCONPPHLKGHPB

    Request.ServerVariables("Http_User_Agent")
    返回內(nèi)容:Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.1;SV1)

    Request.ServerVariables("Https_Keysize")
    安全套接字層連接關鍵字的位數(shù),如128

    Request.ServerVariables("Https_Secretkeysize")
    服務器驗證私人關鍵字的位數(shù)如1024

    Request.ServerVariables("Https_Server_Issuer")
    服務器證書的發(fā)行者字段

    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")
    用戶證書中的發(fā)行者字段

    Request.ServerVariables("Cert_Keysize")
    安全套接字層連接關鍵字的位數(shù),如128

    Request.ServerVariables("Cert_Secretkeysize")
    服務器驗證私人關鍵字的位數(shù)如1024

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

    Request.ServerVariables("Cert_Server_Issuer")
    服務器證書的發(fā)行者字段

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

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

    Request.ServerVariables("Content_Type")
    客戶發(fā)送的form內(nèi)容或HTTPPUT的數(shù)據(jù)類型   

    posted on 2012-05-09 20:36 ** 閱讀(273) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導航:
     

    導航

    統(tǒng)計

    公告

    你好!

    常用鏈接

    留言簿(2)

    隨筆檔案

    文章分類

    文章檔案

    新聞檔案

    相冊

    收藏夾

    C#學習

    友情鏈接

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲av无码一区二区三区网站| 亚洲色一区二区三区四区| 亚洲精品在线免费看| 亚洲人成未满十八禁网站| 国产亚洲精品免费视频播放| 免费无码成人AV在线播放不卡| 亚洲乱码在线观看| 久久久久国产亚洲AV麻豆| 蜜臀AV免费一区二区三区| 色窝窝亚洲av网| 4444亚洲国产成人精品| 亚洲AV伊人久久青青草原| 91精品国产免费| 四虎国产精品永免费| 久久久久亚洲精品无码蜜桃 | 久久精品免费一区二区三区| 自拍日韩亚洲一区在线| 国产自偷亚洲精品页65页| 欧美三级在线电影免费| 中文字幕免费在线观看动作大片| 在线综合亚洲中文精品| 亚洲成A人片在线观看WWW| 好爽好紧好大的免费视频国产| 日韩电影免费在线观看| 水蜜桃视频在线观看免费| 亚洲另类精品xxxx人妖| 亚洲精品无码久久久久去q| 午夜一级免费视频| 精品国产污污免费网站aⅴ| 亚美影视免费在线观看| 日韩成人精品日本亚洲| 亚洲一级大黄大色毛片| 久久精品亚洲日本佐佐木明希| 亚洲A∨午夜成人片精品网站| 91免费资源网站入口| 久久国产乱子免费精品| 国产高清对白在线观看免费91| 亚洲av永久无码天堂网| 亚洲一区二区三区四区视频| 亚洲成AV人片天堂网无码| 亚洲综合区小说区激情区|