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.

Files at this revision

API Documentation at this revision

Comitter:
sarahmarshy
Date:
Fri Jun 05 21:48:15 2015 +0000
Parent:
47:8a6098f41d15
Child:
49:a564fc323921
Commit message:
Eliminated unnessecary logic when defnining chunk size

Changed in this revision

HTTPClient.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/HTTPClient.cpp	Sat Dec 20 02:59:19 2014 +0000
+++ b/HTTPClient.cpp	Fri Jun 05 21:48:15 2015 +0000
@@ -69,16 +69,6 @@
     #define MAX_HEADER_KEY_LENGTH   40
     #define HEADER_SCANF_FORMAT     "%40[^:]: %4096[^\r\n]" /* must align with BIG_MEMORY_CHUNK */ 
     #define REDIRECT_SCANF_FORMAT   "%40[^:]: %4096[^\r\n]" /* must align with BIG_MEMORY_CHUNK */
-#elif defined (TARGET_C027)
-    // default smaller buffers
-    #define CHUNK_SIZE              256
-    #define SEND_BUF_SIZE           1100
-    #define MAX_URL_HOSTNAME_LENGTH 128
-    #define MAX_URL_PATH_LENGTH     128
-    #define MAX_HEADER_VALUE_LENGTH 41
-    #define MAX_HEADER_KEY_LENGTH   40
-    #define HEADER_SCANF_FORMAT     "%40[^:]: %40[^\r\n]"   /* must align with MAX_HEADER_VALUE_LENGTH */ 
-    #define REDIRECT_SCANF_FORMAT   "%40[^:]: %128[^\r\n]"  /* must align with MAX_URL_PATH_LENGTH */
 #else
     // default smaller buffers
     #define CHUNK_SIZE              256