Single instance HTTP Server using new Ethernet Interface. Blocking mode only; this improved stability, but the HTTP server must be started from a separate thread.

Dependents:   SmartLight

Fork of HTTPServer by Henry Leinen

Revision:
17:d7186c696729
Parent:
16:cc3f5c53d0d5
--- a/HTTPRequestHandler.cpp	Sat Aug 17 16:17:55 2013 +0000
+++ b/HTTPRequestHandler.cpp	Thu May 15 16:09:51 2014 +0000
@@ -116,7 +116,7 @@
 
 void HTTPRequestHandler::handleError(int errorCode, HTTPHeaders* header)
 {
-    INFO("Handling error !");
+    INFO("Handling error!");
     tcp.set_blocking(false, 1500);
     sprintf(buffer,"HTTP/1.1 %d Error\r\n", errorCode);
     tcp.send(buffer, strlen(buffer));
@@ -147,7 +147,7 @@
     tcp.send(buffer, strlen(buffer));
     sprintf(buffer, "Content-Length: %ld\r\n", nLen);    //  Add 2 chars for the terminating CR+LF
     tcp.send(buffer, strlen(buffer));
-    INFO("Sending standard headers !");
+    INFO("Sending standard headers!");
     if (header == NULL) {
         tcp.send_all((char*)hdrStandard, strlen(hdrStandard));
     }
@@ -160,7 +160,7 @@
         }
         tcp.send_all("\r\n", 2);
     }
-    INFO("Proceeding !");
+    INFO("Proceeding!");
     //  other content must be sent using the 'processResponse' function
 }
 
@@ -172,5 +172,5 @@
 
 void HTTPRequestHandler::endResponse()
 {
-    INFO("Ending Response !");
+    INFO("Ending Response!");
 }