Forum Discussion
commsmonkey_172
Nimbostratus
Aug 08, 2010Persist uie with Findstr query
I've come across the following irule and I'm not sure exactly what it's intentions are
rule Persist_Universal {
when HTTP_REQUEST {
persist uie [ findstr [HTTP::uri] "?" 9 3 ]
}
}
To me based on findstr this matches nearly everything heading by this node, eg most urls are as per the following http://somesite.com/content.html?query123ADF90
Cheers,
Comms
- The_Bhattman
Nimbostratus
Hi Comms. - Colin_Walker_12Historic F5 AccountKeep in mind we have HTTP::query and URI::query for accessing just the query portion of a URI as well. These would allow you to skip the findstr portion.
- yxshybj_101037
Nimbostratus
according above , does it mean : startwith "q" , then skips 9 characters to" A ", and use 3 characters " DF9 " to persist session ? thank you ! - nitass
Employee
e.g.[root@ve10:Active] config b rule myrule list rule myrule { when RULE_INIT { set uri "/content.html?query123ADF90" log local0. "\[findstr $uri ? 9 3\] is [findstr $uri ? 9 3]" } } [root@ve10:Active] config tail /var/log/ltm Sep 3 17:51:53 local/tmm info tmm[4925]: Rule myrule : [findstr /content.html?query123ADF90 ? 9 3] is ADF
- nathe
Cirrocumulus
yxshybj - nathe
Cirrocumulus
Thanks nitass - looks like I was wrong. I did wonder if I should get on my test box to check...hence the delay in clicking on Submit and missing your post. - yxshybj_101037
Nimbostratus
hi,
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects