Single instance HTTP Server using new Ethernet Interface with bug fix for URL arguments

Fork of HTTPServer by Henry Leinen

Revision:
9:c2a1462b9b71
Parent:
7:cb7fec1265b5
Child:
10:cbde7929db7f
--- a/HTTPRequestHandler.cpp	Sat Jun 01 17:47:45 2013 +0000
+++ b/HTTPRequestHandler.cpp	Sun Jun 02 00:33:56 2013 +0000
@@ -49,7 +49,7 @@
             
         default:
             INFO("Error in handleRequest, unhandled request type.");
-            err = 404;
+            err = HTTP_NotImplemented;
             break;
     }
     
@@ -65,7 +65,7 @@
 {
     INFO("Handling error !");
     tcp.set_blocking(true, 1500);
-    sprintf(buffer,"HTTP/1.1 %d Error\r\n", errorCode);
+    sprintf(buffer,"HTTP/1.0 %d Error\r\n", errorCode);
     tcp.send(buffer, strlen(buffer));
     sprintf(buffer, "Content-Length: %d\r\n", strlen(szErrorPage));
     tcp.send(buffer, strlen(buffer));
@@ -90,7 +90,7 @@
 {
     INFO("Starting response (%ld bytes in total)!", nLen);
     tcp.set_blocking(true, 1500);
-    sprintf(buffer, "HTTP/1.1 %d OK\r\n", returnCode);
+    sprintf(buffer, "HTTP/1.0 %d OK\r\n", returnCode);
     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));