Forum Discussion
William_Murphy1
Nimbostratus
Mar 21, 2007Mixing HTTP_REQUEST && HTTP_REQUEST_DATA
Hi All,
Looking for some help on this irule.I currently have the following irule:
when HTTP_REQUEST {
set redirectPort [ getfield [HTTP::host] ":" 2]
log local0. "port: $redirectPort"
if { $redirectPort equals "8003" } {
pool MMF_pool_8003
} elseif { $redirectPort equals "8004" } {
pool MMF_pool_8004
} else {
pool MMF_pool
}
}
The logical thinking in the above is:
Check HTTP Headers to get Host Port .According to this Host Port then the traffic is separated into different pools.
But i wish to put in an extra "else if" in the middle, that checks Http Data, checks first couple of bites and then assign a pool according to this.
Is this possible?
Regards,
William
- William_Murphy1
Nimbostratus
Hi all,
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