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) {
                            
}
Revision:
16:1f743885e7de
Parent:
13:be61104f4e91
--- a/IHTTPData.h	Wed Aug 29 11:16:48 2012 +0000
+++ b/IHTTPData.h	Thu Aug 30 15:38:57 2012 +0000
@@ -29,6 +29,11 @@
 {
 protected:
   friend class HTTPClient;
+  
+  /** Reset stream to its beginning 
+   * Called by the HTTPClient on each new request
+   */
+  virtual void readReset() = 0;
 
   /** Read a piece of data to be transmitted
    * @param buf Pointer to the buffer on which to copy the data
@@ -60,6 +65,11 @@
 protected:
   friend class HTTPClient;
 
+  /** Reset stream to its beginning 
+   * Called by the HTTPClient on each new request
+   */
+  virtual void writeReset() = 0;
+
   /** Write a piece of data transmitted by the server
    * @param buf Pointer to the buffer from which to copy the data
    * @param len Length of the buffer