Forum Discussion
npmaslow_68104
Jun 25, 2009Historic F5 Account
Irule applied stream profile and URLs in comments - any thoughts?
This is more of a general TCL quesiton than an irule question, but it involves the selective application of the stream profile in an irule.
Here is the general form of the irule:
...
Reddy_Gurram_95
Nimbostratus
Feb 16, 2011This works for us...:
=========_BGN_=========
when HTTP_RESPONSE {
Disable the stream filter by default
STREAM::disable
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression {@http://www.example.com@https://www.example.com@}
Enable the stream filter for this response only
STREAM::enable
}
}
when STREAM_MATCHED {
log local0. "[IP::client_addr]:[TCP::local_port]: matched: [STREAM::match], replaced with: [string map {http:// https://} [STREAM::match]]"
STREAM::replace "[string map {http:// https://} [STREAM::match]]"
}
=========_END_=========
~/Reddy Gurram
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
