Forum Discussion
LB decisions matching the headers
- Jun 02, 2016
Hi,
I would recommend the modified irule below, changed second if by elseif. Otherwise, If you match the first if you also match the else and you will have a tcl error and a tcp reset on thz client side :
when HTTP_REQUEST { if { [class match [HTTP::header "online.protocol.remote.contenttype"] equals header_value_1] } { pool_1 } elseif { [class match [HTTP::header "online.protocol.remote.contenttype"] equals header_value_2] } { pool_2 } else { pool_3 } }
Hi Yann,
One of the header looks something like this.
POST /online/vendorlink/protocol/3 HTTP/1.1
Content-Type: application/x-onl-pki-smime
online.protocol.remote.contenttype: TEST/Rumba/mountainisred@4
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.7.0_25
Host: host1.abc.com
Accept: text/html, image/gif, image/jpeg, *; q=.2, /; q=.2
Connection: keep-alive
Content-Length: 5836
thanks
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