Re: [Zope-dev] HTTP user agent?

2000-07-19 Thread Martijn Pieters

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 Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] HTTP user agent?

2000-07-19 Thread Brian Takashi Hooper

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

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )