Forum Discussion
Angelo
Nimbostratus
Oct 31, 2012Streaming Irule
Hi
I have a streaming profile with a i-rule to re-write content in a XML WSDL. but i reconfigured the VS for port 80 and 443 is there a way to disable the streaming for connections on po...
Kevin_Stewart
Employee
Oct 31, 2012I'd venture something as simple as capturing the local port:
when HTTP_REQUEST {
STREAM::disable
if { [TCP::local_port] != 80 } {
HTTP::header remove "Accept-Encoding"
}
}
when HTTP_RESPONSE {
if { [TCP::local_port != 80 and [HTTP::header value Content-Type] contains "text" }{
STREAM::expression {@http://uat.esf.mtn.co.za@https://uat.esf.mtn.co.za@}
STREAM::enable
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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