在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
客户端ip: Request.ServerVariables.Get("Remote_Addr").ToString();
客户端主机名: Request.ServerVariables.Get("Remote_Host").ToString();
客户端浏览器IE: Request.Browser.Browser;
客户端浏览器 版本号: Request.Browser.MajorVersion;//
客户端操作系统: Request.Browser.Platform;
服务器ip: Request.ServerVariables.Get("Local_Addr").ToString();
服务器名: Request.ServerVariables.Get("Server_Name").ToString();
如果你想进一步了解ServerVariables,可以用 foreach(String o in Request.ServerVariables)}
获取客户端IP方法 public string GetIP()
} return uip; } C# ServerVariables参数说明
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"] Request.ServerVariables["Remote_Addr"] Request.ServerVariables["Remote_Host"] Request.ServerVariables["Local_Addr"] Request.ServerVariables["Http_Host"] Request.ServerVariables["Server_Name"] Request.ServerVariables["Request_Method"] Request.ServerVariables["Server_Port_Secure"] Request.ServerVariables["Server_Protocol"] Request.ServerVariables["Server_Software"] Request.ServerVariables["All_Http"] Request.ServerVariables["All_Raw"] Request.ServerVariables["Appl_MD_Path"] Request.ServerVariables["Content_Length"] Request.ServerVariables["Https"] Request.ServerVariables["Instance_ID"] Request.ServerVariables["Instance_Meta_Path"] Request.ServerVariables["Http_Accept_Encoding"] Request.ServerVariables["Http_Accept_Language"] Request.ServerVariables["Http_Connection"] Request.ServerVariables["Http_Cookie"] 2DYum=125;ASPSESSIONIDCARTQTRA=FDOBFFABJGOECBBKHKGPFIJI;ASPSESSIONIDCAQQTSRB=LKJJPLABABILLPCOGJGAMKAM;ASPSESSIONIDACRRs-s-rA=DK HHHFBBJOJCCONPPHLKGHPB Request.ServerVariables["Http_User_Agent"] Request.ServerVariables["Https_Keysize"] 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"] Request.ServerVariables["Cert_Cookie"] Request.ServerVariables["Cert_Flag"] Request.ServerVariables["Cert_Issuer"] Request.ServerVariables["Cert_Keysize"] Request.ServerVariables["Cert_Secretkeysize"] Request.ServerVariables["Cert_Serialnumber"] Request.ServerVariables["Cert_Server_Issuer"] Request.ServerVariables["Cert_Server_Subject"] Request.ServerVariables["Cert_Subject"] Request.ServerVariables["Content_Type"] Request.ServerVariables["HTTP_X_FORWARDED_FOR"]
Request.ServerVariables变量意义. http代理相关知识 http代理相关知识 一、没有使用代理服务器的情况: 二、使用透明代理服务器的情况:Transparent Proxies 三、使用普通匿名代理服务器的情况:Anonymous Proxies |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论