Re: Using info in response headers to create new header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 27, 2012 at 10:58 AM, Nick Kew <nick@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


Of course you are right. The SetEnvIf runs against the request not the response. So better try something like mod_perl, mod_cgi etc.

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux