A HTTP Client for the mbed networking libraries with HTTPFile for use with latest networking stack

Fork of HTTPClient by Donatien Garnier

An extension of the HTTPClient that adds HTTPFile. Currently on get is support and only works when getting binary files.

HTTPFile data("/local/firm.bin");
HTTPResult r = client.get("https://217.140.101.20/media/uploads/ollie8/firm.bin", &data);
if (r == HTTP_OK) {
                            
}

Files at this revision

API Documentation at this revision

Comitter:
ollie8
Date:
Tue Dec 31 11:06:57 2013 +0000
Parent:
17:5cfbfcdf660a
Child:
19:bc765a7fd8f2
Commit message:
Removed debug depenency

Changed in this revision

data/HTTPFile.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/data/HTTPFile.cpp	Mon Dec 30 13:49:56 2013 +0000
+++ b/data/HTTPFile.cpp	Tue Dec 31 11:06:57 2013 +0000
@@ -1,6 +1,4 @@
 #include "HTTPFile.h"
-#define DEBUG
-#include "hl_debug.h"
 
 HTTPFile::HTTPFile(char* filename) {
     file = fopen(filename, "w");    
@@ -29,7 +27,7 @@
 }
 
 void HTTPFile::setDataType(const char* type) {
-    INFO("data type = %s", type);    
+
 }
 
 void HTTPFile::setIsChunked(bool chunked) {