[Zope] Accessing HTTP request headers

Matt Ficken mattficken@mail.com
Tue, 08 Apr 2003 11:02:15 -0500


I need to know how to access the HTTP headers the client sent from within a product class that inherits from Folder. 

----- Original Message -----
From: Ed Leafe <ed@leafe.com>
Date: Tue, 8 Apr 2003 05:31:18 -0400
To: "Matt Ficken" <mattficken@mail.com>
Subject: Re: [Zope] Accessing HTTP request headers

> On Tuesday, April 8, 2003, at 12:07  AM, Matt Ficken wrote:
> 
> > No, I actually need access to the headers the client sent. I've looked 
> > through parts of the Zope source and can't find a method that will do 
> > what I want. Is there an existing method to access the client's 
> > headers?
> 
> 	Dunno if this helps, but here's how you can list all the headers in 
> ZPT:
> 
> <table border="1" tal:define="hdrkeys python:request.keys()">
> 	<tr tal:repeat="kk hdrkeys">
> 		<td tal:content="kk">key</td>
> 		<td tal:content="python:request.values()[repeat['kk'].index]">val</td>
> 	</tr>
> </table>
> 
> 
>       ___/
>      /
>     __/
>    /
>   ____/
>   Ed Leafe
>   http://leafe.com/
>   http://opentech.leafe.com
> 

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup