Forum Discussion
insert script 2 point and failed
when HTTP_REQUEST { Disable the stream filter by default STREAM::disable } when HTTP_RESPONSE { Check for text responses if {[HTTP::header value Content-Type] contains "text"} { Replace closing tag with $js STREAM::expression {@@ @ @}
STREAM::enable
}}
but error
2 Replies
- Stanislas_Piro2
Cumulonimbus
Hi,
- to insert script, search
in stream expression - except if adrum.js is on another server, use relative URL (/adrum.js) instead of full URL (http://10.6.86.215:8080/adrum.js)
you can use the following link as an example of how to insert a script in HTML response:
https://devcentral.f5.com/questions/ltm-apm-session-expired-detection
- to insert script, search
Hi omyam001,
you have to escape every
character of your search/replace strings with a leading"\$[]{}
character to allow the TCL intepreter to distinct between TCL commands and plain-text. This will allow you to save your iRule.\E.g.:
...will become...
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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