Forum Discussion
Yann-Arzel_9990
Nimbostratus
Nov 26, 2013Variable issue with iRule generated by IAPP
Hello,
I try to use an IAPP for setting up an iRule but I did not managed it when a variable is set on the iRule
Code :
proc create_iRule { irule_name } {
set irule_buffer [stri...
PeteWhite
Employee
Nov 26, 2013have you tried changing the delimiter type to single quotes?
eg
proc create_iRule { irule_name } { set irule_buffer [string trim '{ when HTTP_REQUEST { set var 0 if { [string tolower [HTTP::path]] contains "test" } { set var 1 } } when HTTP_RESPONSE { if { $var == 1 } { HTTP::header insert "Connection" "Close" } unset var } }']
If not, it may be because you haven't escaped the marks at the end of test : contains \"test" }
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