Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface HTTPClient NTPClient mbed-rtos mbed
Fork of HTTPClient_HelloWorld by
Revision 1:d263603373ac, committed 2012-08-05
- Comitter:
- donatien
- Date:
- Sun Aug 05 16:12:30 2012 +0000
- Parent:
- 0:0e0debc29569
- Child:
- 2:270e2d0bb85a
- Commit message:
- Public commit
Changed in this revision
--- a/EthernetInterface.lib Fri Jun 29 11:07:21 2012 +0000 +++ b/EthernetInterface.lib Sun Aug 05 16:12:30 2012 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/EthernetInterface/#c50597f8d7a2 +http://mbed.org/users/mbed_official/code/EthernetInterface/#2a797ba9babe
--- a/HTTPClient.lib Fri Jun 29 11:07:21 2012 +0000 +++ b/HTTPClient.lib Sun Aug 05 16:12:30 2012 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/donatien/code/HTTPClient/#4e39864f7b15 +http://mbed.org/users/donatien/code/HTTPClient/#be61104f4e91
--- a/main.cpp Fri Jun 29 11:07:21 2012 +0000
+++ b/main.cpp Sun Aug 05 16:12:30 2012 +0000
@@ -2,16 +2,17 @@
#include "EthernetInterface.h"
#include "HTTPClient.h"
+EthernetInterface eth;
+HTTPClient http;
+char str[512];
+
int main()
{
- EthernetInterface eth;
eth.init(); //Use DHCP
eth.connect();
//GET data
- HTTPClient http;
- char str[512];
printf("Trying to fetch page...\n");
int ret = http.get("http://mbed.org/media/uploads/donatien/hello.txt", str, 128);
if (!ret)
@@ -23,7 +24,7 @@
{
printf("Error - ret = %d - HTTP return code = %d\n", ret, http.getHTTPResponseCode());
}
-
+
//POST data
HTTPMap map;
HTTPText text(str, 512);
--- a/mbed-rtos.lib Fri Jun 29 11:07:21 2012 +0000 +++ b/mbed-rtos.lib Sun Aug 05 16:12:30 2012 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#3cf1dd27c89c +http://mbed.org/users/mbed_official/code/mbed-rtos/#9654a71f5a90
