
ProxySG Content Policy Language Guide
response.x_header.header_name=
Tests the specified response header (header_name) against a regular expression. For HTTP requests, any response header can be tested, including custom headers. For recognized HTTP headers, use response.header.header_name= instead so that typing errors can be caught at compile time.
Replaces: response_x_header.header_name=
Syntax
response.x_header.header_name=regular_expression
where:
•
•
Layer and Transaction Notes
•Use in <Cache>, <Proxy>, and <Exception> layers.
Examples
;Tests if the custom header “Security” has the value of “confidential” response.x_header.Security=”confidential”
See Also
•Actions: append( ), delete( ), delete_matching( ), rewrite( ), set( )
•Conditions: request.x_header.header_name=, response.header.header_name=
124