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:
32:d9db238bb8a3
Parent:
31:0675a342e45c
Child:
33:b663a5bab72d
--- a/HTTPClient.cpp	Wed Aug 27 21:19:58 2014 +0000
+++ b/HTTPClient.cpp	Thu Aug 28 00:07:09 2014 +0000
@@ -57,9 +57,9 @@
 
 static  TCPSocketConnection m_sock;
 #define CHUNK_SIZE    256
-#define SEND_BUF_SIZE 512
+#define SEND_BUF_SIZE 1024
 static char send_buf[SEND_BUF_SIZE] ;
-static char *send_buf_p ;
+static char *send_buf_p = NULL;
 
 static int SocketReceive(CYASSL* ssl, char *buf, int sz, void *ctx)
 {