Eliminated unessecary logic when defining chunk size

Dependencies:   CyaSSL

Dependents:   ECE_4180_Lab_4 IoT_Security_WIFI ESP8266_HTTP_HelloWorld ESP8266_ws_hw ... more

Fork of HTTPClient-SSL by Doug Anson

Revision:
36:debaeb6006a7
Parent:
29:2d96cc752d19
Child:
50:a18a06b000f3
diff -r 16f0a44cc53e -r debaeb6006a7 HTTPClient.h
--- a/HTTPClient.h	Fri Sep 12 20:36:21 2014 +0000
+++ b/HTTPClient.h	Wed Sep 17 21:36:14 2014 +0000
@@ -60,6 +60,13 @@
     ~HTTPClient();
 
     /**
+    Provides a OAUTH2 authentification feature 
+    Pass NULL pointer to switch back to no authentication
+    @param token OAUTH2 token
+    */
+    HTTPResult oauthToken(const char* token); // OAUTH2 Token Authentification
+    
+    /**
     Provides a basic authentification feature (Base64 encoded username and password)
     Pass two NULL pointers to switch back to no authentication
     @param user username to use for authentication, must remain valid durlng the whole HTTP session
@@ -142,6 +149,7 @@
     HTTPResult parseURL(const char* url, char* scheme, size_t maxSchemeLen, char* host, size_t maxHostLen, uint16_t* port, char* path, size_t maxPathLen); //Parse URL
     void cyassl_free(void) ;
     HTTPResult bAuth(void) ;
+    HTTPResult tokenAuth(void) ;
     HTTPResult readHeader(void) ;
     
     //Parameters
@@ -150,6 +158,7 @@
 
     const char* m_basicAuthUser;
     const char* m_basicAuthPassword;
+    const char* m_oauthToken;
     int m_httpResponseCode;
 
     const char * header ;