client.print(String("POST ") + url + " HTTP/1.1\r\n" +
"Host: " + host + "\r\n" +
"Content-Type: application/json\r\n" +
"User-Agent: BuildFailureDetectorESP8266\r\n" +
"Content-Length: 0\r\n" +
"X-AIO-Key: "MY_KEY"\r\n" +
"Connection: close\r\n\r\n");
I have been using the above to POST my data. I am not sure where do I need to put the Body so as to store my value.
I tried to put it as below bu did not work.
"Connection: close\r\n\r\n{\"value\" :\"ON\"}");
I get the below error when I make an HTTP request.
"error": "request failed - failed to save data to feed 51jj. param is missing or the value is empty: datum"