HTTP headers

The following table provides the HTTP header EL expressions.

Agent Env Variable Routing EL expression Example
DXAGENT_HTTP_* http.headers.
HEADER_NAME
 
DXAGENT_HTTP_HOST http.headers.
HOST
${http.headers.HOST.matches('.*')}
DXAGENT_HTTP_USER_AGENT http.headers.
USER_AGENT
${extract(http.headers.USER_AGENT,'/',1) eq 'Mozilla'}
DXAGENT_HTTP_REFERER http.headers.
REFERER
${concat(concat('https://',http.headers.HOST),':444').
matches(http.headers.REFERER)}
DXAGENT_HTTP_CONTENT_LENGTH http.headers.
CONTENT_LENGTH

${http.headers.CONTENT_LENGTH eq transfer.transferredBytes}

DXAGENT_HTTP_CONTENT_TYPE http.headers.
CONTENT_TYPE
 
DXAGENT_HTTP_ACCEPT_LANGUAGE http.headers.
ACCEPT_LANGUAGE

 

DXAGENT_HTTP_FEATURES http.headers.
FEATURES
 
DXAGENT_HTTP_CONTENT_RANGE http.headers.
CONTENT_RANGE
 
DXAGENT_HTTP_ACCEPT http.headers.
ACCEPT
 
DXAGENT_HTTP_ORIGIN http.headers.
ORIGIN
 
DXAGENT_HTTP_CONNECTION http.headers.
CONNECTION
 
DXAGENT_HTTP_ACCEPT_ENCODING http.headers.
ACCEPT_ENCODING
 
DXAGENT_HTTP_CONTENT_DISPOSITION http.headers.
CONTENT_DISPOSITION
 

Related topics:

Related Links