Classic ASP Response Object

Last updated: August 26, 2026.

The ASP Response object controls the HTTP response body, status, headers, cookies, and redirects.

Write a safe response

<%
Response.ContentType = "text/html"
Response.Charset = "utf-8"
Response.CacheControl = "no-store"
Response.Status = "200 OK"

Dim message
message = Request.QueryString("message")
Response.Write "<p>" & Server.HTMLEncode(message) & "</p>"
%>

Common members

MemberPurpose
WriteWrite response content
StatusSet the HTTP status
AddHeaderAdd an HTTP header
CookiesSet response cookies
RedirectSend a redirect response
EndStop processing the page

HTML-encode untrusted text, validate redirect destinations, and set secure cookie attributes at the IIS or application layer where Classic ASP lacks direct support.

admin

admin

Leave a Reply

Your email address will not be published.