I am sending a message to a web api call every xx seconds. I could not get it to work at all until I changed the header from HTTP 1.1 which is what I was using to HTTP 1.0. Then, it started working. Why would this affect things where I could not post and now I can?
This is what it was when it wasn't working:
client.println("POST /BoxLevel/api/BoxMeasurement HTTP/1.1");
And the change that fixed it:
client.println("POST /BoxLevel/api/BoxMeasurement HTTP/1.0");