Donatien Garnier
/
NetHttpClientExample
Networking stack: HTTP Client example
Diff: HttpClientExample.cpp
- Revision:
- 2:58122a485856
- Parent:
- 1:8dbebfb735c0
--- a/HttpClientExample.cpp Tue May 25 09:18:09 2010 +0000 +++ b/HttpClientExample.cpp Tue May 25 09:19:45 2010 +0000 @@ -9,7 +9,15 @@ printf("Start\n"); - eth.setup(); + printf("\r\nSetting up...\r\n"); + EthernetErr ethErr = eth.setup(); + if(ethErr) + { + printf("Error %d in setup.\n", ethErr); + return -1; + } + printf("\r\nSetup OK\r\n"); + HttpText txt; HttpResult r = http.get("http://mbed.org/media/uploads/donatien/hello.txt", &txt); @@ -26,4 +34,7 @@ { } + + return 0; + }