Forum Discussion
johnie_44525
Oct 07, 2011Nimbostratus
how to mantain iRule HTTP::query case sensitivity
I am trying to resolve a case sensitivity issue with my iRule.
currently, the iRule parses a URL and forwards the URI to the matching site.
here the problem:
- if th...
Oct 07, 2011
It's the line "HTTP::uri $hostremoved" that's rewriting the URI to your lowercase version.
With that said, I'm a little confused on your iRule. You are setting rawquery to the QueryString portion of the URI (ie. /foo/bar?querystring -> querystring).
You are then mainuplating that and then resetting the URI of the request to the manipulated querystring and omitting the previous "path" portion of the URI. I guess I'd have to understand how the app was working, but thought I'd point that out.
For the answer to your question, if you wish to maintain case, you'll have to do something with that original string tolower but then you'll have to have all possible cases in the data group you are matching on. If you do need support mixed case in your lookup parameters, you'll likely have to lowercase the string, find where the match is in the string, and then replace that range of characters in the original URI.
-Joe
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