Forum Discussion
James_Yang_9981
Altostratus
Nov 14, 2007How can I using strings that contains "$"
HI
maybe a basic question about TCL. I have a special application that insert http header like below:
GET /snoop HTTP/1.1
Host: 122.138.13.143
Connection: Keep-Alive
$WSRA: 122.135.31.9
where the $WSRA is the http header name. but when I want using the header as:
set a [HTTP::header $WSRA]
or
set a [HTTP::header $$WSRA]
will returen an error that can't find variable WSRA.
How can I do?
TIA
- Brian_69413
Nimbostratus
perhaps "\$WSRA" will work? - hoolio
Cirrostratus
Curly braces should prevent expansion of the $text into a variable. I think this should work: - James_Yang_9981
Altostratus
\$WSRA workes!
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