The lib with which to make LPC1768 a simple HTTP server. This have not yet implemented. fopen() DOESN'T WORK after EthernetInterface::connect() is called as using mbed-os 5.4~. See also https://os.mbed.com/questions/80658/HardFault-occurs-when-fopen-is-called-af/ or https://github.com/ARMmbed/mbed-os/issues/6578 and https://github.com/ARMmbed/mbed-os/issues/6624

Fork of HTTP_SERVER by Akifumi Takahashi

Revision:
16:c3920b5b8572
Parent:
14:a16cdcd098d7
--- a/handlers/ResponseMessenger.cpp	Fri Mar 16 23:17:28 2018 +0000
+++ b/handlers/ResponseMessenger.cpp	Mon Mar 19 09:25:32 2018 +0000
@@ -108,7 +108,7 @@
     char* removedLineHead;
     char* removedLineEnd;
     int  buffer_size;
-    
+
     //  Look for the head of the line to want to remove
     removedLineHead = strstr(header_field_buffer, arg_field_name);
     if(removedLineHead == NULL) return -1;
@@ -116,10 +116,10 @@
     removedLineEnd = strstr(removedLineHead, "\r\n");
     removedLineEnd += 3; //pointing next line head or '\0' if the line of the last one.
     buffer_size = strlen(removedLineEnd);
-    
+
     for(int i = 0; i < buffer_size + 1; i++)
         removedLineHead[i] = removedLineEnd[i];
-    
+
     return 0;
 }
 
@@ -177,6 +177,8 @@
     //
     //  Body
     //
+    printf("(RM) file: %d\r\n"
+    "(RM) status code: %d\r\n", arg_file.arrival(), status_code);
     if (arg_file.arrival() && status_code == 200) {
         printf("(RM) [send]Body\r\n");
         do {