[mod_python] Sending back headers with 4xx responses

Deron Meranda deron.meranda at gmail.com
Wed May 31 13:05:03 EDT 2006


On 5/31/06, Deron Meranda <deron.meranda at gmail.com> wrote:
> At least for the 4/5xx codes, perhaps the problem is the way
> Apache really does an internal redirect to the appropriate
> error page?  Is there any way to pass information or headers
> on to those?

As an experiment, I have noticed that I can write an nph-* CGI
script (non-parsed headers) that can output any headers I want
with any response code I want.  But this is not possible with a
normal (non-nph) CGI.

So, is there a way in mod_python to do something similar to an
NPH CGI?  (To keep Apache from post-processing the response).
-- 
Deron Meranda


More information about the Mod_python mailing list