[Zope] show all http headers

Andy McKay andy@agmweb.ca
Thu, 15 Aug 2002 11:56:56 -0700


In dtml: <dtml-var REQUEST>
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca


----- Original Message -----
From: "Mark McEahern" <mark@mceahern.com>
To: "Zope Mailing List" <zope@zope.org>
Sent: Thursday, August 15, 2002 11:24 AM
Subject: [Zope] show all http headers


> What's the equivalent in Zope to the following VBScript/ASP snippet:
>
>   For Each x in Request.ServerVariables
>     Response.Write "<p>" & x & " = " & Request.ServerVariables(x)
>   Next
>
> For what it's worth, my reason for asking--aside from general debugging
> knowledge--is because I want to see whether my:
>
>   squid --> apache --> zope
>
> setup is passing along an X-Forwarded-For http header.  For now, Apache is
> recording the internal IP address of the squid proxy in the weblogs, which
> is pretty useless.
>
> // m
>
> -
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>