Forum Discussion
Spela_317265
Aug 29, 2018Nimbostratus
iRule $variable problem
Hi,
I have a problem with writing an iRule ... In the HTTP header I should have a variable called "$STH", and then the problem arises... TCL treats the dollar symbol as a symbol for the variable. What can I do in this case?
when HTTP_REQUEST {
HTTP :: header insert "$STH" '523' }
Best regards, Spela
- Kevin_StewartEmployee
You mean the name actually contains the dollar sign ($)?
If so, you'd need to escape it:
HTTP :: header insert "\$STH" '523'
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