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
    • Agility
      • Kanban workshop
      • Agile Fundamentals
    • 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
    • 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

User defined API – HTTP vs HTTPS

Solved875 views23rd February 2024User Defined APIs
3
Thijs Vanovenacker [SLC] [DevOps Advocate]2.21K 21st February 2024 0 Comments

Hi community,
I was playing around with the User Defined APIs, and noticed a weird behavior.
Initially I was sending my PUT-request via Postman over the standard HTTP interface using the cloud url of my DataMiner (<systemName>.on.dataminer.services/api/custom/<my-custom-endpoint>). The user defined API on DataMiner triggered and executed the script. "Yay! 🙌"

But I noticed that the context seemed to be wrong.  The "body" (requestData.RawBody) was showing an empty value, and the "request method" (requestData.RequestMethod) was always showing "Get" method instead of the actual "PUT".

After testing around some more, it turns out when I point postman to be using HTTPS instead, that now the method shows correctly that this is of type "PUT"  and also my request "body" can now be processed correctly in the script.  (This helped me to complete my use-case and have everything working now ✅)

Is this expected behavior that it only works in full when using HTTPS?
And if so, why is it then still triggering the user defined end-point in the script in the first place when I'm sending over HTTP?

Note that I'm using a cloud connected system. And the behavior is different if I target the User Defined API directly to the DMA IP (from within the same network)   VS  via using the Cloud URL (from outside of that network).

Via the direct IP:    HTTPS works.     HTTP request doesn't seem to give any reply.
Via the cloud URL:  HTTPS works.     HTTP triggers the User defined API, but with missing/wrong context...

let me know if you need more details. Thank you

Thijs Vanovenacker [SLC] [DevOps Advocate] Selected answer as best 23rd February 2024

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
3
Baptiste Pattyn [SLC] [DevOps Advocate]5.72K Posted 22nd February 2024 1 Comment

Hi Thijs

Happy that it is still working for you on HTTPS but it is indeed not expected that the request is sent to the DMA with the malformed body and method. The expected flow is to use HTTPS for all requests when going through dataminer.services.

I will do some investigations to understand what is happening with these requests.

Thijs Vanovenacker [SLC] [DevOps Advocate] Posted new comment 22nd February 2024
Thijs Vanovenacker [SLC] [DevOps Advocate] commented 22nd February 2024

Hi Baptiste, feel free to reach out in case you want me to show you my use-case. I can even provide you access on this system so you can play around yourself.

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