This is a quick example of a simple HTTP client program using the network-socket API that is provided as a part of mbed-os. The program brings up an underlying network interface, and uses it to perform an HTTP transaction over a TCPSocket.
tests/sockets.log@75:1e3673a86f39, 2019-09-12 (annotated)
- Committer:
- mbed_official
- Date:
- Thu Sep 12 16:00:11 2019 +0100
- Revision:
- 75:1e3673a86f39
- Parent:
- 74:2ebbf16f54dd
README.md: remove the External address line form sample output
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-sockets
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 74:2ebbf16f54dd | 1 | Mbed OS Socket example |
mbed_official | 74:2ebbf16f54dd | 2 | Mbed OS version: |
mbed_official | 74:2ebbf16f54dd | 3 | |
mbed_official | 74:2ebbf16f54dd | 4 | IP address: (?:[0-9]{1,3}\.){3}[0-9]{1,3} |
mbed_official | 74:2ebbf16f54dd | 5 | Netmask: (?:[0-9]{1,3}\.){3}[0-9]{1,3} |
mbed_official | 74:2ebbf16f54dd | 6 | Gateway: (?:[0-9]{1,3}\.){3}[0-9]{1,3} |
mbed_official | 74:2ebbf16f54dd | 7 | sent \d+ \[GET \/ HTTP\/\d.\d\] |
mbed_official | 74:2ebbf16f54dd | 8 | recv \d+ \[HTTP\/\d.\d \d+ OK\] |
mbed_official | 74:2ebbf16f54dd | 9 | Done |