Chapter 2 Content Switching Module with SSL Commands

match protocol http cookie (cookie map submode)

match protocol http cookie (cookie map submode)

To add cookies to a cookie map, use the match protocol http cookie command in SLB cookie map configuration submode. Multiple match rules can be added to a cookie map. To remove the cookie map name from the cookie map, use the no form of this command.

match protocol http cookie cookie-namecookie-value cookie-value-expression

no match protocol http cookie cookie-namecookie-value cookie-value-expression

Syntax Description

 

cookie-name

Cookie name; the range is from 1 to 63 characters.

 

 

cookie-value

Specifies a cookie value expression; the range is from 1 to 255

 

 

cookie-value-expression

characters.

 

 

 

 

 

 

 

 

 

Defaults

 

This command has no default settings.

 

 

 

 

Command Modes

 

SLB cookie map configuration submode

 

 

 

 

 

Command History

 

Release

Modification

 

 

 

 

 

 

 

 

CSM release 1.1(1)

This command was introduced.

 

 

 

 

 

 

 

CSM-S release 1.1(1)

This command was introduced.

 

 

 

 

 

 

 

 

 

Usage Guidelines

 

Cookie regular expressions (see “Regular Expressions” section on page 2-3)are based on the UNIX

 

 

filename specification. URL expressions are stored in a cookie map in the form cookie-name=

 

 

cookie-value-expression. Cookie expressions allow spaces if they are escaped or quoted. You must

 

 

match all cookies in the cookie map.

 

 

 

 

Examples

 

This example shows how to add cookies to a cookie map:

 

 

Cat6k-2(config-slb-map-cookie)#match protocol http cookie albert cookie-value 4*

 

 

cookie-map (policy submode)

 

 

Related Commands

 

 

 

 

 

map cookie

 

 

 

 

show module csm map

 

 

Catalyst 6500 Series Switch Content Switching Module with SSL Command Reference

 

OL-7029-01

2-25

 

 

 

Page 47
Image 47
Cisco Systems OL-7029-01 manual Match protocol http cookie cookie map submode, Cookie-value, Map cookie Show module csm map