Thanks @surepic I did try something like that, but then I guess I'm running into the problem that the message I try to send is too big.
I added something like this:
String html = "HTTP/1.1 200 OKrn";
html.concat("Connection: close\r\n");
html.concat("rn");
html.concat("");
html.concat("
");
html.concat(random(100));
html.concat("
html.concat("\r\n\r\n");
And then send the string via an AT+CIPSEND command. But if I do this nothing happens when I try to access it via a browser.
The string is probably already too big to send in one go.
Also, I'm using html.length() to get the length of the string. I probably shouldn't be using String but my C is a little rusty
regarding @PaulRB request for the schematic it's nothing complicated, I just hook the ESP01 adapter like this:
VCC to the 5V (the adapter handles the power down to 3V)
GND to arduino ground
and RX, TX to the pins as indicated in the .ino
The thing works because I get all commands to respond OK, only run into trouble when I try to send a longer HTML page.