Usage example, Dropbox with wolfSSL
Dependencies: EthernetInterface HTTPClient SDFileSystem mbed-rtos mbed wolfSSL
Fork of SimpleDropbox by
Diff: dropbox.cpp
- Revision:
- 3:0bf592148055
- Parent:
- 0:b20eee676480
--- a/dropbox.cpp Sat Feb 07 19:19:13 2015 +0000 +++ b/dropbox.cpp Tue Jul 21 23:25:17 2015 +0000 @@ -36,7 +36,9 @@ http.setHeader(HeaderLines) ; http.setLocationBuf(location, LOCATION_SIZE) ; - + http.dumpReqHeader(true) ; + http.dumpResHeader(true) ; + ret = http.get(url, buff, size) ; if (ret != HTTP_REDIRECT) { printf("++ Err = %d - HTTP ret = %d ++\n", @@ -44,6 +46,9 @@ return ret ; } + printf("\nHTTP GET: %s\n\n", location) ; + http.dumpReqHeader(false) ; + http.dumpResHeader(false) ; ret = http.get(location, buff, size) ; if (ret != HTTP_OK) { printf("++ Err = %d - HTTP ret = %d ++\n",