Forum Discussion
Puli
Nimbostratus
Jul 27, 2010Traversing the URL and matching it with a datagroup
Hi All,
i have a requirement and wondering if you can help me out.
Lets say we have a url:
www.abc.com/aa/bb/cc/dd/ee
and my datagroup has entries for re-directs
aa zz
...
hoolio
Cirrostratus
Jul 27, 2010Hi Puli,
Conceptually this could be done using various string functions (most likely URI::path or possibly split and/or scan) and the class command to check the datagroup. However, I'd be concerned about the possible resource utilization and latency added by doing recursive operations.
http://devcentral.f5.com/wiki/default.aspx/iRules/class
http://devcentral.f5.com/wiki/default.aspx/iRules/uri__path
http://www.tcl.tk/man/tcl8.4/TclCmd/split.htm
http://www.tcl.tk/man/tcl8.4/TclCmd/scan.htm
You might try building a simple test rule and do some performance testing of it under load while using timing to record the results:
http://devcentral.f5.com/wiki/default.aspx/iRules/timing
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
