在ASP中发送http状态303(见其他)?

时间:2010-11-25 21:50:03

标签: asp-classic post-redirect-get

如何在ASP中发布http status code of 303 See other

使用:

<%Response.Redirect "http://stackoverflow.com"%>

向客户发出302 Object moved

HTTP/1.1 302 Object moved
Location: http://stackoverflow.com

which isn't what i'm trying to do

如何在ASP中发出http状态代码303(查看其他)?

1 个答案:

答案 0 :(得分:2)

尝试

<%
Response.Status = "303 See Other"
Response.AddHeader "Location", "http://stackoverflow.com"
Response.End
%>