Python/AppEngine:获取客户端浏览器信息
我怎么能用Python/AppEngine获取客户端浏览器的信息(比如类型、版本等)呢?
1 个回答
5
来自用户代理头的信息:
user_agent_string = self.request.headers['user-agent']
http://code.google.com/appengine/docs/python/tools/webapp/requestclass.html#Request_headers