How to manipulate the query string and headers in apache1

How to manipulate the query string and headers in apache1

am 16.09.2009 07:42:01 von Matthew Young

--0016e64f6866afe2630473ab5b2c
Content-Type: text/plain; charset=ISO-8859-1

Hello,

What is the best way to set a cookie based on a value from a var extracted
from the query string? All of this done on Apache1 and on a webserver level?

The following is my suggestions and questions:

a.) mod_rerite cannot set cookies in apache1, so one would think that using
that module to extract the variable form the query string and then applying
it to mod_headers would solve this issue, but after brainstorming this idea
I find that passing the var from mod_rewrite to mod_headers is not possible.
Is this correct?

b.) Apache is not a programming language so one could use mod_perl, or
mod_python to do the regex (similar to mod_rewrite) for capturing the needed
var, and then set the cookie. This via the "hook" ups like
PerlResponseHandler or a PerlRequestHandler or some other Perl*Handler to
execute the script on every request cycle within the daemon.


Would this be the best practice to do what I want to do?

Thanks all.

-Matt

--0016e64f6866afe2630473ab5b2c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,

What is the best way to set a cookie based on a value from a =
var extracted from the query string? All of this done on Apache1 and on a w=
ebserver level?

The following is my suggestions and questions:


a.) mod_rerite cannot set cookies in apache1, so one would think that u=
sing that module to extract the variable form the query string and then app=
lying it to mod_headers would solve this issue, but after brainstorming thi=
s idea I find that passing the var from mod_rewrite to mod_headers is not p=
ossible. Is this correct?


b.) Apache is not a programming language so one could use mod_perl, or =
mod_python to do the regex (similar to mod_rewrite) for capturing the neede=
d var, and then set the cookie. This via the "hook" ups like=A0 P=
erlResponseHandler or a PerlRequestHandler or some other Perl*Handler=A0 to=
execute the script on every request cycle within the daemon.=A0



Would this be the best practice to do what I want to do?

Tha=
nks all.

-Matt






--0016e64f6866afe2630473ab5b2c--