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:
35:d9e2d1c96b75
Parent:
34:3556275bebf3
Child:
46:ac12edc84261
--- a/data/HTTPFile.cpp	Sun Mar 08 17:50:52 2015 +0000
+++ b/data/HTTPFile.cpp	Thu Aug 06 11:11:31 2015 +0000
@@ -41,7 +41,7 @@
     if (file) {
         written = fwrite(buf, 1, len, file);   
         INFO("  writ:%d, ftell: %d", written, ftell(file)); 
-        if ((!m_chunked && (ftell(file) >= m_len)) || (m_chunked && !written)) {
+        if ((!m_chunked && ((size_t)ftell(file) >= m_len)) || (m_chunked && !written)) {
             INFO("closing");
             close();
         }