Forum Discussion
Greg_Carder_105
Nimbostratus
Dec 19, 2006Stream Profile - Sample?
I'm trying to do a search and replace in the response body.
I understand that a stream profile is the recommended way to do this. At least as long as the content is less than 4 MB (apparently some known issue when larger than that).
In my stream profile I have defined the target as:
@abc@xyz@123@456@
abc -> xyz and 123 -> 456
I have also created a http profile which has "rechunk" enabled so that the content length is updated after the replacements are made.
My problem is that the replacements seem to be inconsistent. Some content will be replaced and in other places it does not seem to work.
I do also have an iRule defined for this virtual server. It does some work to do some replaces on the incoming URL and the outgoing location. That part seems to work ok. I don’t do anything in the iRule related to the stream.
I have seen some examples where it seems that a stream is defined within an iRule but it seems like I should just be able to use the stream profile.
Questions:
1) Can anyone give me advice on what might be wrong? Is just defining the replaces in the stream target correct?
2) Does the stream operate on all content that is returned through the virtual server? Any known issues?
3) I was also wonder if the stream profile searches through a binary file that is written back to the browser? (i.e. A binary write of an excel file for example).
4) Is a stream profile replace case sensitive? Any way to make it case insensitive?
5) Is there a good stream profile reference that has examples? I have not been able to find one.
This is all on a HTTPS connection.
Thanks for any help!
Greg
- Deb_Allen_18Historic F5 AccountHi Greg -
- Greg_Carder_105
Nimbostratus
Thanks! - Deb_Allen_18Historic F5 AccountGreat!
- Greg_Carder_105
Nimbostratus
Sorry, having one more issue with the replacement string in the Stream Profile. - Photo_G_84660
Nimbostratus
Hi Greg,
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