Forum Discussion
elito_26780
Nimbostratus
Mar 19, 2007Evaluating only first HTTP request in HTTP 1.1
I need to evaluate only first request in HTTP 1.1 packet and than select the appropriate pool. When I use HTTP_REQUEST, the rule evaluates every HTTP request it sees in HTTP 1.1 packet and then chooses wrong pool, from the application perspective.
The problem with the application is that some data is available only in the first HTTP GET, but not in following GET requests within same HTTP 1.1 packet.
Another issue is performance. Our typical HTTP 1.1 packet contains 5-7 HTTP requests, so evaluating 5-7 requests, instead of 1 request, hits the performance.
- Deb_Allen_18Historic F5 AccountHi Eli -
- elito_26780
Nimbostratus
No luck. - Deb_Allen_18Historic F5 AccountAssuming that there are several requests in a single Keep-Alive connection (rather than in a single packet), you could disable the HTTP_REQUEST event after the first request is seen, then that pool will be used for the life of the connection:
when HTTP_REQUEST { if { [HTTP::uri] contains ".gif"} { pool servers2 } else { pool servers1 } event disable }
- elito_26780
Nimbostratus
Thanks! Cool! That what i was looking for. Just missed the "event" command in reference guide. - Deb_Allen_18Historic F5 AccountNo problem!
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