httpmatch

This command adds a pattern to match HTTP headers.

Syntax

httpmatch field pattern

Parameters

field
Specifies an HTTP header as defined in sections 4.5, 5.3, 6.2, and 7.1 of RFC 2616.
pattern
Defines a match pattern that defines the value for the HTTP header.

Guidelines

The httpmatch command adds a pattern to match HTTP headers. To determine whether the pattern is a PCRE or shell style expression, use the match-with-pcre command.

Examples

Add a match pattern to the matching rule. The match succeeds if the Content-Language field of a candidate HTTP header contains da.
# httpmatch Content-Language da