headers. Getting the HTTP request headers   [3.4.4]

$request:headers   

Returns hash with HTTP request headers (enviroment variables with HTTP_ prefix).

Example
^if(^request:headers.USER_AGENT.pos[MSIE] >= 0){
    User is probably using MicroSoft Internet Explorer<br />
}

Names of HTTP-header fields are in uppercase letters.



Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 04.04.2016