Nicolas_Bellen1
May 31, 2011Nimbostratus
HTTP Payload matching
I'm trying to match on a value in the HTTP payload and then insert this value into a cookie so i can use it for other purposes in future requests. However, i'm not getting any matches for HTTP_RESPONSE or HTTP_RESPONSE_DATA (i.e. it's not logging anything contained within this conditional statement). Is there something simple i'm missing here?
when HTTP_RESPONSE_DATA {
Log debug to /var/log/ltm? 1=yes, 0=no.
set debug 1
Check for the FQDN in the payload
set found [regexp "GMVM(\d)+.oasis\.local" [HTTP::payload]]
if {$found != -1 } {
Insert a new cookie with the old host IP name and old cookie's value
HTTP::cookie insert name "DRCShared_IP" value [class search CLASS equals $found]
if {$debug != 0} {
log local0. "$found is being replaced"
log local0. "[IP::client_addr]:[TCP::client_port]: Debug enabled" }
}
I'm seeing the the contents that i'm trying to match on referenced in the payload coming back from VIP. Any help would be appreciated.
Nick