Forum Discussion
Brad_Otlin
May 08, 2013Ret. Employee
Reference an iRule variable in an HTML iFile response
I have a sorry page iRule that serves an html sorry page if no servers are left in the pool and serves another page if a 404 or 5xx is encountered. The 404/5xx portion of the irule tries each server...
- May 08, 2013I think the subst Tcl command is closest to what you want:
HTTP::respond 200 content [subst -nocommands -nobackslashes [ifile get error_html]]
Very clean, and much safer than using eval.
What_Lies_Bene1
Cirrostratus
May 08, 2013Hey Brad, I'm pretty sure there isn't a way to do this. Could you not directly serve some HTML that includes (and will expand) the variables and then pull the iFiles in using include statements or something similar?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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