Simple example demonstrating how to use GET & POST requests with the HTTP Client

Dependencies:   EthernetInterface HTTPClient mbed-rtos mbed

Fork of HTTPClient_HelloWorld by Donatien Garnier

Files at this revision

API Documentation at this revision

Comitter:
MACRUM
Date:
Mon Oct 19 14:47:43 2015 +0000
Parent:
2:270e2d0bb85a
Commit message:
Update test URL which is moved.

Changed in this revision

EthernetInterface.lib Show annotated file Show diff for this revision Revisions of this file
HTTPClient.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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 270e2d0bb85a -r a8803b172f6d EthernetInterface.lib
--- a/EthernetInterface.lib	Thu Aug 30 15:42:06 2012 +0000
+++ b/EthernetInterface.lib	Mon Oct 19 14:47:43 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/EthernetInterface/#a0ee3ae75cfa
+http://mbed.org/users/mbed_official/code/EthernetInterface/#2fc406e2553f
diff -r 270e2d0bb85a -r a8803b172f6d HTTPClient.lib
--- a/HTTPClient.lib	Thu Aug 30 15:42:06 2012 +0000
+++ b/HTTPClient.lib	Mon Oct 19 14:47:43 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/donatien/code/HTTPClient/#1f743885e7de
+https://developer.mbed.org/users/MACRUM/code/HTTPClient/#87fb5dd782dc
diff -r 270e2d0bb85a -r a8803b172f6d main.cpp
--- a/main.cpp	Thu Aug 30 15:42:06 2012 +0000
+++ b/main.cpp	Mon Oct 19 14:47:43 2015 +0000
@@ -14,7 +14,7 @@
     
     //GET data
     printf("\nTrying to fetch page...\n");
-    int ret = http.get("http://mbed.org/media/uploads/donatien/hello.txt", str, 128);
+    int ret = http.get("http://developer.mbed.org/media/uploads/donatien/hello.txt", str, 128);
     if (!ret)
     {
       printf("Page fetched successfully - read %d characters\n", strlen(str));
diff -r 270e2d0bb85a -r a8803b172f6d mbed-rtos.lib
--- a/mbed-rtos.lib	Thu Aug 30 15:42:06 2012 +0000
+++ b/mbed-rtos.lib	Mon Oct 19 14:47:43 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#9654a71f5a90
+http://mbed.org/users/mbed_official/code/mbed-rtos/#12552ef4e980
diff -r 270e2d0bb85a -r a8803b172f6d mbed.bld
--- a/mbed.bld	Thu Aug 30 15:42:06 2012 +0000
+++ b/mbed.bld	Mon Oct 19 14:47:43 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/976df7c37ad5
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68
\ No newline at end of file