Forum Discussion
Kenny_Van_73892
Nimbostratus
Apr 23, 2008string tolower confirm
I got an irule but need someone to confirm this if [string tolower] only work on HTTP::host, not HTTP::uri
HTTP::redirect https://[string tolower [HTTP::host]][HTTP::uri]
I just want to convert any case to lower case within url.
Thanks.
- Nicolas_Menant
Employee
hi,[string tolower [HTTP::host][HTTP::uri]] If it doesn't work try this: set url [HTTP::host][HTTP::uri] HTTP::redirect https://[string tolower $url]
- Kenny_Van_73892
Nimbostratus
but I just want to convert to lower case with the HTTP::host only, not HTTP::uri and wonder if the above part of my irule work that way or not. - Kenny_Van_73892
Nimbostratus
nmenant, - Nicolas_Menant
Employee
Sorry for the misunderstanding. - Kenny_Van_73892
Nimbostratus
Thanks, I will find out tomorrow. - hoolio
Cirrostratus
Out of curiosity, why are you wanting to set the Host header to lower case? The Host header should be interpreted in a case insensitive manner by clients and servers.
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