GDP group 24 node core

Dependencies:   EthernetInterface SDFileSystem mbed-rtos mbed snail MbedJSONValue

Revision:
1:27b35752c5d0
Child:
2:1cbb20dd1733
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/http.h	Tue Nov 18 18:28:52 2014 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include "EthernetInterface.h"
+#include <string>
+
+#define DEBUG
+
+class http
+{
+    public:
+        string get(string address, int port, string url, int replyTimeout = 20);
+        string post(string address, int port, string url, string jsonPayload, int replyTimeout = 20);
+        string parse(string httpReply);
+        
+        http();
+    
+    private:
+        EthernetInterface eth;
+        string receiveFromSock(TCPSocketConnection sock, int replyTimeout);
+};
\ No newline at end of file