Dave_Wiley
Sep 27, 2006Nimbostratus
LB based on XML
Greetings all!
I am trying to write an iRule using iRule XML commands, but just realized that the documentation shows that I need an EA key in order to use them. So instead of using XML, I'm using the iRule below and I'm just searching the payload for
[Subscriber ID]
So my iRule is pretty simple anyway and would probably look like this:
when HTTP_REQUEST {
set subid [findstr [HTTP::payload] "" 8 "<"]
if { $subid = "687ABCD" } {
These are acutally going to be matchclass statements with multiple
classes.
use pool_one
} else {
use pool_two
}
}
BUT, has anyone created an iRule to do this with the XML commands?
Thanks!
Dave