How to do simple http redirect using Python?
15,667
To redirect using your current setup (CGI apache):
print("Location:http://newurl.com/foobar")
print # to end the CGI response headers.
Author by
Babiker
Updated on August 20, 2022Comments
-
Babiker over 1 year
How to do simple http redirect using Python? without using meta.
UPDATE:
I am using Python 2.7.1 as a CGI from within the cgi-bin directory of Apache.