Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

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

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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

If so, you'd need to escape it:

HTTP :: header insert "\$STH" '523'
1
Comments on this Answer
Comment made 5 months ago by Spela 82

Thank you! that's exactly what I needed

0