Hi there,
I try to connect to Home Assistant API, but it doesn´t work for me.
I try with CURL:
curl \ -H "Authorization: Bearer TOKEN" \ -H "Content-Type: application/json" \ http://IP_ADDRESS:8123/ENDPOINT
curl -X GET -H “Authorization: myBearerToken” -H “Content-Type: application/json” http://192.168.178.34:8123/api/
and I get the following message:
curl: (52) Empty reply from server
what I am doing wrong?
I activated the https with duckdns for access from outside from my network.
Is there a possibility to access without an Bearer Token? This token is too long for my requests.
I try the local command on my raspberry HA OS with terminal:
curl \
-H “Authorization: MyBearerToken” \
-H “Content-Type: application/json” http://localhost:8123/api/
and I get the same message on the terminal
Thank you.