如何使用Python进行简单的http重定向?不使用元.
UPDATE:
I am using Python 2.7.1 as a CGI from within the cgi-bin directory of Apache.
要使用当前设置(CGI apache)进行重定向:
print("Location:http://newurl.com/foobar")
print # to end the CGI response headers.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)