Fixed custom headers and Basic authorization, added support for redirection, functional file download interface can be used for SW updates and more.

Dependents:   Sample_HTTPClient Sample_HTTPClient LWM2M_NanoService_Ethernet LWM2M_NanoService_Ethernet ... more

Fork of HTTPClient by Vincent Wochnik

More recent changes - added iCal processing.

Derivative of a derivative, however this one works when it comes to supplying Basic authorization to access a protected resource. Some additional changes to the debug interface to clean it up for consistency with many other components I have.

Revision:
38:2ef07232f65c
Parent:
37:74c1c4527f70
Child:
49:c5abb7ae070b
--- a/HTTPClient.h	Sat Dec 17 15:19:55 2016 +0000
+++ b/HTTPClient.h	Thu Dec 29 20:14:53 2016 +0000
@@ -60,6 +60,15 @@
     HTTPClient();
     ~HTTPClient();
 
+    /// Get the text form of the error number
+    /// 
+    /// Gets a pointer to a text message that described the result code.
+    ///
+    /// @param[in] res is the HTTPResult code to translate to text.
+    /// @returns a pointer to a text message.
+    ///
+    static const char * GetErrorMessage(HTTPResult res);
+
     /**
     Provides a basic authentification feature (Base64 encoded username and password)
     Pass two NULL pointers to switch back to no authentication