开发者

Loading .browser file dynamically in a non-ASP.net website applications

开发者 https://www.devze.com 2023-03-24 03:04 出处:网络
I have an offline process that needs to do some analysis on User-Agent strings, that are logged from requests on our production machines, the problem is I need to use the .browser file that has the re

I have an offline process that needs to do some analysis on User-Agent strings, that are logged from requests on our production machines, the problem is I need to use the .browser file that has the required filters to parse & recognize the browsers from user-agent, and the only way to use the file that I know, is through having an ASP.net website and placing the .browser file under APP_Browsers folder, but given the nature of the offline process I can't have it in a website and I find the need to construct a HttpWebRequ开发者_C百科est object for each record to read the HttpBrowserCapabilities over killing. So is there any other way to consume the .browser file and read the HttpWebBrowserCapabilities matching the user-agent.

Note: I found a previous similar question that is about 2 years old, that didn't get enough traction, so I thought may be things changed since then.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号