I\'m trying to detect the current web browser within one of my Api Controllers in my program using MVC4. Everywhere I look people say to use Request.Browser, h
Request.Browser
You could do something like following too from within the Web API's action:
System.Net.Http.HttpRequestMessage currentRequest = this.Request; System.Net.Http.Headers.HttpHeaderValueCollection userAgentHeader = currentRequest.Headers.UserAgent;