Forum Discussion
lardyboy_lardyb
Nimbostratus
Apr 27, 2005BEA Weblogic and specific failover using iRules
Can anybody out there help me???????
I need to be able to query a string in the HTTP header to determine the persistamce to a server, and it's corresponding backup (v9.0.4)
...
JRahm
Admin
Apr 27, 2005Here's how you can pull out the variables:
when HTTP_REQUEST {
set cookie_contents [ findstr [HTTP::uri] "JSESSIONID" 11 ";"]
set jsessionid_values [split $cookie_contents "!"]
set server1 [lindex $jsessionid_values 2]
set port1 [lindex $jsessionid_values 3]
set server2 [lindex $jsessionid_values 6]
set port2 [lindex $jsessionid_values 7]
}
You'll still need a class to match the $server1 and $server2 names to IP addresses.
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