Python, cgi and redirect
Teemu Keskinarkaus
teemu.keskinarkaus at ramk.fi
Wed May 10 04:29:38 EDT 2000
Is there simple cgi module for python that can do redirect?? Now I'm
doing redirect in cgi-script like this:
print "Status: 302 Moved"
print "Location: http://url.to.somewhere"
That works fine except I get 'Premature end of script headers' errors
in apache error_log everytime I use that script.(but browser is
redirected to url I give) Is there something missing or is there
ready cgi/web module to do stuff like that?? I use cgi module that
comes with python but I haven't found redirect in it.
TK
More information about the Python-list
mailing list