ASP AddHeader Method

The AddHeader method adds a new HTTP header and a value to the HTTPresponse. "

Syntax

response.AddHeader name,value
Parameter Description
name Required. The name of the new header variable (cannot contain underscores)
value Required. The initial value of the new header variable

Examples

<%Response.AddHeader "WARNING","Error message text"%>

❮ Complete Response Object Reference