Forum Discussion
irule syntax
I need someone to check my syntax. Thanks.
when HTTP_REQUEST { if { ( [string tolower [HTTP::path]] contains "spclaimproviderwebservice.https.svc" ) or ( [string tolower [HTTP::path]] contains "cellstorage.https.svc" { HTTP::path [string map {.https ""} [HTTP::path]] } } }
2 Replies
- ekaleido
Cirrus
when HTTP_REQUEST { if { [string tolower [HTTP::path]] contains "spclaimproviderwebservice.https.svc" or [string tolower [HTTP::path]] contains "cellstorage.https.svc" } { HTTP::path [string map {.https ""} [HTTP::path]] } } - Hectorm
Nimbostratus
when HTTP_REQUEST { if { ( [string tolower [HTTP::path]] contains "spclaimproviderwebservice.https.svc" ) or ( [string tolower [HTTP::path]] contains "cellstorage.https.svc")} { HTTP::path [string map {.https ""} [HTTP::path]] }
}
You were missing a )} after cellstorage.https.svc" and you had an extra } at the end
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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