Re: How to print request headers before and after processing

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

 



Am 22.03.2018 um 18:08 schrieb Eric Covener:
On Thu, Mar 22, 2018 at 1:03 PM, Martin Knoblauch <knobi@xxxxxxxxxxxx> wrote:
Hi Eric,

  thanks, but does not work.

login_jsid=Cookie  prints "Cookie"
login_jsid=%{Cookie} prints "%{Cookie}"

Apparently the right sides of the assignment are just taken as literals
without evaluating them as variables.


Arg, sorry, It is only for the first arg.

Had a brief look at mod_log_debug, but do not see how it helps me in this
case.

You could log expressions before/after the  your edits.

... by choosing different hooks.

If that does not work, you could also try to copy the header to an env var using mod_rewrite. Something like

RewriteCond "%{HTTP_COOKIE}" "(.*)"
RewriteRule ^/cb2/facelets/logon.xhtml$ - [E=login_jsid:%1]

But you need to test. Not sure in what order the mod_headers replacement and the mod_rewrite rule handling run. I vaguely remember having used a trick like this.

Including your marker login_get should work like this:

RewriteCond "%{HTTP_COOKIE}" "(.*)"
RewriteRule ^/cb2/facelets/logon.xhtml$ - [E=login_jsid:%1,E=login_get]

Regards,

Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[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