Forum Discussion
Stream Profile ::: header / data manipulation
Can anyone , please help me understanding the how the below stream profile is working with irule .
I want to implement it in live environment , where BigIp LTM 10.2.X should rewrite location header in first response it receive from the server .
I found the below irule from dev site but facing trouble in understanding the function , how it is working .
when HTTP_REQUEST { tell server not to compress response HTTP::header remove Accept-Encoding
disable STREAM for request flow
STREAM::disable
} when HTTP_RESPONSE { catch and replace redirect headers if { [HTTP::header exists Location] } { HTTP::header replace Location [string map {"http://" "https://"} [HTTP::header Location]] }
only look at text data
if { [HTTP::header Content-Type] contains "text" } {
create a STREAM expression to replace any http:// with https://
STREAM::expression {@http://@https://@}
enable STREAM
STREAM::enable
}
}
1 Reply
- nitass
Employee
I want to implement it in live environment , where BigIp LTM 10.2.X should rewrite location header in first response it receive from the server .
with http profile, stream profile/irule does not rewrite http header. you may check HTTP::header replace Location command instead.
Rewrite HTTP Redirect Hostname
https://devcentral.f5.com/codeshare/rewrite-http-redirect-hostnameI found the below irule from dev site but facing trouble in understanding the function , how it is working .
anyway, if you would like, you may start from askf5.
sol8115: Overview of the Stream profile
https://support.f5.com/kb/en-us/solutions/public/8000/100/sol8115.html
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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