Forum Discussion
stream profile encoding issue
i got an error when i add STREAM::encoding utf-8 into this iRule 01070151:3: Rule [/Common/korabia3] error: /Common/korabia3:5: error: [command is not valid in current event context (HTTP_RESPONSE)][STREAM::encoding utf-8]
can someone help me with this? where should i put STREAM::encoding utf-8 in this iRule?
when HTTP_RESPONSE {
STREAM::disable
if { [HTTP::header Content-Type] contains "text" } {
STREAM::encoding utf-8
STREAM::expression {@استطلاع@شس@}
STREAM::enable
}
}
- Leonardo_Souza
Cirrocumulus
Some commands are only available in some events. You may need to split those commands.
Normally the events the command can be used, are documented. But in this case, no information in the following page:
https://devcentral.f5.com/wiki/irules.stream__encoding.ashx
However, in my test did work in the STREAM_MATCHED event.
when STREAM_MATCHED { STREAM::encoding utf-8 }
Have a look in this page, as it has a good example:
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