A HTTP Client for the mbed networking libraries with HTTPFile for use with latest networking stack
Fork of HTTPClient by
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) { }
Diff: data/HTTPFile.cpp
- Revision:
- 18:1448391bbc51
- Parent:
- 17:5cfbfcdf660a
- Child:
- 19:bc765a7fd8f2
--- 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) {