Forum Discussion
Guillermo_Ferna
Nimbostratus
Jun 15, 2015Read xml and redirect traffic
Hi, somebody can help me, I need read the value of a error in xml code, and with this information makes a traffic redirection, there is a sample of the code:
soapenv:Body>
error="0"><tx nbreq=1>...
Lee_Sutcliffe
Nacreous
Jun 16, 2015This may do the trick.. but not sure if it's exactly what you're after:
when HTTP_REQUEST {
set xml_error "error=\"0\""
}
when HTTP_RESPONSE {
if { ([HTTP::header value Content-Type] contains "text/html" )&& [info exists xml_error] } {
<< - re-direct - >>
}
}
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