Forum Discussion
JaZy
Cirrus
Sep 27, 2024Keep encoding when request is handled by irule
I have custom irule to check data in payload. I noticed issue when non-latin characters are detected, for example Japan characters. In this case seems that byte array is not read correctly (2 bytes ...
JaZy
Cirrus
Oct 16, 2024Is there any way how to avoid this and keep origin string at the end? I tried to add binary scan to more places but result is still same:
catch {
if { $UrlEdit } {
set editpayload [HTTP::payload]
#binary scan $editpayload [HTTP::payload]
#HTTP::payload replace 0 [HTTP::header "Content-Length"] $editpayload
log local0. "DEBUG: myapp: edit page detected with payload: $editpayload"
binary scan c* $editpayload
binary scan c* throwawayvariable
binary scan $editpayload @0
HTTP::payload replace 0 $content_length $editpayload
log local0. "DEBUG: myapp: payload after binary scan: $editpayload"
HTTP::release
}
}
}
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