I'm trying to use https POST to deliver data payloads to Azure.
We've done a proof of concept using POSTMAN, and we're certain we've got the right method, correct headers on the request, etc.
Since we're authenticating to Azure using X509 certificates, we open the socket, configure the security tag, set TLS_PEER Veriify to required, set the TLS hostname, and then Send our request to Azure.
The message looks like this (redacted identifiable info)
POST /devices/xxxxxxx/messages/events?api-version=2019-10-01 HTTP/1.1
Content-Type: application/json
Host: some-iot-hub.azure-devices.net
Connection: keep-alive
Content-Length: 65
{"deviceId": "xxxx", "data": "1.0", "ts": "2020-04-16T20:58:32Z"}
This is sent, without error, and then we receive on that socket. I expect to get back something like this: