How to do simple http redirect using Python?
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-bi开发者_Python百科n directory of Apache.To redirect using your current setup (CGI apache):
print("Location:http://newurl.com/foobar")
print # to end the CGI response headers.
精彩评论