欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

.NET常用Request獲取信息總結(jié)

 更新時(shí)間:2013年03月04日 11:32:09   作者:  
.NET常用Request獲取信息總結(jié),需要的朋友可以參考一下

Request.ServerVariables("REMOTE_ADDR")          '獲取訪問IP
Request.ServerVariables("LOCAL_ADDR")              '同上
Request.ServerVariables("SERVER_NAME") '獲取服務(wù)器IP
Request.ServerVariables("HTTP_REFERER")        '獲取訪問來源頁面
Request.ServerVariables("OS")                                '獲取操作系統(tǒng)
request.ServerVariables("APPL_PHYSICAL_PATH")        '獲取IIS物理路徑
Request.ServerVariables("SCRIPT_NAME")                    '獲取虛擬路徑
Request.ServerVariables("NUMBER_OF_PROCESSORS")      '獲取服務(wù)器CPU個(gè)數(shù)
Request.ServerVariables("SERVER_PORT")                  '服務(wù)器處理請(qǐng)求的端口
Request.ServerVariables["Url"] 返回服務(wù)器地址
Request.ServerVariables["Path_Info"]                    客戶端提供的路徑信息
Request.ServerVariables["Appl_Physical_Path"]     與應(yīng)用程序元數(shù)據(jù)庫路徑相應(yīng)的物理路徑
Request.ServerVariables["Path_Translated"]        通過由虛擬至物理的映射后得到的路徑
Request.ServerVariables["Script_Name"]              執(zhí)行腳本的名稱
Request.ServerVariables["Query_String"]            查詢字符串內(nèi)容
Request.ServerVariables["Http_Referer"]            請(qǐng)求的字符串內(nèi)容
Request.ServerVariables["Server_Port"]              接受請(qǐng)求的服務(wù)器端口號(hào)
Request.ServerVariables["Remote_Addr"]          發(fā)出請(qǐng)求的遠(yuǎn)程主機(jī)的IP地址
Request.ServerVariables["Remote_Host"]          發(fā)出請(qǐng)求的遠(yuǎn)程主機(jī)名稱
Request.ServerVariables["Local_Addr"]              返回接受請(qǐng)求的服務(wù)器地址
Request.ServerVariables["Http_Host"]                返回服務(wù)器地址
Request.ServerVariables["Server_Name"]          服務(wù)器的主機(jī)名、DNS地址或IP地址
Request.ServerVariables["Request_Method"] 提出請(qǐng)求的方法比如GET、HEAD、POST等等
Request.ServerVariables["Server_Port_Secure"]      如果接受請(qǐng)求的服務(wù)器端口為安全端口時(shí),則為1,否則為0
Request.ServerVariables["Server_Protocol"]        服務(wù)器使用的協(xié)議的名稱和版本
Request.ServerVariables["Server_Software"]      應(yīng)答請(qǐng)求并運(yùn)行網(wǎng)關(guān)的服務(wù)器軟件的名稱和版本
Request.ServerVariables["All_Http"]      客戶端發(fā)送的所有HTTP標(biāo)頭,前綴HTTP_
Request.ServerVariables["All_Raw"]      客戶端發(fā)送的所有HTTP標(biāo)頭,其結(jié)果和客戶端發(fā)送時(shí)一樣,沒有前綴HTTP_
Request.ServerVariables["Appl_MD_Path"]      應(yīng)用程序的元數(shù)據(jù)庫路徑
Request.ServerVariables["Content_Length"]      客戶端發(fā)出內(nèi)容的長(zhǎng)度
Request.ServerVariables["Https"]            如果請(qǐng)求穿過安全通道(SSL),則返回ON如果請(qǐng)求來自非安全通道,則返回OFF
Request.ServerVariables["Instance_ID"]        IIS實(shí)例的ID號(hào)
Request.ServerVariables["Instance_Meta_Path"]        響應(yīng)請(qǐng)求的IIS實(shí)例的元數(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)容:Cookie的值
Request.ServerVariables["Http_User_Agent"]      返回內(nèi)容:Mozilla/4.0[compatible;MSIE6.0;WindowsNT5.1;SV1]
Request.ServerVariables["Https_Keysize"]                  安全套接字層連接關(guān)鍵字的位數(shù),如128
Request.ServerVariables["Https_Secretkeysize"]        服務(wù)器驗(yàn)證私人關(guān)鍵字的位數(shù)如1024
Request.ServerVariables["Https_Server_Issuer"]        服務(wù)器證書的發(fā)行者字段
Request.ServerVariables["Https_Server_Subject"]      服務(wù)器證書的主題字段
Request.ServerVariables["Auth_Password"]                當(dāng)使用基本驗(yàn)證模式時(shí),客戶在密碼對(duì)話框中輸入的密碼
Request.ServerVariables["Auth_Type"]                      是用戶訪問受保護(hù)的腳本時(shí),服務(wù)器用於檢驗(yàn)用戶的驗(yàn)證方法
Request.ServerVariables["Auth_User"]                  代證的用戶名
Request.ServerVariables["Cert_Cookie"]                唯一的客戶證書ID號(hào)
Request.ServerVariables["Cert_Flag"]
客戶證書標(biāo)志,如有客戶端證書,則bit0為0如果客戶端證書驗(yàn)證無效,bit1被設(shè)置為1
Request.ServerVariables["Cert_Issuer"]                    用戶證書中的發(fā)行者字段
Request.ServerVariables["Cert_Keysize"]                  安全套接字層連接關(guān)鍵字的位數(shù),如128
Request.ServerVariables["Cert_Secretkeysize"]        服務(wù)器驗(yàn)證私人關(guān)鍵字的位數(shù)如1024
Request.ServerVariables["Cert_Serialnumber"]        客戶證書的序列號(hào)字段
Request.ServerVariables["Cert_Server_Issuer"]        服務(wù)器證書的發(fā)行者字段
Request.ServerVariables["Cert_Server_Subject"]      服務(wù)器證書的主題字段
Request.ServerVariables["Cert_Subject"]                  客戶端證書的主題字段
Request.ServerVariables["Content_Type"]                客戶發(fā)送的form內(nèi)容或HTTPPUT的數(shù)據(jù)類型

相關(guān)文章

  • Ubuntu16.04系統(tǒng)配置.net core環(huán)境

    Ubuntu16.04系統(tǒng)配置.net core環(huán)境

    本文給大家介紹的是在Ubuntu16.04系統(tǒng)配置.net core環(huán)境的方法,由于作者本身用的是WIN系統(tǒng),所以這次教程是在VMware中進(jìn)行的,希望大家能夠喜歡。
    2016-07-07
  • .NET使用Collections.Pooled提升性能優(yōu)化的方法

    .NET使用Collections.Pooled提升性能優(yōu)化的方法

    這篇文章主要介紹了.NET使用Collections.Pooled性能優(yōu)化的方法,今天要給大家分享類庫Collections.Pooled,它是通過池化內(nèi)存來達(dá)到降低內(nèi)存占用和GC的目的,另外也會(huì)帶大家看看源碼,為什么它會(huì)帶來這些性能提升,一起通過本文學(xué)習(xí)下吧
    2022-05-05
  • asp.net下獲取瀏覽器類型的實(shí)現(xiàn)代碼

    asp.net下獲取瀏覽器類型的實(shí)現(xiàn)代碼

    上次我需要判斷瀏覽器是IE還是FF,如果是FF那么頁面停止輸出。但方法寫得不是很好,現(xiàn)在在書中看到了Page.Request.Browser屬性,這個(gè)屬性主要用來檢查當(dāng)前瀏覽器性能,看下我下面代碼的不同執(zhí)行結(jié)果。
    2009-09-09
  • asp.net讀取磁盤文件、刪除實(shí)例代碼

    asp.net讀取磁盤文件、刪除實(shí)例代碼

    這篇文章介紹了asp.net讀取磁盤文件、刪除實(shí)例代碼,有需要的朋友可以參考一下
    2013-10-10
  • asp.net web.config加密解密方法

    asp.net web.config加密解密方法

    你還能夠使用aspnet_regiis.exe命令行工具來加密和解密Web.config文件配置部分,你可以在"%WINDOWSDIR%\Microsoft.Net\Framework\version"目錄下找到這個(gè)工具。
    2009-11-11
  • 干貨來襲! C# 7.0 新特性(VS2017可用)

    干貨來襲! C# 7.0 新特性(VS2017可用)

    干貨來襲! 為大家分享了C# 7.0 新特性,VS2017可用,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2017-03-03
  • ASP.NET中Cookie狀態(tài)的說明與用法

    ASP.NET中Cookie狀態(tài)的說明與用法

    這篇文章主要介紹了ASP.NET中Cookie狀態(tài)的說明與用法,需要的朋友可以參考下
    2015-10-10
  • 在程序中使用Cookie集合(定義/新建/刪除)及案例講解

    在程序中使用Cookie集合(定義/新建/刪除)及案例講解

    在Cookie應(yīng)用中習(xí)慣寫成Cookie集合,什么叫做Cookie集合,即是說一個(gè)Cookie,它擁有多個(gè)值,接下來將介紹怎樣創(chuàng)建Cookie集合與使用,感興趣的朋友可以了解下,希望本文對(duì)你的cookie的深度了解有所幫助
    2013-01-01
  • JWT + ASP.NET MVC時(shí)間戳防止重放攻擊詳解

    JWT + ASP.NET MVC時(shí)間戳防止重放攻擊詳解

    這篇文章主要給大家介紹了關(guān)于JWT + ASP.NET MVC時(shí)間戳防止重放攻擊發(fā)的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2018-07-07
  • CreateOutputCachedItemKey 緩存key的創(chuàng)建

    CreateOutputCachedItemKey 緩存key的創(chuàng)建

    有關(guān)OutputCache的相關(guān)資料大家可以查看 OutputCacheProvider OutputCache的一點(diǎn)點(diǎn)認(rèn)識(shí) ,我們還是復(fù)習(xí)一下OutputCache內(nèi)容
    2012-11-11

最新評(píng)論