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

Issue with DataMiner’s Automatic “User-Agent: DataMiner/1.0” Header in HTTP Requests

Solved283 views4th April 2025automatic header Connector header HTTP session
8
Enis Abaza [SLC] [DevOps Advocate]156 21st March 2025 0 Comments

I have a question regarding DataMiner’s default behavior of automatically adding two headers, specifically, User-Agent: DataMiner/1.0 and Connection: Keep-Alive (Header element | DataMiner Docs). Is there a way to remove the User-Agent header, as it is causing my query to fail?

I used the Generic HTTP Query driver (https://docs.dataminer.services/connector/doc/Generic_HTTP_Query.html) for testing, and as you can see in the image below, the addition of the User-Agent header causes the HTTP request to fail. In the GetAccessTokenWithDataMiner request shown in the picture, the response body is empty, while the GetAccessToken request returns a response body containing the access token.

Is there any workaround or alternative solution to prevent DataMiner from sending the header that is causing issues in my use-case?

What have I tried?
1. I sent the same request as GetAccessTokenWithDataMinerHeader from the same machine via Bruno, and it didn't fail.

Request:
POST https://...
Content-Type: application/x-www-form-urlencoded
User-Agent: DataMiner/1.0
data "grant_type=client_credentials&client_id=myClientId&client_secret=myClientSecret"

Response:
< 200 OK
< server: nginx
< date: Fri, 21 Mar 2025 16:44:20 GMT
< content-type: application/json
< content-length: 941
< connection: keep-alive
< strict-transport-security: max-age=31536000; includeSubDomains
...

2. Testing via Command Prompt with cURL from the same machine, and it didn't fail:

Request:
curl -X POST "https://..." \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "User-Agent: DataMiner/1.0" \
-d "grant_type=client_credentials&client_id=myClientId&client_secret=myClientSecret"

Response:
{
"token_type": "Bearer",
"access_token": "...",
...
}

3. Overriding the Header in Generic HTTP Query:
I tried sending the same request as GetAccessTokenWithDataMinerHeader and overriding the User-Agent header with multiple different strings. This resulted in a 498 Generic Client Error. The Generic HTTP Query doesn't allow empty strings as value of the headers.

4. Overriding the Header with Empty Values:
I also attempted to override the header in the protocol with multiple values including empty strings, but this resulted in a 403 Forbidden response.

Note: In the captured Wireshark session of the driver I am working on (not the Generic HTTP Query Tool), the GetAccessToken query returned a status of 403 Forbidden, while the response body included the message:
"Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect."

Enis Abaza [SLC] [DevOps Advocate] Selected answer as best 4th April 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Bram Devlaminck [SLC] [DevOps Advocate]177 Posted 4th April 2025 0 Comments

Hi,

To make sure that other people are aware:

An internal investigation was done behind the scenes as part of a related task, and it turned out the issue was caused by a proxy configuration, not the User-Agent header or DataMiner.

Enis Abaza [SLC] [DevOps Advocate] Selected answer as best 4th April 2025
You are viewing 1 out of 1 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

Recent questions

Alarm Dashboard PDF/CSV Export 1 Answer | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 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 (108) Correlation (68) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (139) driver (65) DVE (55) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (151) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) services (51) 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