mbed.org implementation of the abstract SmartREST library for the Cumulocity Platform SmartREST protocol.

Dependents:   MbedSmartRestMain MbedSmartRestMain

Revision:
12:6634f9814235
Parent:
11:e1bee9a77652
--- a/MbedClient.cpp	Sat Nov 15 11:21:01 2014 +0100
+++ b/MbedClient.cpp	Sat Nov 15 11:37:14 2014 +0100
@@ -152,7 +152,7 @@
         (_state != STATE_SENT_DATA))
         return internalError();
     
-    MBCL_DBG("Ending request. request.");
+    MBCL_DBG("Ending request.");
 
     if (_state != STATE_SENT_DATA) {
         // send end of headers
@@ -232,7 +232,7 @@
     MBCL_DBG("Sending request header.");
     if ((!send("POST ")) ||
         (!send(uri)) ||
-        (!send("HTTP/1.0\r\n")) ||
+        (!send(" HTTP/1.0\r\n")) ||
         (!send("Host: ")) ||
         (!send(_host)) ||
         (!send("\r\n")))