On Sun 02 Nov 2008, Puneet Lakhina wrote:
> > Input headers are found in $r->headers_in and are set even before
> > PerlPostReadRequest. So, have a close look at your code. If that
> > doesn't help try to create a test case as simple as you can and
> > post it to the list.
>
> Not as per this:
> http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_headers
>_in_

Then the documentation is wrong. (Perhaps is was that way with mp1?) Try 
this one:

PerlPostReadRequestHandler "sub { \
  my ($r)[EMAIL PROTECTED]; \
  warn qq{Got Cookie: }.$r->headers_in->{Cookie}; \
  return Apache2::Const::DECLINED; \
}"

and then

curl -b hugo=otto http://localhost/

You'll see something like the line below in your error_log:

Got Cookie: hugo=otto at (eval 91) line 1.

Torsten

--
Need professional mod_perl support?
Just hire me: [EMAIL PROTECTED]

Reply via email to