httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] Using info in response headers to create new header
Date Fri, 27 Jul 2012 04:58:58 GMT
On Fri, Jul 27, 2012 at 10:58 AM, Nick Kew <nick@webthing.com> wrote:

>
> On 27 Jul 2012, at 01:31, Igor Cicimov wrote:
>
> > Try this untested:
> >
> > SetEnvIf Set-Cookie mycookie=abc123-happy HAVE_happy
>
> How is that going to work?  There are no response headers
> at the point where setenvif runs!  The same applies to similar
> pseudo-programmatic approaches such as mod_rewrite.
>
> Header edit could do it, by appending the other header to the
> one it's looking for (look up header equivalence in the HTTP
> spec if you think that's not the same as what you asked for).
> But there's no scripting engine, so what you can do is limited.
> You'd need a script or module to do any more.
>
> --
> Nick Kew
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Of course you are right. The SetEnvIf runs against the request not the
response. So better try something like mod_perl, mod_cgi etc.

Mime
View raw message