Hi, I’m using plugin VaRest to send Http request-response to my Java Web Server, and I found if the VaRest Send Chinese String, the content length in Http header will be inconsistent with Message Body in Http.
For Example : I send message as attached
, the Content-Length in Http Header is 140, but what I got is only 134.
My Java Server Socket Reader’s Charsets is “UTF-8”, the code is below:
_reader = new BufferedReader(new InputStreamReader(_socket.getInputStream(), StandardCharsets.UTF_8));