Forum Discussion
Mark_58017
Nimbostratus
Jan 09, 2013iRule to check header length
Hi,
I have a customer that wishes to send larger queries to a different pool. He's noticed the difference between queries can be decided by header length. He wants an iRule that picks up another...
hoolio
Cirrostratus
Jan 09, 2013If the client sets a content-length header in the request you could check that with [HTTP::header Content-Length]:
when HTTP_REQUEST {
Check if client is sending more than 500 bytes
if { [HTTP::header Content-Length] > 500 }{
Select big_pool
pool big_pool
} else {
pool my_default_pool
}
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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