Adaptation of the HttpServer by user yueee_yt. This version has improved handling of the HTTP headers (**NOTE**: There are limitations with this implementation and it is not fully functional. Use it only as a starting point.)

Dependents:   DMSupport DMSupport DMSupport DMSupport

Fork of DM_HttpServer by EmbeddedArtists AB

Revision:
9:10b4d4075fbb
Parent:
8:5779cee2e94a
Child:
10:c1c8276af541
--- a/HTTPRequestHandler.cpp	Mon Dec 08 12:49:53 2014 +0000
+++ b/HTTPRequestHandler.cpp	Mon Jan 26 10:10:46 2015 +0100
@@ -86,7 +86,7 @@
 
 int HTTPRequestHandler::dataLen() const
 {
-    map<string,string>::iterator it;
+    map<string,string>::const_iterator it;
     it = m_reqHeaders.find("Content-Length");
     if( it == m_reqHeaders.end() ) {
         return 0;