Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python/AppEngine: Get client browser information

How can I get client browser information (type, version, etc.) using Python/AppEngine?

like image 411
Rafid Avatar asked Aug 13 '11 11:08

Rafid


1 Answers

From the User-Agent header:

user_agent_string = self.request.headers['user-agent']

http://code.google.com/appengine/docs/python/tools/webapp/requestclass.html#Request_headers

like image 156
maligree Avatar answered Nov 02 '22 13:11

maligree