ASP.NET(vb.net) Response.AddHeader() - Response Object - Response.AddHeader() : The AddHeader method adds a new HTML header and value to the response sent to the client. It does not replace an existing header of the same name. After a header has been added, it cannot be removed.
ShotDev Focus:
- ASP.NET(vb.net) Response.AddHeader() - Response Object
Syntax
AddHeader( HeaderName, HeaderValue )
Example
<% Response.AddHeader "CustomHeader", "CustomValue" %>
Screenshot
You can retrieve the header if a special client returns it to the server on the next request with the following
<% ReturnedValue = Request.ServerVariables(”HTTP_CustomHeader”) %>
.
.
.