开发者

How to detect web browser name and version?

开发者 https://www.devze.com 2023-03-20 13:27 出处:网络
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

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)!

0

精彩评论

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