1871

if-match protocol http

Syntax

if-match [ not ] protocol http [ url url-stringhost hostname-stringmime

 

mime-type ]

 

 

undo if-match [ not ] protocol http [ url url-stringhost hostname-stringmime

 

mime-type ]

 

View

Class view

 

Parameters

not: Specifies the current rule to not to match the specified matching rule.

 

url: Matches according to the URL in the HTTP packet.

 

url-string: URL for matching in the HTTP packet, which supports simple wildcard

 

character matching, a string of 1 to 32 characters.

 

host: Matches according to the host name in the HTTP packet.

 

hostname-string: The host name for matching in the HTTP packet, which supports

 

simple wildcard matching, a string of 1 to 32 characters.

 

mime: Matches according to the MIME type in the HTTP packet.

 

mime-type: The MIME type for matching in the HTTP packet, which supports

 

simple wildcard character matching, a string of 1 to 32 characters.

 

See Table 498 for the matching rules of simple wildcard characters.

 

Table 498 The matching rules of simple wildcard characters

 

 

 

 

Character

Description

 

 

 

 

*

Matching zero character or random several characters, including digit,

 

 

capital/small letter, hyphen, or underline

 

#

Matching a character, including digit, capital/small letter, hyphen, or underline.

 

Matching either of the two character strings on the left and right sides

 

()

Matching either of the two character strings on the left and right sides within a

 

 

certain range. For example, index.(htmjsp) matches both index.htm and

 

 

index.jsp

 

[ ]

Matching any one character specified in the square brackets, or a special

 

 

character, including *, #, [, (, , or ). For example, [0-9] indicates all digits, [*]

 

 

indicates *, and [[] indicates [

Description

 

Use the if-match protocol http command to configure HTTP matching rules.

 

Use the undo if-match protocol http command to delete the rules.

 

By default, no matching rule is configured.

Examples

# Define the class http-class, and configure the matching rule to be the HTTP

 

packet with the host name *.abc.com.

Page 1871
Image 1871
3Com MSR 50, MSR 30 manual If-match protocol http