gpt4 book ai didi

python - 在 Python CGI 中返回 http 状态代码

转载 作者:太空狗 更新时间:2023-10-29 17:05:25 25 4
gpt4 key购买 nike

是否可以通过 python cgi 脚本(例如 301 重定向)发送 200 以外的状态码

最佳答案

通过 cgi 脚本?

print "Status:301\nLocation: http://www.google.com"

关于python - 在 Python CGI 中返回 http 状态代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/833715/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com