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 has indicated that stream profiles do not(currently) work with XML content.
The URI that I need to replace it tucked in to the following location(based on a Sniffer capture):
HTTP
extensible Markup Language
http://wrongURI/Reports/ReportOutput
Could someone please give me an example of a basic iRule that would rewrite packets coming from the server with the correct URI?
Thank you for the help. Much appreciated!
- hoolio
Cirrostratus
HI, - nyleb_66113
Nimbostratus
Support just updated my case with this: - Deb_Allen_18Historic F5 AccountWhile the case update regarding new features in 9.4 is accurate, hoolio's original comment is even more correct: A simple iRule using the STREAM commands or the stream profile should do the trick, no XML profile or upgrade to 9.4 required.
- Deb_Allen_18Historic F5 AccountStream profile should work with an adjustment to your syntax.
Source: Target: @replace this@with this@ @and this@with this@@
Source: replace this Target: with this
- nyleb_66113
Nimbostratus
Thanks 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. - Dave_Wiley
Nimbostratus
We were able to resolve this issue. What we discovered was that the server had HTTP compression enabled which caused the XML data to be compressed as it passed through the LTM. We originally missed this because our friendly tcpdump tool, Ethereal, was automatically decompressing the HTTP data and displaying it. We modified the HTTP profile to remove the Accept-Encoding header and the STREAM profile began working. XML awareness was not required. - Colin_Walker_12Historic F5 Accounttest
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