Forum Discussion
Thiyagu
May 22, 2024Cirrus
Need help with an iRule for HTTP Methods
Could you please review the below iRule and suggest? when HTTP_REQUEST { if { ( [HTTP::method] equals "PUT" ) } { switch -glob [string tolower [HTTP::uri]] { "/rws/api/v1/devices/*" -...
Thiyagu
May 22, 2024Cirrus
when HTTP_REQUEST {
if { ( [HTTP::method] equals "PUT" ) } {
switch -glob [string tolower [HTTP::uri]] {
"/x/*" -
"/y/*" {
pool PUT_X_Y
}
}
}
elseif
{ ( [HTTP::method] equals "POST" ) } {
switch -glob [string tolower [HTTP::uri]] {
"/x/*" {
pool POST
}
}
}
default {
pool POOL1
}
}
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