I'm using Google App Engine python. I want to know what browser the user is using.
+4
A:
class BaseRequestHandler(webapp.RequestHandler):
def browser(self):
return str(self.request.headers['User-Agent'])
mainsocial
2009-08-20 23:23:34