Golawala, Moiz M (GE Infrastructure)
Moiz.Golawala at ge.com
Tue Nov 30 09:50:23 EST 2004
Hi All, I have am newbie and I seems to be having a problem return a different apache return code. In my httpd.conf file I am using PythonHandler mod_python.publisher. In my index.py file. index(req): req.header_out['Location'] = "http://someurl:8080/ return apache.HTTP_PERMANENTLY_MOVED my problem is that this returns: HTTP/1.1 200 OK Date: Tue, 30 Nov 2004 01:12:06 GMT Server: Apache/2.0.49 (Fedora) Location: "http://someurl:8080/" Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 3 301 0 I would like to return HTTP/1.1 301.. instead of HTTP/1.1 200 OK. For some reason anything that the method return the publisher handler puts it in the body of the request I cannot return a different return code other than the default apache.OK Could some one please help me with this. Thanks Moiz Golawala
|