Forum Discussion
devrick0_22143
Feb 18, 2010Nimbostratus
uri query question
I am new to irules and hoped someone could lend a hand. The idea behind the irule I am trying to write up is that when a request comes in, the irule pulls out a certain name=value pair and then route...
spark_86682
Feb 22, 2010Historic F5 Account
This is a bug (CR137465). The problem is not that URI::query is doing a regex match, it's that it's essentially doing an "ends with" match, instead of the correct exact match.
There's a decent workaround; a bit of a hack, but nowhere near as slow as doing a loop.
Make the first param start with a "&" to make it like the others
set uri [string replace [HTTP::uri] 0 0 "?&"]
Note the "&" in front of paramname!
set value [URI::query $uri ¶mname]
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