Question

How can i issue an http status code of 303 See other in ASP?

Using:

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

issues a 302 Object moved to the client:

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

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

How can i issue an http status code of 303 (See Other) in ASP?

Was it helpful?

Solution

Try

<%
Response.Status = "303 See Other"
Response.AddHeader "Location", "http://stackoverflow.com"
Response.End
%>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top