You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

get_request_header()

Usage

get_request_header(name)

Description
Returns the value of the HTTP request header with the given name. This method can be used both in Entity Callback Functions and in the Page Rendering process to obtain the value of a given HTTP header, allowing the user to use HTTP headers from their web application clients to control features of the application.

Example

${get_request_header('User-Agent')}

results in

Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Search results for "get_request_header()"

get_request_header()

Returns the value of the HTTP request header with the given name. This method can be used both in Entity Callback Functions and in the Page Rendering process to obtain the value of a given HTTP header, allowing the user to use HTTP headers from their web application clients to control features of the application.

get_request_header(name)