TCP Socket Hello World with Ethernet

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of TCPSocket_HelloWorld by mbed_example

Revision:
16:bfcf5f6274a2
Parent:
11:59dcefdda506
Child:
17:0d74817db362
--- a/main.cpp	Sun Sep 21 05:55:13 2014 +0000
+++ b/main.cpp	Wed Apr 22 13:38:58 2015 +0000
@@ -8,9 +8,9 @@
     printf("IP Address is %s\n", eth.getIPAddress());
     
     TCPSocketConnection sock;
-    sock.connect("mbed.org", 80);
+    sock.connect("httpbin.org", 80);
     
-    char http_cmd[] = "GET /media/uploads/mbed_official/hello.txt HTTP/1.0\n\n";
+    char http_cmd[] = "GET /get?helloworld HTTP/1.0\r\n\r\n";
     sock.send_all(http_cmd, sizeof(http_cmd)-1);
     
     char buffer[300];