Forum Discussion
East_Coast_1151
Nimbostratus
Aug 20, 2013HTTP:payload replace - problem with French characters
We are using an irule with "HTTP::payload replace" and "regsub" to modify responses coming from a Microsoft web server.
After replacement, all French characters (like "é", "à") get incorrectly e...
East_Coast_1151
Nimbostratus
Aug 21, 2013Here is the formatted iRule.
The log file says : - Operation not supported (line 1) invoked from within "STREAM::disable"
What is wrong?
when HTTP_REQUEST {
STREAM::disable
if { [HTTP::uri] contains "/wcp/session.ashx" } {
HTTP::header remove "Accept-Encoding"
if { [HTTP::version] eq "1.1" } {
if { [HTTP::header is_keepalive] } {
HTTP::header replace "Connection" "Keep-Alive"
}
HTTP::version "1.0"
}
}
}
when HTTP_RESPONSE {
if {[HTTP::header "Content-Type"] contains "application/x-javascript"} {
STREAM::expression {@flag:\"true@flag:\"false@}
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