[mod_python] HTTP response codes

Clarence Gardner clarence at netlojix.com
Mon Dec 31 13:51:38 EST 2001


I'm not seeing a way to do much with the response code. In particular,
I want to do a redirection, which requires a 3xx response and a Location
header.

If I just return HTTP_MOVED_PERMANENTLY, the server sends an HTML
document containing an empty link, with a status of 301. If I set
the header, call send_http_header, and then return that status, I
get the same HTML, but with a 200 status (and my Location header
isn't included anyway).

Have I missed something?
Thanks.

-- 
Clarence Gardner
Software Engineer
NetLojix Communications
clarence at netlojix.com



More information about the Mod_python mailing list