![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
easy connect wnc added to http request with debug mode enabled. traces collected for AT%CGEQOS, AT%MEAS, AT%PCONI
Dependencies: easy-connect-httpmodified mbed-http
Fork of http-example-wnc-modified by
Diff: source/main-http.cpp
- Revision:
- 14:3c173847e681
- Parent:
- 7:5d32909f77de
- Child:
- 20:1c3499729772
--- 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());