代码之家  ›  专栏  ›  技术社区  ›  Ian Boyd

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

  •  1
  • Ian Boyd  · 技术社区  · 14 年前

    我怎么能发行 http status code of 303 See other 在ASP?

    使用:

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

    发行a 302 Object moved 致客户:

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

    which isn't what i'm trying to do .

    如何发布303的http状态代码( 见其他 )在ASP?

    1 回复  |  直到 13 年前
        1
  •  2
  •   Darryl Braaten    14 年前

    尝试

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