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.
Dependents: SalesforceInterface df-2014-heroku-thermostat-k64f SalesforceInterface
Fork of HTTPClient by
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.
Diff: HTTPClient.h
- Revision:
- 50:a18a06b000f3
- Parent:
- 36:debaeb6006a7
- Child:
- 51:3bdf57f7fd60
diff -r a564fc323921 -r a18a06b000f3 HTTPClient.h --- a/HTTPClient.h Fri Jun 05 22:10:21 2015 +0000 +++ b/HTTPClient.h Tue Jun 09 16:26:02 2015 +0000 @@ -30,6 +30,7 @@ #include "IHTTPData.h" #include "mbed.h" +#include "TCPSocketConnection.h" ///HTTP client results enum HTTPResult { @@ -58,6 +59,8 @@ ///Instantiate the HTTP client HTTPClient(); ~HTTPClient(); + + /** Provides a OAUTH2 authentification feature @@ -155,12 +158,13 @@ //Parameters int m_timeout; - const char* m_basicAuthUser; const char* m_basicAuthPassword; const char* m_oauthToken; int m_httpResponseCode; + TCPSocketConnection m_sock; + const char * header ; char * redirect_url ; int redirect_url_size ;