Forum Discussion

npmaslow_68104's avatar
npmaslow_68104
Historic F5 Account
Jun 25, 2009

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:

 

 

when HTTP_RESPONSE {

 

if { [HTTP::header Content-Type] starts_with "text/" }{

 

STREAM::expression

 

"@http:\u002f\u002fstuff.corp.net@https:\\u002f\\u002f

 

stuff.corp.net@"

 

STREAM::enable

 

log local0. "Streaming enabled for [HTTP::host]"

 

} else {

 

STREAM::disable

 

log local0. "Streaming NOT enabled for [HTTP::host]"

 

}

 

}

 

 

It works just fine for standard HTTP http to https stream translations, however when faced with a URL within a comment, it does not work, for example:

 

 

 

 

Are escaped text parts of an HTTP stream 'valid' to a stream profile? Thanks in advance for your thoughts.

17 Replies