Chapter 3: Condition Reference

response.header.header_name=

Tests the specified response header (header_name) against a regular expression. Any recognized HTTP response header can be tested. For custom headers, use response.x_header.header_name= instead.

Replaces: response_header.header_name=

Syntax

response.header.header_name=regular_expression

where:

header_name—A recognized HTTP header. For a list of recognized headers, see Appendix C: "Recognized HTTP Headers". For custom headers not listed, use condition response.x_header.header_name instead.

regular_expression—A regular expression. For more information, refer to Appendix E: “Using Regular Expressions,” in the ProxySG Configuration and Management Guide.

Layer and Transaction Notes

Use in <Cache>, <Proxy>, and <Exception> layers.

Examples

;Test if the response’s “Content-Type” header has the value “image/jpeg” response.header.Content-Type=”image/jpeg”

See Also

Actions: append( ), delete( ), delete_matching( ), rewrite( ), set( )

Conditions: request.header.header_name=, response.x_header.header_name=

123

Page 123
Image 123
Blue Coat Systems Proxy SG manual Response.header.headername=, Where