Python/AppEngine:获取客户端浏览器信息

5 投票
1 回答
817 浏览
提问于 2025-04-16 23:31

我怎么能用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

撰写回答