Fork of the working HTTPClient adaptation using CyaSSL. This version adds a derivation of HTTPText called HTTPJson to emit JSON text properly. Additionally, the URL parser has defines that permit longer URLs to be utilized.

Dependencies:   mbedTLSLibrary

Dependents:   SalesforceInterface df-2014-heroku-thermostat-k64f SalesforceInterface

Fork of HTTPClient by wolf SSL

This is a fork of the working HTTPS/SSL library that contains two extensions:

- HTTPJson - a derivation of HTTPText for emitting JSON strings specifically. No JSON parsing/checking is accomplished - HTTPJson simply sets the right Content-Type for HTTP(S).

- Expanded internal buffers for longer URLs. This is set in HTTPClient.cpp and is tunable.

Revision:
1:b70c37cf73ca
Parent:
0:2ccb9960a044
Child:
2:75f5b83238af
--- a/HTTPClient.cpp	Thu Apr 26 13:04:56 2012 +0000
+++ b/HTTPClient.cpp	Thu Apr 26 14:17:23 2012 +0000
@@ -154,6 +154,9 @@
     return NET_CONN;
   }
 
+  size_t recvContentLength = 0;
+  bool recvChunked = false;
+
   //Send all headers
 
   //Send default headers
@@ -271,8 +274,6 @@
   memmove(buf, &buf[crlfPos+2], trfLen - (crlfPos + 2));
   trfLen -= (crlfPos + 2);
 
-  size_t recvContentLength = 0;
-  bool recvChunked = false;
   //Now get headers
   while( true )
   {
@@ -625,4 +626,3 @@
 
   return OK;
 }
-