Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Kanban workshop
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

API Response with Brotli compression in Connector

786 views27th May 2025API Brotli compression HTTP protocol
2
Nick Chirumbolo [DevOps Advocate]779 24th October 2024 4 Comments

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!

Tom Waterbley [SLC] [DevOps Catalyst] Answered question 27th May 2025
Marieke Goethals [SLC] [DevOps Catalyst] commented 28th January 2025

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?

Nick Chirumbolo [DevOps Advocate] commented 29th January 2025

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.

Marieke Goethals [SLC] [DevOps Catalyst] commented 29th January 2025

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

Nick Chirumbolo [DevOps Advocate] commented 29th January 2025

It's not a high priority, but it would be helpful if this could be looked into.

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Tom Waterbley [SLC] [DevOps Catalyst]8.90K Posted 27th May 2025 1 Comment

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>

Nick Chirumbolo [DevOps Advocate] Posted new comment 27th May 2025
Nick Chirumbolo [DevOps Advocate] commented 27th May 2025

Already tried this, unfortunately this endpoint doesn't support other compressions.

You are viewing 1 out of 2 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin