I'm currently using a product with a custom Protocol which has updated some of their API endpoints. Although the new endpoints are decoding properly in Postman requests, they are now showing up as random characters in my connector logs even before running through the JSON parser. I've traced it to the fact that they are using Brotli instead of GZip to compress the response body and I am seeing what looks like raw compressed data. Is there an easy way to get the decompressed content?
Also to note, I can't even take the response body and decode it myself since it is not capturing the entire body. In an example request, the expected response is a large JSON object (10.95 KB according to Postman), but when calling GetParameter I am getting a string of length 24.
Here is the XML for this particular request:
.<HTTP>
. <Session id="104" name="Get Data" loginMethod="credentials" userName="100" password="101">
. <Connection id="1">
. <Request verb="GET" url="/data"/>
. <Response statusCode="304">
. <Content pid="404"/>
. </Response>
. </Connection>
. </Session>.</HTTP>
Parameter 404 contains: [ýEýq@ 2NGQ&iýTýaý 8ý
Thanks!


This was never resolved. We just skipped including information from this endpoint and are requesting that the vendor honors the accept-encoding header in a future release.

Do you still want us to look into this further, or is this no longer needed?

It's not a high priority, but it would be helpful if this could be looked into.
Hi Nick,
What you could also try is setting the Accept-Encoding: gzip header to request the device to respond using gzip encoding instead of Brotli.
<HTTP>
<Session id="104" name="Get Data" loginMethod="credentials" userName="100" password="101">
<Connection id="1">
<Request verb="GET" url="/data">
<Headers>
<Header key="Accept-Encoding">gzip</Header>
</Headers>
</Request>
<Response statusCode="304">
<Content pid="404"/>
</Response>
</Connection>
</Session>
</HTTP>

Already tried this, unfortunately this endpoint doesn't support other compressions.
I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the answer (using the ✓ icon) to indicate that the question is resolved?