Forum Discussion

goldberghere's avatar
goldberghere
Icon for Nimbostratus rankNimbostratus
May 23, 2012

Persist Question - noob Q

rule Persist_Universal {

 

when HTTP_REQUEST {

 

persist uie [ findstr [HTTP::uri] "?" 8 3 ]

 

 

The issue I'm having with understanding the above is the "3".

 

So as I understand, if I go to the following URL

 

http://www.anywhere.com/test.html?boat87897AD5B

 

The iRule looks for the ? then skips "8" characters/digits after the ? but what function/role does the 3 play?

 

  • here, 3 indicates 3 characters. So, the rule will search for "?" in the URI by skipping the first 8 characters and will look for it in 9th, 10th and 11th character.

     

     

    When used with "3", the rule searches till it finds the first "3" or till end of the string.

     

     

    -Santosh.