ltm rule command STREAM disableΒΆ

iRule(1)		      BIG-IP TMSH Manual		      iRule(1)



STREAM::disable
       Disables the stream filter for a connection.

SYNOPSIS
       STREAM::disable

DESCRIPTION
       Disables the stream filter for this connection.

       Syntax

       STREAM::disable

	    * Disables the stream filter for this connection or until
	      STREAM::enable is called.

	  Configuration requirements:
	  1. To perform the response data replacement, the default, unconfigured
	  stream profile must be configured on the virtual server
	  2. For all versions up to 9.4.0, you must force BIG-IP to use chunking
	  and therefore remove the response content length header. This can be
	  done by applying a custom HTTP profile to the virtual server with
	  Response Chunking set to "Rechunk". (See SOL6422 for details.)

RETURN VALUE
VALID DURING
EXAMPLES
	See the STREAM::expression page for additional examples.
	To check HTTP responses with a Content-Type that contains text, and
	replace http:// with https://:

	when HTTP_REQUEST {
	   # Explicitly disable the stream profile for each request so it doesn't stay
	   #   enabled for subsequent HTTP requests on the same TCP connection.
	   STREAM::disable
	}
	when HTTP_RESPONSE {
	   STREAM::disable
	   # Apply stream profile against text responses from the application
	   if { [HTTP::header value Content-Type] contains "text" }{

	      # Look for http:// and replace it with https://
	      STREAM::expression {@http://@https://@}

	      # Enable the stream profile
	      STREAM::enable
	   }
	}

	# This section only logs matches, and should be removed before using the rule in production.
	when STREAM_MATCHED {
	    log local0. "Matched: [STREAM::match]"
	}

	If you only want to replace some http:// links with https://, you can
	specify a more complex regular expression in the 'find' portion of the
	STREAM::expression. For example, to match all http:// links except
	http://schemas.microsoft.com/intellisense/ie5, you can use a negative
	look behind in the regex:

	http:(?!//schemas\.microsoft\.com/intellisense/ie5)

HINTS
SEE ALSO
       STREAM::expression

CHANGE LOG
       @BIGIP-9.2.0 --First introduced the command.



BIG-IP				  2017-01-31			      iRule(1)