server.println("HTTP-Version: HTTP/1.0 200 OK");
server.println("Content-Length: 8");
server.println("Content-Type: text/html");
server.print("\r\n");
server.println(buf); // this is the data received excl the {}
just sending the received data back from the spark, I get:
…
HTTP-Version: HTTP/1.0 200 OK
Content-Length: 8
Content-Type: text/html
12345678
curl: (28) Operation timed out after 5229 milliseconds with 116 out of -1 bytes received
…
using the most basic header, sending 8 characters, they come through including the empty line after header… what am I doing wrong? It looks as if the header is not recognized as header, just data (may be)