Forum Discussion
Bartek
Cirrus
Jun 10, 2020Why do I get a Parse error for the iRule
The syntax is accepted by the F5: when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "liaison" } {
IP::idle_timeout 600
log local0. "Timeout set to [IP::idle_timeout]"
}
}...
cjunior
Nacreous
Jun 10, 2020Hello, this error message does not appear to be from this code that looks correct.
Did you write in some time like this way (as appear in error message) ?
if { [string tolower [HTTP::uri] contains "liaison" }] {
If I do this wrong code, I get this similar error:
01070151:3: Rule [/Common/irule_devcentral] error: /Common/irule_devcentral:2: error: [parse error: PARSE missingBracket 27 {missing close-bracket}][{ [string tolower [HTTP::uri] contains "liaison" }]
Regards
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