Chapter 3: Condition Reference
request.x_header.header_name=
Tests the specified request header (header_name) against a regular expression. Any HTTP request header can be tested, including custom headers. To test recognized headers, use request.header.header_name= instead, so that typing errors can be caught at compile time. For streaming requests, only the
Replaces: request_x_header.header_name=
Syntax
request.x_header.header_name=regular_expression
where:
•
•
Layer and Transaction Notes
•Use in <Cache> and <Proxy> layers.
Examples
;deny access to the URL below if the request contains the custom
;header “Test” and the header has a value of “test1”
<proxy>
deny url=http://www.bluecoat.com request.x_header.Test=”test1”
See Also
•Actions: append( ), delete( ), delete_matching( ), rewrite( ), set( )
•Conditions: request.header.header_name=, request.header.header_name.address=, response.x_header.header_name=
121