[Zope] Accessing HTTP request headers

Ed Leafe ed@leafe.com
Tue, 8 Apr 2003 05:31:18 -0400


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