Forum Discussion
Robert_Sherrard
Nimbostratus
Jun 03, 2006Valid iRule for SOAPAction?
I'm looking to direct traffic based on find SOAPAction in a header... if the SOAPAction contains getWMRM... would this work?
when HTTP_REQUEST {
if { [matchclass [HTTP::header SOAPAction] contains "getWMRM"] } {
pool place_pool_here
}
else {
pool place_pool_here
}
}
Rob
- Colin_Walker_12Historic F5 AccountAssuming that "SOAPAction" is a valid header in your HTTP request, you wouldn't even need the matchclass section.
if { [string tolower [HTTP::header SOAPAction] ] contains "getwmrm" } { pool stringFound_pool } else { pool NotFound_pool }
- Robert_Sherrard
Nimbostratus
ok thanks for the input... - Robert_Sherrard
Nimbostratus
One question... - Colin_Walker_12Historic F5 AccountThe string tolower command is just a variant of the string command, which is a TCL command that allows for matching/altering string patterns.
- Colin_Walker_12Historic F5 AccountOh, by the way, there's a great set of documentation for TCL in general over at sourceforge: Click here.
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