开发者

Python/AppEngine: Get client browser information

开发者 https://www.devze.com 2023-03-28 09:18 出处:网络
How can I get client browser information (type, version, etc.) using Python/AppEn开发者_StackOverflow中文版gine?From the User-Agent header:

How can I get client browser information (type, version, etc.) using Python/AppEn开发者_StackOverflow中文版gine?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消