Forum Discussion
Chris_Schaerli_
Jun 20, 2007Nimbostratus
I grabbed Dennypayne's Irule and updated it with the findstr that was working earlier. I am getting three errors when I try to save the rule.
when CLIENT_ACCEPTED {
set add_persist 1
when HTTP_RESPONSE {
set uid [findstr [HTTP::payload] xmlns:soapenc= 58 <] "uid=" 5 "&"]
if { $uid != "" and $add_persist} {
log local0. "Adding persist value to table: $uid"
persist add uie $uid
set add_persist 0
}
when HTTP_REQUEST {
set fulluri [HTTP::uri]
set uid [findstr [HTTP::payload] xmlns:soapenc= 58 <] "uid=" 5 "&"]
if { $uid != "" } {
log local0. "Using persist value uid: $uid | $fulluri"
persist uie $uid
} else {
log local0. "No uid found in HTTP REQUEST | $fulluri"
}
}