Forum Discussion

Spela_317265's avatar
Spela_317265
Icon for Nimbostratus rankNimbostratus
Aug 29, 2018

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

 

  • You mean the name actually contains the dollar sign ($)?

    If so, you'd need to escape it:

    HTTP :: header insert "\$STH" '523'