in reply to mod_perl give 404 not_found with content
For example, if a handler wants to return a 404 response, but nevertheless to set a cookie, it has to be: $r->err_headers_out->add('Set-Cookie' => $cookie); return Apache2::Const::NOT_FOUND; If the handler does: $r->headers_out->add('Set-Cookie' => $cookie); return Apache2::Const::NOT_FOUND; the C<Set-Cookie> header won't be sent.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: mod_perl give 404 not_found with content
by Anonymous Monk on Apr 07, 2011 at 10:35 UTC | |
by Jaap (Curate) on Apr 07, 2011 at 10:39 UTC |