ASP » Response » AddHeader

Syntax:
Response.AddHeader Name, Value
Name
The Name argument is the name of the new header variable. The name cannot contain any underscores ( _ ).
Value
The Value argument is the initial value of the new header variable.

The AddHeader method adds a new named HTTP header with a specific value to the response.

The AddHeader method adds a new named HTTP header with a specific value to the HTTP response. Note that once a header has been added, it cannot be removed. This method must be called before any output is sent to the client unless the Response.Buffer is set to true.

There are two mandatory arguments.

Examples

Code:
<%
Response.AddHeader "MyHeader", "ERROR"
%>