PylonsHQ.

Layout: Fixed-width

How do I identify browser type?

I would like to return browser-specific code from Pylons. Is there some way to determine the type of browser (IE, Firefox, etc) that has requested a page?

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Mar 06, 2008

    Vasily S. Shevkunov says:

    request.environ["HTTP_USER_AGENT"]

    request.environ["HTTP_USER_AGENT"]

  2. Mar 06, 2008

    Vasily S. Shevkunov says:

    Sorry, request.environ["HTTP_USER_AGENT"]

    Sorry,

    request.environ["HTTP_USER_AGENT"]


Powered by Pylons - Contact Administrators