A user agent is the client application used with a particular network protocol; the phrase is most commonly used in reference to those which access the World Wide Web. Web user agents range from web browsers to search engine crawlers ("spiders"), as well as mobile phones, screen readers and braille browsers used by people with disabilities. When Internet users visit a web site, a text string is generally sent to identify the user agent to the server. This forms part of the HTTP request, prefixed with User-agent: or User-Agent: and typically includes information such as the application name, version, host operating system, and language. Bots, such as web crawlers, often also include a URL and/or e-mail address so that the webmaster can contact the operator of the bot.

解决方案 »

  1.   

    估计jiangsheng(蒋晟.Net[MVP]) 也没有太懂.
      

  2.   

    很多浏览器用的是相同的内核,MyIE就是用IE的内核,动太页面报头里有记录一般都可以用一个context的类得到这些信息JS里用该也有
      

  3.   

    navigator 对象--------------------------------------------------------------------------------包含关于 Web 浏览器的信息。成员表下面的表格列出了 navigator 对象引出的成员。请单击左侧的标签来选择你想要查看的成员类型。  属性     
     
    SHOW: 
    属性 
    集合 
    方法 
    对象 
     对象 描述 
    userProfile 提供了允许脚本对用户配置信息请求读取访问并执行读取操作的方法。 方法 描述 
    javaEnabled 返回 Java 是否已启用。 
    taintEnabled 返回是否允许数据污点。 集合 描述 
    plugins 获取文档中所有 EMBED 对象的集合。 属性 描述 
    appCodeName 获取浏览器的代码名称。 
    appMinorVersion 获取应用程序的次版本值。 
    appName 获取浏览器的名称。 
    appVersion 获取浏览器运行的平台和版本。 
    browserLanguage 获取浏览器的当前语言。 
    cookieEnabled 获取客户端的永久 cookie 是否在浏览器中启用。永久 cookies 是储存在客户端计算机上的。 
    cpuClass 获取指示 CPU 等级的字符串。 
    onLine 获取表明系统是否处于全局脱机模式的值。 
    platform 获取用户的操作系统名称。 
    systemLanguage 获取操作系统适用的默认语言。 
    userAgent 获取等同于 HTTP 用户代理请求头的字符串。 
    userLanguage 获取操作系统的自然语言设置。 
     
     
     
      

  4.   

    navigator
    用这个获取到的如appName, appCodeName 
    在用IE浏览器与用我自己的应用程序使用webbrowser 控件,打开同一个网页,显示的是一
    样的.都是IE的内容.
    我就是想知道.用IE浏览器是IEXPLORE.EXE,而用我自己的应用程序打开时就显示"我的应用程序名.exe"
    这样,就可以判断客户端是用什么EXE打开这个网页的呀.