Reputation: 272184
in server side, not browser.
Upvotes: 1
Views: 1028
Reputation: 2927
Unfortunately request.env
won't work.
However, you can get it through request.META.get("HTTP_USER_AGENT")
Upvotes: 1
Reputation: 799210
request.env['HTTP_USER_AGENT']
will give the user agent string the browser sent.
Upvotes: 2