Forum Discussion
load balance using http methods
Hello Ahmed,
i guess there are some extra spaces between "}" and "elseif".
when HTTP_REQUEST {
if { ([string toupper [HTTP::method]] equals "POST" ) or ([string toupper [HTTP::method]] equals "PATCH" ) or ([string toupper [HTTP::method]] equals "DELETE" ) } {
node XXXXXXX XX
} elseif { [string toupper [HTTP::method]] equals "GET" } {
pool XXXXXX
} else {
HTTP::respond 405 content {
<html>
<head><title>HTTP Request denied</title></head>
<body>Your HTTP requests are being throttled.</body>
</html>
}
}
}
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