HttpRequestHeader()

Retrieves the header from an HTTP request for a landing page. You can only use this function to retrieve the standard HTTP headers outlined in RFC 7231.

Availability 

Marketing Cloud Engagement ✅ Yes
Marketing Cloud Next ❌ No

Syntax 

1HttpRequestHeader(headerToRetrieve)

The HttpRequestHeader(headerToRetrieve) function has one parameter:

  • headerToRetrieve (string): Required. The header that you want to retrieve.

Function Properties 

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

1%%=HTTPRequestHeader('User-Agent')=%%

The function returns the value of the User-Agent header for the HTTP request.

See Also