browser version detection from server side with java
I saw many posts related to the browser detection, User agent detection etc...I want to detect the version from server side and send appropriate data based on that. I know browsers can mimic version with tools, but that doesn't matter for me. I need the java solution for the exact version detection. NPE Take a look at user-agent-utils . coder247 Here is the code explaining how to do it using user-agent-utils : String userAgent = req.getHeader("user-agent"); UserAgent ua = UserAgent.parseUserAgentString(userAgent); Version browserVersion = ua.getBrowserVersion(); String browserName = ua