开发者

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.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜