Forum Discussion
Maurice_G_
Aug 18, 2011Employee
find an dreplace XML Value with irule
I am runnin 10.2.1.
I an having trouble with an iRule I am writing trying to parse the SSN Value out of the following POST http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://w...
Maurice_G_
Aug 18, 2011Employee
Thanks Kevin
I am now using the HTTP_REQUEST_DATA event but my TaleoSSn value is still null.
Any ideas?
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_scrubber"
HTTP::collect [HTTP::header Content-Length]
}
}
}
when HTTP_REQUEST_DATA {
set TaleoSSN [findstr [HTTP::payload] "" 0 "<"]
log local0. "SSN Value is $TaleoSSN"
STREAM::expression @{\d{3}-\d{2}-\d{4}}@@
regex for SSN STREAM::expression {\d{3}-\d{2}-\d{4}}
works STREAM::expression "@SSN@@"
STREAM::enable
}
log local0. "scrubber"
when STREAM_MATCHED {log local0. "Stream Filter Matched: [STREAM::match]"}
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