Forum Discussion
Fiko_29923
Nimbostratus
Jun 17, 2011insert javascript to html pages using irules
Hi, I want to ask is it possible to insert javascript to existing web pages?
e.g. I have web pages which already running and use it as pool member for load balancing. Using iRules, I want to chec...
Fiko_29923
Nimbostratus
Jun 27, 2011Hi, I have some concern regarding connection which enter the BIG-IP and trigger the irule
I'm using variable for the url and in response event will check the url and insert javascript.
The problem is when more than one connection occurs at the same time. How the variable will be set?
I know there will be time difference even only 0.0001 or so but in this case what if both connection enter virtual server at the same time. Does it will effect the variable set or not?
i modified the irule into this
when HTTP_REQUEST {
set ::url [HTTP::host][HTTP::uri]
}
when HTTP_RESPONSE {
if { $::url equals "192.168.0.202/index.jsp" } {
STREAM::expression "change page content here";
STREAM::enable;
}
}
when STREAM_MATCHED {
STREAM::disable
}
or is there any other way to check the url in response without using variables?
thanks
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