Forum Discussion
find an dreplace XML Value with irule
when HTTP_REQUEST {
if { [HTTP::host] contains "dev.integration.services.7-5.identifythebest.com" } {
HTTP::class disable
WAM::disable
STREAM::disable
if {[HTTP::header content-type] starts_with "text/xml"}{
log local0. "_xml_scrubber2"
HTTP::collect [HTTP::header Content-Length]
}
}
}
when HTTP_REQUEST_DATA {
set TaleoSSN [findstr [HTTP::payload] "\"SSN\">" 0 "<"]
log local0. "SSN Value is $TaleoSSN onespace after SSN"
}
the resulting log is "SSN">555-55-5555
How can I replace this with "SSN">-- regardless of the format of the ssn?
Recent Discussions
Related Content
* 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