Simple usage example HTTPClient with wolfSSL
Dependencies: EthernetInterface HTTPClient mbed-rtos mbed wolfSSL
Fork of SimpleHTTPSClient by
Revision 4:68c5a3f49a48, committed 2015-02-07
- Comitter:
- wolfSSL
- Date:
- Sat Feb 07 19:14:32 2015 +0000
- Parent:
- 3:41412e91afb0
- Child:
- 5:12ff922de096
- Commit message:
- SERVER_IP
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Feb 07 19:12:32 2015 +0000 +++ b/main.cpp Sat Feb 07 19:14:32 2015 +0000 @@ -29,7 +29,7 @@ /*** HTTP ***/ printf("\nFetching HTTP\n"); - ret = http.get("http://192.168.1.12/574d76fcb/keys.txt", recvBuff, sizeof(recvBuff)); + ret = http.get("http://SERVER_IP/574d76fcb/keys.txt", recvBuff, sizeof(recvBuff)); if (!ret) { printf("Result: %s\n", recvBuff); } else { @@ -38,7 +38,7 @@ /*** HTTPS (SSL) ***/ printf("\nFetching HTTPS\n"); - ret = http.get("https://192.168.1.12/574d76fcb/keys.txt", recvBuff, sizeof(recvBuff)); + ret = http.get("https://SERVER_IP/574d76fcb/keys.txt", recvBuff, sizeof(recvBuff)); if (!ret) { printf("Result: %s\n", recvBuff); } else {