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:
47:677677ac6443
Parent:
44:0e3b0849b2c7
Child:
49:c5abb7ae070b
--- a/HTTPClient.cpp	Sun Oct 01 18:07:05 2017 +0000
+++ b/HTTPClient.cpp	Wed Jan 09 12:38:31 2019 +0000
@@ -398,13 +398,13 @@
 
             buf[crlfPos] = '\0';
 
-            char key[32];
+            char key[61];
             char value[MAXLEN_VALUE];
 
             key[31] = '\0';
             value[MAXLEN_VALUE - 1] = '\0';
 
-            int n = sscanf(buf, "%31[^:]: %160[^\r\n]", key, value);
+            int n = sscanf(buf, "%60[^:]: %160[^\r\n]", key, value);
             if ( n == 2 ) {
                 DBG("Read header : %s: %s", key, value);
                 if( !strcmp(key, "Content-Length") ) {