Can HTTP-Push Connection Be Established with an Unsecured API (No Certificates/Keys)? #2031
Replies: 2 comments 3 replies
-
Hi.
That is no problem .. I however highly doubt that |
Beta Was this translation helpful? Give feedback.
-
Hi Thomas, Thank you for answering. Apologies for multiple posting. I have tried creating a docker image of this script and deployed in an ec2 server where ditto exists. Then also the connection was misconfigured for me. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I am trying to establish an HTTP-push connection to an API that does not require any form of certificate-based authentication (i.e., no client certificates or keys). The API is unsecured and only requires basic setup without OAuth, TLS certificates, or HMAC.
Is it possible to create a Ditto HTTP-push connection without providing certificates or keys? If so, are there any specific configuration steps I should follow?
Here’s an example of what I want to achieve:
No SSL certificates or client authentication.
Only need to push data to a basic HTTP endpoint.
example connection Json tried:
{
`from flask import Flask, request, jsonify
app = Flask(name)
@app.route('/logdata', methods=['POST'])
def log_data():
data = request.json
print(f"Received data: {data}") # Logs the data received from the request
return jsonify({"status": "success", "message": "Data logged successfully"}), 200
if name == 'main':
app.run(debug=True, port=443)
`
I would appreciate any guidance or examples on how to configure this kind of HTTP-push connection.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions