Forum Discussion
Sami_126154
Dec 20, 2013Nimbostratus
Modifying http response on iRule corrupts scandinavian characters, how to prevent?
One of our backend applications is returning incorrect hostname for some references on content which leads to timeouts and several minute loadtimes. We've tried to correct the issue by replacing the ...
Sami_126154
Dec 27, 2013Nimbostratus
So far all the articles which mention using stream profile basically instruct to active stream profile on virtual server and have an iRule for the actual content manipulation.
Is there some other way or something wrong with our approach?
Our current stream modification rule looks something like this:
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
set targethost [string tolower [HTTP::host]]
}
when HTTP_RESPONSE {
switch $targethost {
publish.mycompany.com {
set wronghost "https://www2.mycompany.com"
set correcthost "https://publish.mycompany.com"
}
...
}
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression "@$wronghost@$correcthost@"
STREAM::enable
}
}
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