01-26-2012 12:48 PM
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:
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 "?"?
Solved! Go to Solution.
01-30-2012 06:32 AM
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
01-30-2012 06:32 AM
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
02-01-2012 06:07 AM
This worked. Thanks!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide