Forum Discussion
nyleb_66113
Nimbostratus
Jan 04, 2007XML Reporting Element URI Redirect
I am looking for an iRule that will replace a URI inside the XML portion of an HTTP packet that a webserver is sending to the client. I tried using a stream profile to accomplish this, but support ha...
nyleb_66113
Nimbostratus
Jan 26, 2007Thanks for the clarification on the stream profile syntax. I confirmed my config matched the syntax that you provided. I did get the EA key installed and I do now have an XML profile option however it throws an error at me when I click on the create button.
I took a stab at modifying the cool iRule that scrubs SSN's.
Here's what I came up with:
when HTTP_RESPONSE_DATA {
Find the text pvineprod01 (target)
set target [regexp -all -inline -indices {pvineprod01} [HTTP::payload]]
replace the text pvineprod01 with blink.brinker.com
foreach target_idx $target {
set target_start [lindex $target_idx 0]
set target_len [expr {[lindex $target_idx 1] - $target_start + 1}]
HTTP::payload replace $target_start $target_len "blink.brinker.com"
}
}
I think the switches on the "set target" line are not correct. I visited Sourceforge to view the documentation, but I'm in a little to deep to figure this out. If there is an easier way to accomplish this, please let me know. All I really need to do is swap out the text in a server's response packet.
Thank you very much for your help,
NB
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
