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:
4:d065642c32cc
Parent:
3:d6224049b3bf
Child:
6:fe661fa9d18a
diff -r d6224049b3bf -r d065642c32cc HTTPRequestHandler.cpp
--- a/HTTPRequestHandler.cpp	Tue May 28 01:56:14 2013 +0000
+++ b/HTTPRequestHandler.cpp	Tue May 28 21:20:58 2013 +0000
@@ -35,13 +35,15 @@
             err = handleGetRequest();
             break;
             
-//        case HTTP_RT_POST:
-//            err = handlePostRequest();
-//            break;
+        case HTTP_RT_POST:
+            INFO("Dispatching POST request.");
+            err = handlePostRequest();
+            break;
             
-//        case HTTP_RT_PUT:
-//            err = handlePutRequest();
-//            break;
+        case HTTP_RT_PUT:
+            INFO("Dispatching PUT request.");
+            err = handlePutRequest();
+            break;
             
         default:
             INFO("Error in handleRequest, unhandled request type.");
@@ -117,4 +119,3 @@
     INFO("Ending Response !");
     tcp.send("\r\n", 2);
 }
-