This builds on TCPSocket_HelloWorld and others to read an in-coming buffer and then build and send a buffer. Very much work in progress

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of TCPSocket_HelloWorld by mbed official

Files at this revision

API Documentation at this revision

Comitter:
emilmont
Date:
Fri Aug 10 09:41:51 2012 +0000
Parent:
10:8aeafea0e859
Child:
12:cce8fa67de18
Commit message:
Avoid sending null character in HTTP request; Update Ethernet and RTOS libraries to latest releases

Changed in this revision

EthernetInterface.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
--- a/EthernetInterface.lib	Wed Aug 01 13:32:17 2012 +0000
+++ b/EthernetInterface.lib	Fri Aug 10 09:41:51 2012 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/EthernetInterface/#0d9ae7845bfe
+http://mbed.org/users/mbed_official/code/EthernetInterface/#c9bb345dcc65
--- a/main.cpp	Wed Aug 01 13:32:17 2012 +0000
+++ b/main.cpp	Fri Aug 10 09:41:51 2012 +0000
@@ -11,7 +11,7 @@
     sock.connect("mbed.org", 80);
     
     char http_cmd[] = "GET /media/uploads/mbed_official/hello.txt HTTP/1.0\n\n";
-    sock.send_all(http_cmd, sizeof(http_cmd));
+    sock.send_all(http_cmd, sizeof(http_cmd)-1);
     
     char buffer[300];
     int ret;
--- a/mbed-rtos.lib	Wed Aug 01 13:32:17 2012 +0000
+++ b/mbed-rtos.lib	Fri Aug 10 09:41:51 2012 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#70bd33086f56
+http://mbed.org/users/mbed_official/code/mbed-rtos/#9654a71f5a90