Forum Discussion
Adam_T_7105
Nimbostratus
Sep 28, 2018Using Stream Profile to Replace HTML code with double quotes
Hi Everyone, I am trying to use a stream profile to remove a block of text from a HTTP response, specifically, the text i'm trying to match looks like:
The problem I am running into is that I can't seem to get this to work with the double quote character. I've tried delimiting all the quotes with \ already, and changing them for their hex codes \x22, but nothing seems to work. Anyone have any ideas?
This is the code I'm using:
when RULE_INIT {
set static::search ""
set static::replace ""
}
when HTTP_RESPONSE {
STREAM::expression @${static::search}@${static::replace}@
STREAM::enable
}
- Stanislas_Piro2
Cumulonimbus
Try this code
set static::search {}
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