Forum Discussion
Hasif_200464
Nimbostratus
May 07, 2019How to change http query conditionally
Hi Guys, I have scenario to redirect url where need to convert [HTTP::query] to upper case except a particular string.
For example
f5test.abc.com/redirect.asp?abcdnoconvertefgh --> f5test.abc.com/redirect.asp?ABCDnoconvertEFGH
Note that 'noconvert' is a constant string whereas rest part of [HTTP::query] can vary request to request
- Dario_Garrido
Noctilucent
Hello Hasif.
Try this ->
when HTTP_REQUEST { log local0. "BEFORE: [HTTP::query]" HTTP::query [string map {"NOCONVERT" "noconvert"} [string toupper [HTTP::query]]] log local0. "AFTER: [HTTP::query]" }
KR, Dario.
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