Forum Discussion
Joel_Moses
Sep 22, 2010Nimbostratus
Hi Chris!
Using brackets should work fine, but sometimes the BigIP's validation routines are a little... uh... anal.
set tmp [findstr [string map [" " "" "\n" ""][HTTP::payload]] "<" 16 ":"]
might be best converted to:
set tmp [findstr [string map {" " "" "\n" ""} [HTTP::payload]] "<" 16 ":"]
The bottom one applies correctly on 9.x and 10.x, the top one complains about the undefined procedure (the parser -- incorrectly -- thinks that the bracketed syntax should contain some sort of command). In testing this, it appears to work fine, although smacking around a payload in this way is a bit scary to me...