Forum Discussion
hooleylist
Dec 19, 2011Cirrostratus
You could use subst twice to get the variable values and not have to escape characters in the static content:
when RULE_INIT {
set static::responseContent [subst {
unescaped text
"hi"
{text}
\${static::site-identDDE}
}]
}
when HTTP_REQUEST {
set static::site-identDDE "ddewcsp"
HTTP::respond 200 content [subst $static::responseContent]
}
< Connection: Keep-Alive
< Content-Length: 45
unescaped text
"hi"
{text}
ddewcsp
Aaron