How to detect web browser name and version?
Looking for a Java library that converts User-Agent
header into browser name and version.
I need this information in order to understand whether I can send XML+XSL 开发者_高级运维to the browser, or I should do the transformation to XHTML on the server.
I need this information in order to understand whether I can send XML+XSL to the browser, or I should do the transformation to XHTML on the server.
It seems the best approach for that is content negotiation. When you run a restaurant (server), don't ask the diner (UA) what their name is, just ask them what they want to eat (content type)!
精彩评论