On Mon, 2 Jun 2008, Graeme B. Davis wrote:

We still have an old server running 2.1 (on Sol 2.5.1!) -- is there an
equivalent way to get http headers with this version of roxen? in 4.x, I
know I can do &request-header.whatever;,but I'm not sure how to do it in 2.1

Nostalgia. I actually had a brush with a Roxen 2.0.46 server a week or two ago...

Anyway, from looking at the code, there seems to be no obvious method.
I see four main approaches. From least to most general:

  * The &client; scope gives access to a processed version of a few of the
    clients http headers. eg:

      &client.accept-languages;

  * The <debug/> tag can dump information from the RequestID object
    although HTML-encoded and surrounded by a <tt/> container. eg:

      <debug showid="id->request_headers"/>

  * The <?pike?> processing instruction. eg:

      <?pike write("%O", id->request_headers); ?>

  * Use the pikescript module.

Ideas?

Thanks!

graeme

--
Henrik Grubbström                                       [EMAIL PROTECTED]
Roxen Internet Software AB

Reply via email to