开发者

Is it possible to detect the browser version from Django server side?

in server side开发者_开发百科, not browser.


You can use the HTTP_USER_AGENT in HttpRequest


request.env['HTTP_USER_AGENT'] will give the user agent string the browser sent.


Unfortunately request.env won't work.

However, you can get it through request.META.get("HTTP_USER_AGENT")

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜