Forum Discussion
Aaron_6309
Jul 02, 2012Nimbostratus
iRule with special characters
I'm trying to create a redirect rule for the root folder educação after my TLD. I've tried the following iRules but neither seem to take elseif { [string tolower...
MiLK_MaN
Jul 03, 2012Nimbostratus
It seems TCL converts "/educação" to "/educação" if used when storing the string in a variable or comparing in an if statement.
I got around the issue by doing this:
when HTTP_REQUEST {
log local0. "Path = [HTTP::path]"
if { [string compare "educação" [HTTP::path]] } {
log local0. "You win!"
}
HTTP::respond 200 Content "Cool" Connection "Close"
}
LTM log:
Jul 3 19:05:46 tmm info tmm[24581]: Rule /Common/Test4 : Path = /educação
Jul 3 19:05:46 tmm info tmm[24581]: Rule /Common/Test4 : You win!
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