Forum Discussion
Julio_Vivero_48
Nimbostratus
Mar 23, 2006HTTP Payload replace - charset problem
Hi everyone,
I'm trying to use the HTTP payload replace irule that is available at this forum but i'm facing the following problem:
The web where i'm trying to use this irule is encoded with iso-8859-1 charset, but for some reason it seems that the i-rule changes the encoding of the http payload to utf-8, and hence the client browser does not display correctly some characters like accents, etc.
I've tried to use the encoding command from tcl to force a conversion to iso-8859-1 but (though there is not error message when I introduce it at the LTMs administration web) I get the following error message at the ltm log, when the irule is executed:
"TCL error: Rule response_change_https - invalid command name "encoding" while executing "encoding convertto iso-8859-1 $new_response"
Any idea would be of great help.
Thanks in advance.
Best regards,
Julio
- David_Slimovici
Nimbostratus
Hi, - Colin_Walker_12Historic F5 AccountHave you tried using the stream profile instead of the iRule?
- Deb_Allen_18Historic F5 AccountDon't forget that if you use the stream profile with different length source and target values, and your servers are sending data unchunked, you'll need to enable re-chunking on the HTTP profile, otherwise the Content-Length header will still contain the original (now incorrect) content length value (headers are sent before the stream replacement is performed)
- Tomasz_Radzisze
Nimbostratus
I have found similar problem. I am reading packet content with TCP::payload and then writing it to another packet using TCP::payload replace. The packet contains binary data (including a lot of zeros). After rewriting it is different and longer than original. In particular, it seems that byte 00 is changed to two bytes: C080. It damages my data. What can I do about it? Did the support solve this? - Deb_Allen_18Historic F5 AccountI've dug up a number of other posts on the same topic as well. Please post back with the version(s) you've tested on, and I'll escalate a consolidated case to Support.
- Tomasz_Radzisze
Nimbostratus
I am using BIG-IP 9.4.0 and I have already reported a support case regarding the problem with TCP::payload replace. The case number is C371366. I am waiting for solution now. - Deb_Allen_18Historic F5 AccountOK, great.
- Raymond_Feng_97Historic F5 AccountCR47762 created-- but the RFE seems not to be accept, workaround is to use
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