TIMEX
TIMEX

Reputation: 272184

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

in server side, not browser.

Upvotes: 1

Views: 1028

Answers (3)

zoltanctoth
zoltanctoth

Reputation: 2927

Unfortunately request.env won't work.

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

Upvotes: 1

compie
compie

Reputation: 10536

You can use the HTTP_USER_AGENT in HttpRequest

Upvotes: 4

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 799210

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

Upvotes: 2

Related Questions