Http error code -11 (negativ 11) from a postrequest sent from a Arduino board wi

I have a Arduino board with a ESP8266 module sending a post request with data (in json format) to a homepage (server) - the server with the homepage records the data in a database.

The first 3 or 4 times the ESP8266 is sending the postrequest - I get Http Error code -11. At the end, I get the code 201. (about 20 seconds between every postrequest)

I can't find info about a error code -11. Hoping for help.

Thanx in advance.

I have a Arduino board with a ESP8266 module sending a post request with data (in json format) to a homepage

Nonsense. You can send data to a server. The server can serve up a web page. You can NOT send data to a web page.

I can't find info about a error code -11. Hoping for help.

I looked at all the code in your post, and the libraries you linked. There was no error code -11, so you must be mistaken.

Hi
Thanks for your you answer.

If you see here - the http status code is201, look it up here List of HTTP status codes - Wikipedia

But I can't find a code 11 or -11.

I have to send the postrequest 3 or 4 times in a row before I get the statuscode 201.

Hoping for you answer.

Found the answer.

There is of course no HTTP error code -11. The -11 is error code is 411. I fixed the issue after error code 411 and now it is working. (used a lot of time on that s.... -11)

2 Likes