cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
485
Views
0
Helpful
2
Replies

Layer 7 loadbalance for HTML content

JEFFREY MONACO
Level 1
Level 1

We're trying to understand how "match http content ...." works.

We're trying to match this:

http://www.acme.com/widgets/stories.aspx?section=prodlist1&promo=special

We've coded this:

class-map type http loadbalance match-all redirect_to_prod_site

  10 match http header Host header-value "www.acme.com"

  20 match http url /widgets/stories\.aspx

  30 match http content "section=prodlist"

It matches if we remove 30 match http content "section=prodlist"

I think the issue relates to what is meant by "content".  We've been referring to this document:

http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/slb/guide/classlb.html#wp1206722

The manual says this, "The ACE performs regular expression matching  against the received HTTP message body from a particular connection  based on a regular expression string in the message body (not the  header)."

We know that "match http url" stops at the "?". Isn't the body the part that comes after the "?"?

1 Accepted Solution

Accepted Solutions

Daniel Arrondo Ostiz
Cisco Employee
Cisco Employee

Hi Jeffrey,

The part after the "?" is still part of the HTTP header, not the content. On ACE, this part is named "secondary cookie"

To match on it, you can use the statement "match http cookie secondary section cookie-value prodlist1"

I hope this helps

Daniel

View solution in original post

2 Replies 2

Daniel Arrondo Ostiz
Cisco Employee
Cisco Employee

Hi Jeffrey,

The part after the "?" is still part of the HTTP header, not the content. On ACE, this part is named "secondary cookie"

To match on it, you can use the statement "match http cookie secondary section cookie-value prodlist1"

I hope this helps

Daniel

This worked. Thanks!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: