HTML using "HTTP/1.1 200 OK\r\n" appears to disable meta refresh

Thread Starter

xtal

Joined Oct 21, 2008
13
Enable the HTTP/1.1 200 OK\r\n" and refresh stops working...
using ESP8266 Arduino 1.6.5 SDK 1.5.0
RFH = 15 seconds etc
I trying to send a standard responce. Any ideas appreciated....

Code:
String Header()  { 
  String h1 = ""; //"HTTP/1.1 200 OK\r\n";
  //h1 += "Content-Type: text/html\r\n";
  h1 += "<head>\n";
  h1 += "<meta http-equiv='refresh' content=";  h1 += RFH; h1 += ">\n";                    // Page refresh Time 
  //h1 += "<meta http-equiv='content-type' content='text/html; charset=UTF-8'>\n";
  h1 += "</head>\r\n\r\n"; 
  h1 += "<!DOCTYPE HTML>\n";
  h1 += "<html lang='en-US'>\n"; 
  h1 += "<body>\n"; 
  return h1;     }
 
Top