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
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • 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
    • Tutorials
    • 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
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • 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
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to: HTTP a POST / GET request

Solved771 views18th April 2024DataMiner Cube HTTP http connection
1
Ömer Eryaman [DevOps Advocate]476 17th April 2024 0 Comments

Hi,

I found this example in GitHub.

https://github.com/SkylineCommunications/SLC-C-Example_HTTP
after publishing and opening Dataminer Cube, I stuck during creating an element.

It's always asked for an IP-Address.

I wanted to execute the script to see how an HTTP-Connection works, but I don't know to run ?
Which IP-Address I need to put? Is there any list for default connections?

Thanks in advance!

Ömer Eryaman [DevOps Advocate] Selected answer as best 18th April 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Edib Šupić [SLC] [DevOps Catalyst]2.06K Posted 18th April 2024 3 Comments

Hello Omer,

IP address/host field refers to the IP of the device you want to poll, server is technically device as well, so in general when configuring HTTP you need to enter IP address of the device, you can also use URL. What this value will do is serve as domain name for url attribute values found in HTTP.Session.Connection.Request tag, meaning that url attribute value will get appended to you IP address value.

Now, in this specific example you can use Data Encoding page of the driver to query Wikipedia and because the url attribute is hard-coded it's irrelevant what you enter as IP address. For second part of the example you can set up your own machine to serve ProtocolSimulations/SLC SDF/HTTP/2.0.0.1/data.xml and then you can use localhost for IP address, in fact you can use localhost anyhow. I don't think it makes too much sense to setup your machine so I would advise you to use localhost as IP address and to play around with Data Encoding page. You should also make use of Stream Viewer to keep track of which request is being send and what is the response.

If you are interested in how HTTP works you should take a look at HTTP Element documentation and use HTTP tag in the protocol to see how it is implemented in practice. I would encourage you to try and play around, see if you can make requests to Google instead of Wiki, maybe you can change the connector so that IP address is taken in to account when sending a query via Data Encoding page.

Good luck and let me know if you need anything else,
Cheers

Ömer Eryaman [DevOps Advocate] Selected answer as best 18th April 2024
Ömer Eryaman [DevOps Advocate] commented 18th April 2024

Thanks for all this detailed information,

can u make an example ? Like if I have this URL:

https://operator.com/keycloak/auth/protocol/openid-connect/token (that’s the api call)

so in the HTTP session “Request verb=”GET” url=”keycloak/auth/protocol/openid-connect/token”>”

So the root “https://operator.com/” should be written in the Dataminercube ?

What if I write the full request in the session ? What address I need to write in the Dataminer Cube? (i can write random stuff just to avoid the error message?)
“Request verb=”GET” url=”https://operator.com/keycloak/auth/protocol/openid-connect/token”>” ?

And do you know any tool to check the requests they sent ?
Like, how can I see the request, and what get sent which data?
Thanks in advance

Edib Šupić [SLC] [DevOps Catalyst] commented 18th April 2024

“If the specified value for the url attribute does not contain “://”, then it is assumed that the provided value is a relative URL, and the URL will be constructed using the polling IP and port of the corresponding connection.” So you are correct in both cases. If you specify relative path, you need to provide valid domain in element wizard(page that you screenshoted), and if you provide absolute path, you can write anything in IP address/host field and it won’t matter(it will matter if you have other connections that don’t use absolute path). You can see how this works by entering random value in IP address/host field, and then opening Stream Viewer. For Connection 1 you will see your request url looks like “yourvalue/http://anysssasw/ProtocolSimulations/SLC” (url gets cut short because of the space in it, this is quite an old example and needs a bit of love) and Connection 2 will just be “https://en.wikipedia.org?”. Connection 1 will trigger every 20s until the element times out, and Connection 2 can be triggered from Data Encoding page of the connector. You can use stream viewer(linked in comment above) to track requests and responses, not everything will be visible because of the use of HTTPS and because query parameter value is sent in the body of the request, if you use HTTP you should be able to see full request using network capture tool like Wireshark.

Ömer Eryaman [DevOps Advocate] commented 18th April 2024

Thank you, it works for me now
I close this Question

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

Recent questions

How to implement bearer token refresh? 0 Answers | 0 Votes
Web Applications exception in Cube due to invalid certificate 0 Answers | 0 Votes
Redundancy Groups and Alarming – Duplicate Alarms 0 Answers | 0 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (109) Correlation (69) Correlation rule (52) Cube (151) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
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