ASP.NET 如何检测浏览器功能?
今天,在其他一些相关工作中,我想到了以下问题:ASP.NET 如何检测浏览器功能?似乎不能从请求标头中获取,因为 this.Request.ServerVariables["ALL_RAW"]
应该显示所有请求标头,但其中没有关于浏览器功能的信息?他们显然在其他地方。在哪里?如何获取这些原始数据?
澄清一下:这不是一个关于如何从 ASP.NET 获取浏览器功能的问题。这个很简单(this.Request.Browser
,在这里您可以找到所有内容)。
Today, during some other somehow related work, came across my mind the following question: How does ASP.NET detect browser capabilities? Is seems it can not from request header, as the this.Request.ServerVariables["ALL_RAW"]
should reveal all request headers, but there is nothing about browser capabilities in there? They obviously are somewhere else. Where? How to get those raw data?
For clarification: this is not a question about how to get browser capabilities from ASP.NET. This one is simple (this.Request.Browser
, here you can find all).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ASP.Net 包含映射
用户的
.browser
文件 -能力的代理。ASP.Net includes
.browser
files that mapUser-Agents
to capabilities.