modified to get more signal info

Dependencies:   easy-connect mbed-http

Fork of http-example-wnc-modified by Tyler Davis

Files at this revision

API Documentation at this revision

Comitter:
Jan Jongboom
Date:
Thu Mar 30 15:15:47 2017 +0200
Parent:
13:5a210d227769
Child:
15:e96b74243a80
Commit message:
Bump mbed-http, treat response without Content-Length but with a body as chunked

Changed in this revision

mbed-http.lib Show annotated file Show diff for this revision Revisions of this file
source/main-http.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/mbed-http.lib	Thu Mar 30 12:54:34 2017 +0200
+++ b/mbed-http.lib	Thu Mar 30 15:15:47 2017 +0200
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/sandbox/code/mbed-http/#992d953ecfb9
+https://developer.mbed.org/teams/sandbox/code/mbed-http/#3004056e4661
--- a/source/main-http.cpp	Thu Mar 30 12:54:34 2017 +0200
+++ b/source/main-http.cpp	Thu Mar 30 15:15:47 2017 +0200
@@ -29,10 +29,10 @@
 
     // Do a GET request to httpbin.org
     {
+        // By default the body is automatically parsed and stored in a buffer, this is memory heavy.
+        // To receive chunked response, pass in a callback as last parameter to the constructor.
         HttpRequest* get_req = new HttpRequest(network, HTTP_GET, "http://httpbin.org/status/418");
 
-        // By default the body is automatically parsed and stored in a string, this is memory heavy.
-        // To receive chunked response, pass in a callback as third parameter to 'send'.
         HttpResponse* get_res = get_req->send();
         if (!get_res) {
             printf("HttpRequest failed (error code %d)\n", get_req->get_error());