Forum Discussion
Chadri_103513
Nimbostratus
Jun 14, 2010set command broken by "//"
Hello,
I'm having an issue with one of my iRules and I wanted to see if anybody has run into this issue in the past. Basically, I have an iRule that inspects the URI for a set of commands a...
Chadri_103513
Nimbostratus
Jun 16, 2010Matt,
Using a string map is the way that I ended up going and it seems to be working. I hate to add extra lines to an already oversized iRule, but it seems to do the trick. I simply had to modify my set cmd lines to first strip the URI of "//".
if { [HTTP::query] contains "//" } {
set cmd2 [string map -nocase {"//" ""} [HTTP::uri]]
set cmd [ URI::query [string tolower $cmd2] command ]
Thanks for your help,
Chris
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
