Forum Discussion

Algebraic_Mirror's avatar
Algebraic_Mirror
Icon for Cirrostratus rankCirrostratus
Nov 22, 2019
Solved

Can an LTM traffic policy include the user's querystring in a redirect action?

Does anyone know if an LTM traffic policy (version 13.1) can include the user's original querystring in any redirect that it does?   For example, my simple traffic policy has a rule that looks f...
  • Algebraic_Mirror's avatar
    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.