开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜