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...
William_Murphy1
Nimbostratus
Mar 21, 2007Hi all,
An update on this. Have tried the following to see if it works:
when HTTP_REQUEST {
set redirectPort [ getfield [HTTP::host] ":" 2]
binary scan [HTTP::payload] HexPayLoad
if { $redirectPort equals "8003" } {
pool MMF_pool_8003
log local0. "GET:3"
} elseif { $redirectPort equals "8004" }{
pool MMF_pool_8004
log local0. "GET:4"
} elseif { $HexPayLoad starts_with "8C80" } {
pool MMF_pool
log local0. "Post"
} else {
pool MMF_pool_8002
}
}
Irules editor accepts but getting errors in F5 logs.
Having trouble reading HexPayLoad.
Mar 21 17:09:55 tmm tmm[692]: 01220001:3: TCL error: Rule irule_poolMembers_PostsGets_separate - can't read "HexPayLoad": no such variable while executing "if { $redirectPort equals "8003" } { pool MMF_pool_8003 log local0. "GET:3" } elseif { $redirectPort equals "8004" }{ ..."
Any help would be appreciated.
Will
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
