Forum Discussion
Marc
Nimbostratus
Sep 09, 2016How to enable TCL 8.5.x for iRules on 12.x
Hi,
According to SOL36322151 TCL Version 8.5 seems to be supported since 12.x.
So how do I enable it for use in iRules?
If I try to use some of the new features (e.g. "dict" or "switch...
Stanislas_Piro2
Cumulonimbus
Sep 09, 2016Hi,
you can open a support case for this.
but in your code, I do not see why you need externalpath.
and, when using matchvar in tcl, the value is a list of match. the first match is :
[lindex $externalpath 1]
instead of matchvar, you can use:
regsub -nocase "/extpath/" [HTTP::path] $internalpath newuri
HTTP::uri $newuri
another thing. ".*$" does not make sense. it search any character from match string to the end of the uri.
you should set regex : {^(/extpath/)} instead of {^(/extpath/).*$}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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