Forum Discussion
Can an LTM traffic policy include the user's querystring in a redirect action?
- Nov 22, 2019
Finally found some documentation that answers this question. It IS possible to use variables, etc, in an LTM Traffic Policy. It's called TCL Command Substitution. The specifics are discussed in this document.
In this example, the following should go in the redirect field:
tcl:/querytest2.html\?[HTTP::query]
Having that "tcl:" at the beginning tells the traffic policy to treat what follows as a TCL string to be evaluated, and at that point you can use TCL commands, particularly those that involve simple reading from pre-created variables, such as this one for the HTTP query string.
Finally found some documentation that answers this question. It IS possible to use variables, etc, in an LTM Traffic Policy. It's called TCL Command Substitution. The specifics are discussed in this document.
In this example, the following should go in the redirect field:
tcl:/querytest2.html\?[HTTP::query]
Having that "tcl:" at the beginning tells the traffic policy to treat what follows as a TCL string to be evaluated, and at that point you can use TCL commands, particularly those that involve simple reading from pre-created variables, such as this one for the HTTP query string.
Recent Discussions
Related Content
* 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