GetRawBody for custom encoding

Hi, another program through curl makes a request to the web service, I get the request body with the GetRawBody () function, but the data is in the “windows-1251” encoding, so the function returns the request body as I need.
The question - how can I get the request body in a specific encoding?

Thank you in advance!

You can access the binary HTTP Input Stream from IRequest.InputStream, see info on Reading directly from the Request Stream for how to skip deserialization and inject the Request InputStream into your Request DTO or how to buffer the request to allow re-reading the Request body.

1 Like