zoukankan      html  css  js  c++  java
  • 获取请求浏览器信息

                System.Text.StringBuilder strLabel = new System.Text.StringBuilder();
                HttpBrowserCapabilities bc = Request.Browser;
                strLabel.Append("您的浏览器的分辨率为:");
                strLabel.Append(Request.Form["WidthPixel"]);
                strLabel.Append("×");
                strLabel.Append(Request.Form["HeightPixel"]);
                strLabel.Append("");
                strLabel.Append("浏览器基本信息:");
                strLabel.Append("Type = " + bc.Type + "");
                strLabel.Append("Name = " + bc.Browser + "");
                strLabel.Append("Version = " + bc.Version + "");
                strLabel.Append("Major Version = " + bc.MajorVersion + "");
                strLabel.Append("Minor Version = " + bc.MinorVersion + "");
                strLabel.Append("Platform = " + bc.Platform + "");
                strLabel.Append("Is Beta = " + bc.Beta + "");
                strLabel.Append("Is Crawler = " + bc.Crawler + "");
                strLabel.Append("Is AOL = " + bc.AOL + "");
                strLabel.Append("Is Win16 = " + bc.Win16 + "");
                strLabel.Append("Is Win32 = " + bc.Win32 + "");
                strLabel.Append("支持 Frames = " + bc.Frames + "");
                strLabel.Append("支持 Tables = " + bc.Tables + "");
                strLabel.Append("支持 Cookies = " + bc.Cookies + "");
                strLabel.Append("支持 VB Script = " + bc.VBScript + "");
                strLabel.Append("支持 JavaScript = " + bc.JavaScript + "");
                strLabel.Append("支持 Java Applets = " + bc.JavaApplets + "");
                strLabel.Append("支持 ActiveX Controls = " + bc.ActiveXControls + "");
                strLabel.Append("CDF = " + bc.CDF + "");
                strLabel.Append("W3CDomVersion = " + bc.W3CDomVersion.ToString() + "");
                strLabel.Append("UserAgent = " + Request.UserAgent + "");
                strLabel.Append("UserLanguages = " + Request.UserLanguages[0].ToString() + "");
                strLabel.Append("");
                strLabel.Append("客户端计算机基本配置:");
                strLabel.Append("UserHostName = " + Request.UserHostName + "");
                strLabel.Append("UserHostAddress = " + Request.UserHostAddress + "");
                strLabel.Append("PDF 6.0 插件是否安装 = " + Request.Form["PDF"] + "");
                string str= strLabel.ToString();
  • 相关阅读:
    golang 常见疑惑总结
    golang 详解defer
    golang调试工具Delve
    ACE的源码划分
    通过#define连接字符串的特殊方法[转]
    转:extern "C"的用法解析
    转:3d max 2013 安装教程,凭着一种互联网精神提供给广大朋友
    转:Bullet物理引擎不完全指南(Bullet Physics Engine not complete Guide)
    转:折腾一晚上Bullet及Ogre相关工具的成果 -- 3Ds Max,Maya, blender, GameKit
    转:CMake快速入门教程-实战
  • 原文地址:https://www.cnblogs.com/demoC/p/5234960.html
Copyright © 2011-2022 走看看