TCP Socket Hello World with Ethernet
Dependencies: EthernetInterface IAP mbed-rtos mbed
Fork of TCPSocket_HelloWorld by
Revision 16:bfcf5f6274a2, committed 2015-04-22
- Comitter:
- yihui
- Date:
- Wed Apr 22 13:38:58 2015 +0000
- Parent:
- 15:69e41cbbc8ac
- Child:
- 17:0d74817db362
- Commit message:
- update libraries, use httpbin.org as test server
Changed in this revision
--- a/EthernetInterface.lib Sun Sep 21 05:55:13 2014 +0000 +++ b/EthernetInterface.lib Wed Apr 22 13:38:58 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/EthernetInterface/#5887ae6c0c2c +http://mbed.org/users/mbed_official/code/EthernetInterface/#2fc406e2553f
--- 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];
--- a/mbed-rtos.lib Sun Sep 21 05:55:13 2014 +0000 +++ b/mbed-rtos.lib Wed Apr 22 13:38:58 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#631c0f1008c3 +http://mbed.org/users/mbed_official/code/mbed-rtos/#34292fba723c
--- a/mbed.bld Sun Sep 21 05:55:13 2014 +0000 +++ b/mbed.bld Wed Apr 22 13:38:58 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889 \ No newline at end of file