Forum Discussion

siva_85221's avatar
siva_85221
Icon for Nimbostratus rankNimbostratus
Aug 12, 2008

Equivalent iRule in 4.x....

This iRule is for 9.x.

 

 

Can someone let me know the equivalent iRule in 4.x?

 

 

b rule http_inspect_uri_routehash_persist_rl

 

{ when HTTP_REQUEST

 

{

 

if { [set routehashvalue [findstr [HTTP::uri] "routehash=" 10 "&" ] ] }

 

{

 

persist uie $routehashvalue

 

log local0. "URI= $routehashvalue"

 

}

 

}

 

}

 

 

Thanks
  • IIRC, there is no equivalent.

    You could get close to the findstr by doing a simple contains check:

    if (http_uri contains "routehash") {

    and you could even extract the parameter value, but you can't manipulate the persistence table in v4 iRules, so it would all be in vain.