Is it possible in ASP.NET to derive the browser MajorVersion from the HTTP request's user agent string alone?

谁说胖子不能爱 提交于 2019-12-04 01:09:58

Very challenging.

This page will tell you your agent string:

http://www.useragentstring.com/

This page will show you agent string for most browsers http://www.useragentstring.com/pages/useragentstring.php

Some browsers have a major/minor version in the agent string. Some do not. The format various between browser and even between browser version, so even if you know the major version exists in the agent string, parsing it out can still be specific to each browser/version.

If you really need to do this, you're better off finding a library that is kept up to date and well maintained.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!