Yesterday i upgraded the ESP8266 version from 2.3.0 to 2.4.0-rc1, after that, i encountered some problems when opening larger HTML files (3939 bytes) on my phone.
I've tested it on different phones, some encounter no problems, others do.
I installed 3 browsers > Chrome , Firefox, Opera on my phone no one worked. i experienced with it almost all night

i also tried to first send a header and after that the content, but also this didn't work.
when sending some short data e.g. TEST to the browser, this does appear; but the large text doesn't.
First i thought it was a HTML problem, so i sended it as TEXT/PLAIN; this also didn't work,.
all the browsers on different phones were sometimes waiting for data; and did'nt respond on the server.client().stop() command.
other times, they did'nt receive any data and closes the connection.
(of all the times i tested, they never displayed the page).
(the OTA part did work correctly, it seems a problem in the server.send command.)
(I am sure that the page's didn't load out of the cache)
I tried it on 2 Wemos D1 boards (1 old model and 1 new rev) with the same result.
after reinstalling v2.3.0 the pages were loaded correctly on every device/browser,(so i don't think the problem is phone related)
i searched but couldn't find any post from someone with similar problems.
can someone help me to figure out the problem??
Regards,
Reinald
(this was the code i was testing on)
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ArduinoOTA.h>
#include <ESP8266WebServer.h>
const char* ssid = "Gajenixan";
const char* password = "the mirror has also a backside";
ESP8266WebServer server(80);
const char* www_username = "admin";
const char* www_password = "1234";
void setup() {
Serial.begin(115200);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
if(WiFi.waitForConnectResult() != WL_CONNECTED) {
Serial.println("WiFi Connect Failed! Rebooting...");
delay(1000);
ESP.restart();
}
ArduinoOTA.begin();
server.on("/", [](){
if(!server.authenticate(www_username, www_password))
return server.requestAuthentication();
si();
// server.send(200, "text/plain", "Login OK");
});
server.begin();
Serial.print("Open http://");
Serial.print(WiFi.localIP());
Serial.println("/ in your browser to see it working");
}
void si() {
String d = "<HTML><HEAD><TITLE>testproj</TITLE></HEAD><BODY><script>document.body.style.zoom='250%'; function fn_submit(txtValue){MyTextBox = document.getElementById('txt_FORM');MyTextBox.value = txtValue;document.form1.submit();}</script><TABLE BORDER = 0><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=1&O=-35'>Spotjes Schuur</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=1&O=-37'>WCD Wasmachine</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=1&O=-39'>Buitenlamp</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=1&O=-43'>TL Schuur</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=1&O=-23'>Lamp Logeerkamer</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=1&O=-25'>Lamp WC</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=1&O=-27'>TL Werkplaats</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=1&O=-29'>WCD Werkplaats</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=1&O=-31'>WCD PC Overloop</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=2&O=-23'>Televisie</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=2&O=-25'>Lamp Zitkamer</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=2&O=-27'>WCD Raam Voor</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=2&O=-29'>WCD Schoorsteen</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=2&O=-31'>Lamp Slaapkamer</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=2&O=-33'>WCD Radio</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=2&O=-35'>Lamp Overloop</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=2&O=-37'>Spotjes Hal</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=2&O=-39'>Lamp Douche</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=2&O=-47'>Tuin Achter Boven</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=2&O=-49'>Tuin Achter Onder</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=2&O=-51'>Tuin Voorzijde</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=3&O=-23'>Sta Lamp Kamer</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=3&O=-25'>Lamp Eettafel</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=3&O=-27'>Lamp Keuken</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=3&O=-29'>Afzuigkap</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=3&O=-37'>Magnetron</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=3&O=-39'>WCD Keuken L+R</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=3&O=-41'>WCD Keuken M</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=3&O=-43'>WCD Overloop</A></TD></TR><TR><TD><IMG SRC='/IMG/io_uit.png'></TD><TD><A HREF='/192234.asp?W=-1&R=3&O=-45'>Vaatwasser</A></TD></TR><TR><TD><IMG SRC='/IMG/door.png'></TD><TD><A HREF='/192234.asp?W=0&R=0&O=30'>Achterdeur</A></TD></TR></TABLE></BODY></HTML>";
server.send(200, "text/plain", d);
}
void loop() {
ArduinoOTA.handle();
server.handleClient();
}