tags:

views:

132

answers:

3

in server side, not browser.

+3  A: 

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

Ignacio Vazquez-Abrams
+3  A: 

You can use the HTTP_USER_AGENT in HttpRequest

compie
A: 

Unfortunately request.env won't work.

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

zoltantoth