Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: mod_perl give 404 not_found with content

by Anonymous Monk
on Apr 06, 2011 at 23:40 UTC ( [id://897911]=note: print w/replies, xml ) Need Help??


in reply to mod_perl give 404 not_found with content

404 site:http://perl.apache.org/docs/2.0/
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
    But my problem is not so much in the headers but in printing the content. Is there an equivalent $r->err_content_out or something?
      Oops that post was by me, forgot to login.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://897911]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found