Blue Coat Systems Proxy SG Manual De Usuario
Chapter 3: Condition Reference
121
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
User-Agent
header is available.
Replaces:
request_x_header.header_name=
Syntax
request.x_header.header_name=regular_expression
where:
•
header_name
—Any HTTP header, including custom headers.
•
regular_expression
—A regular expression. For more information, see Appendix E: “Using
Regular Expressions,” in the Blue Coat ProxySG Configuration and Management Guide.
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=