[Zope-dev] HTTP user agent?
Martijn Pieters
mj@digicool.com
Wed, 19 Jul 2000 16:22:16 +0200
On Wed, Jul 19, 2000 at 04:57:12PM +0900, Brian Takashi Hooper wrote:
> 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?
I have a HTTP_USER_AGENT in my Zope. Maybe your browser doesn't send your
server the header?
--
Martijn Pieters
| Software Engineer mailto:mj@digicool.com
| Digital Creations http://www.digicool.com/
| Creators of Zope http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-----------------------------------------------------