   }
 
   bool pathOK = checkPathAndGetParameters(sRequest, sParam); // get parameters from request, check path
-
   if (pathOK) // generate the html page
   {
     extractParams(sParam);

    retVal += "<tr><td>Remaining shots:</td><td>" + String(currentNShots) + "</td></tr>";
    currentExecMode = TIMELAPSE;
  }
  retVal += "</table>";
  retVal += "</BR>";
  retVal += "<FONT SIZE=-2>Camera trigger switches GPIO" + String(triggerPin) + ".<BR>";
  return retVal;
}


{
  sResp = "<html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p></body></html>";

  sHead = "HTTP/1.1 404 Not found\r\n"
          "Content-Length: " + String(sResp.length()) + "\r\n"
          "Content-Type: text/html\r\n"
          "Connection: close\r\n"
          "\r\n";
}

void generateOKHTML(String& sResp, String& sHead)
{
  sResp += "<FONT SIZE=-3>Andreas Niggemann " + String(versionMonth) + "/" + String(versionYear) + "<BR></body></html>";

  sHead = "HTTP/1.1 200 OK\r\n"
          "Content-Length: " + String(sResp.length()) + "\r\n"
          "Content-Type: text/html\r\n"
          "Connection: close\r\n"
          "\r\n";
}

String getRequest(WiFiClient webclient)
