Re: Adding custom HTTP headers

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Tue, 07 Aug 2007 22:21:32 +0200

On tis, 2007-08-07 at 11:44 +0300, Elmo Todurov wrote:
> I want to add a header of my own into all HTTP requests.
>
> I took the location rewriting code as a template and was quite successful -- I
> can get the data I need, shell it out to an external program and take it back
> in. However, I have a hunch that the rewriting/header-adding is called too
> late, or something in that spirit. Location rewriting is called in
> clientSendMoreHeaderData.

location header rewriting is rewriting of a response header, way too
late if you want to rewrite some request header. Hooking in at
clientRedirectDone is probably a more appropriate place for rewriting
request headers in a similar manner.

Regards
Henrik

Received on Tue Aug 07 2007 - 14:21:45 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Aug 31 2007 - 12:00:05 MDT