Forum Discussion
Will_Petersen_9
Nimbostratus
Aug 29, 2006XML Redirect via iRule
Trying to determine how I can post an XML document to the client if both of the servers fail. In our case when the client sends a request we respond back with an XML document containing a url link. ...
Will_Petersen_9
Nimbostratus
Aug 31, 2006I got this to work just using when HTTP_REQUEST but when I added the if statement it didn't work. It should be checking whether a node is up and if it is down provide my XML page. Both nodes in the pool referenced are down as I took them down to test
when HTTP_REQUEST {
if { [LB::status pool $pool_mip_test member $192.168.26.88 $80] eq "down" }
{HTTP::respond 200 content {
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
http://www.f5.com
}}
}
Thanks,
Will
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