Forum Discussion
aniaz_161592
Nimbostratus
Sep 20, 2014Irule for different URL's to one URL
I have running with multiple url's as mentioned below under one VIP:
https://www.abc.com/abc/service/
https://www.abc.com/def/service/
https://www.abc.com/ghi/service/
https://www.abc.com/jkl/se...
Kevin_Stewart
Employee
Sep 23, 2014It is because, as Bhattman states, iRules (the string command in particular) honors the case of the input value.
TesT != tEst
For that reason, a function like [string tolower ] will "normalize" the data before performing evaluations.
[string tolower "TesT"] == "test"
You could also use [string toupper ]
[string toupper "TesT"] == "TEST"
In lieu of normalization, you'd have to evaluate every possible case variation that the user might submit.
$var = "Test?"
$var = "TEst?"
$var = "TESt?"
$var = "TEST?"
$var = "tEST?"
$var = "teST?"
...
This string normalization function will cost you a CPU cycle or two, but it certainly beats the alternative search of every possible user submitted combination.
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