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.

Files at this revision

API Documentation at this revision

Comitter:
donatien
Date:
Thu Apr 26 14:17:23 2012 +0000
Parent:
0:2ccb9960a044
Child:
2:75f5b83238af
Commit message:

Changed in this revision

HTTPClient.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/HTTPClient.cpp	Thu Apr 26 13:04:56 2012 +0000
+++ b/HTTPClient.cpp	Thu Apr 26 14:17:23 2012 +0000
@@ -154,6 +154,9 @@
     return NET_CONN;
   }
 
+  size_t recvContentLength = 0;
+  bool recvChunked = false;
+
   //Send all headers
 
   //Send default headers
@@ -271,8 +274,6 @@
   memmove(buf, &buf[crlfPos+2], trfLen - (crlfPos + 2));
   trfLen -= (crlfPos + 2);
 
-  size_t recvContentLength = 0;
-  bool recvChunked = false;
   //Now get headers
   while( true )
   {
@@ -625,4 +626,3 @@
 
   return OK;
 }
-