Peter Stegnar
Peter Stegnar

Reputation: 12925

How does ASP.NET detect browser capabilites?

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).

Upvotes: 2

Views: 161

Answers (1)

SLaks
SLaks

Reputation: 887365

ASP.Net includes .browser files that map User-Agents to capabilities.

Upvotes: 5

Related Questions