[Zope-dev] HTTP user agent?

Brian Takashi Hooper brian@garage.co.jp
Wed, 19 Jul 2000 16:57:12 +0900


Hi Zopistas,

For anyone that might know:

Is there a particular reason that the User-Agent header is not part of
the request data that ZServer sends in the environment to ZPublisher?

It looks like the user agent can also be provided to Zope's request
object just by adding a line for 'user-agent' to
ZServer.HTTPServer.header2env:

header2env={'content-length'    : 'CONTENT_LENGTH',
            'content-type'      : 'CONTENT_TYPE',
            'connection'        : 'CONNECTION_TYPE',
            'user-agent'        : 'HTTP_USER_AGENT'
            }

Is there a particular reason this is not done?

--Brian Hooper
Digital Garage, Inc.
Tokyo, Japan