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:   CyaSSL

Fork of HTTPClient-SSL by Doug Anson

Revision:
28:6fbaf49cc109
Parent:
16:1f743885e7de
Child:
29:2d96cc752d19
diff -r 5d4739eae63e -r 6fbaf49cc109 data/HTTPText.cpp
--- a/data/HTTPText.cpp	Mon Jul 21 11:29:00 2014 +0000
+++ b/data/HTTPText.cpp	Wed Aug 27 18:10:09 2014 +0000
@@ -55,7 +55,7 @@
 
 /*virtual*/ int HTTPText::getDataType(char* type, size_t maxTypeLen) //Internet media type for Content-Type header
 {
-  strncpy(type, "text/plain", maxTypeLen-1);
+  strncpy(type, "application/json", maxTypeLen-1);
   type[maxTypeLen-1] = '\0';
   return OK;
 }