Forum Discussion
Stanislas_Piro2
Mar 02, 2017Cumulonimbus
Hi,
you can set a variable to define you want the stream to apply:
when HTTP_REQUEST {
STREAM::disable
if { [HTTP::host] eq "alfons-pp.domain.com" } {
set stream_string {@http://@https://@}
HTTP::header remove "Accept-Encoding"
}
}
when HTTP_RESPONSE {
if { ([HTTP::header value Content-Type] contains "text") and [info exists stream_string]} {
STREAM::expression $stream_string
STREAM::enable
}
}