GetRequestHeader

Retrieves the value of an HTTP request header.

Syntax 

GetRequestHeader(1)

Function Properties 

OrdinalTypeDescription
1StringThe name of the HTTP header to retrieve.

Example 

To use this function, pass it the name of the HTTP header that you want to retrieve.

1<script runat="server">
2  var requestData = Platform.Request.GetRequestHeader('Accept-Language');
3  Platform.Response.Write(requestData);
4</script>

The response contains the value of the specified header.

1en-US,en;q=0.9