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

Discussion in 'Homework Help' started by xtal, Jan 18, 2016.

  1. xtal

    Thread Starter Member

    Oct 21, 2008
    13
    0
    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 (Text):
    1.  
    2. String Header()  {
    3.   String h1 = ""; //"HTTP/1.1 200 OK\r\n";
    4.   //h1 += "Content-Type: text/html\r\n";
    5.   h1 += "<head>\n";
    6.   h1 += "<meta http-equiv='refresh' content=";  h1 += RFH; h1 += ">\n";                    // Page refresh Time
    7.   //h1 += "<meta http-equiv='content-type' content='text/html; charset=UTF-8'>\n";
    8.   h1 += "</head>\r\n\r\n";
    9.   h1 += "<!DOCTYPE HTML>\n";
    10.   h1 += "<html lang='en-US'>\n";
    11.   h1 += "<body>\n";
    12.   return h1;     }
    13.  
     
Loading...