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
    • 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
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Unable to send GET Request with content in json format

Solved1.39K views21st October 2021Content GET Request HTTP JSON Body session
2
Pedro Carmo [SLC]20 20th October 2021 0 Comments

Hi,

I’ve been developing an HTTP driver where I need to build an HTTP GET request that provides a parameter named ‘liveId’.

According to the API documentation, that lived needs to be an array of IDs, as shown in the figure below:

The API documentation also mentions there are 2 ways of sending query data on a request:

  • one using <request_url>?<query_parameter>=<parameter_value>
  • another using <request_url> only, with a JSON body “{“<query_parameter>”:”<parameter_value>”}

According to DataMiner Dev Library, a GET request will always send the data inside <Data> as a query parameter and never as a request body:

I’ve tried multiple formats with postman to see if I can send the request with “liveId” as a query parameter, but I always get a Timeout.

The ONLY way I found it to work was with the JSON body, but that’s not something I can do in DataMiner.

Therefore, I would like to know whether there is a workaround that I can use, besides sending the raw HTTP request through a serial connection defined in the protocol?

If there isn’t really a workaround, what would be the standardized way of proceeding?

Do I use a Serial Connection and implement the HTTP standard myself or should I use a C# library to perform this specific request directly in the SLScripting?

Best Regards,

Pedro Carmo [SLC] Selected answer as best 21st October 2021

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
3
Pedro Debevere [SLC] [DevOps Enabler]1.80K Posted 21st October 2021 1 Comment

The documentation states “array of strings”. The example uses single quotes, did you try with double quotes?

Pedro Carmo [SLC] Selected answer as best 21st October 2021
Pedro Carmo [SLC] commented 21st October 2021

It works if we use double quotes.
But note that it only works if we remove the Content-Type and Content-Length, which makes sense, but I was forgetting to remove those.

0
Michiel Vanthuyne [SLC] [DevOps Enabler]4.16K Posted 21st October 2021 1 Comment

Have you tried using a POST command instead? Typical usage is to use GET for URL-only requests and POST for requests containing a body.

Pedro Carmo [SLC] Posted new comment 21st October 2021
Pedro Carmo [SLC] commented 21st October 2021

I get status code ‘404 Not Found’ when sending as a POST request instead. It really needs to be a GET request

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