[Zope] browser detection

Martijn Pieters mj@digicool.com
Sun, 5 Mar 2000 09:28:57 +0100


From: "daniel edmond greenlaw" <314@valint.net>
> is it possible to do browser detection with zope? if so, how?

Yup. Take a look at REQUEST.environ['HTTP_USER_AGENT'], which is also
accessible as:

  REQUEST.HTTP_USER_AGENT
  REQUEST['HTTP_USER_AGENT']

and in DTML also as

  HTTP_USER_AGENT

Martijn Pieters
| Software Engineer    mailto:mj@digicool.com
| Digital Creations  http://www.digicool.com/
| Creators of Zope       http://www.zope.org/
|   The Open Source Web Application Server
---------------------------------------------