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...
hoolio
Cirrostratus
Jun 15, 2010Hi Chris,
Which LTM version are you testing this on? For 10.2.0, it seems to work as expected:
when RULE_INIT {
set url {http:// testURL/interface.asp?command=createaccount&referredby=http: //www.abc.com}
log local0. "\[URI::query $url command\]: [URI::query $url command]"
set url {http:// testURL/interface.asp?command=createaccount&referredby=http://www.abc.com}
log local0. "\[URI::query $url command\]: [URI::query $url command]"
}
< RULE_INIT >: [URI::query http:// testURL/interface.asp?command=createaccount&referredby=http:// www.abc.com command]: createaccount
< RULE_INIT >: [URI::query http:// testURL/interface.asp?command=createaccount&referredby=http:www.abc.com command]: createaccount
Saving the value to a variable also returns the expected value for $command:
set url {http:// testURL/interface.asp?command=createaccount&referredby=http:// www.abc.com}
set command [URI::query $url command]
log local0. "\[URI::query $url command\]: $command"
set url {http:// testURL/interface.asp?command=createaccount&referredby=http:www.abc.com}
set command [URI::query $url command]
log local0. "\[URI::query $url command\]: $command"
(I added spaces after each http:// instance to prevent the forums from autolinking the URLs)Also, the query string should be case sensitive, so you shouldn't need to set it to lowercase. The path in IIS is not case sensitive, so if you're checking the file the request is made to you'd want to set just the path to lower case.
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
