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/README.md@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 | # Testing examples |
mbed_official | 74:2ebbf16f54dd | 2 | |
mbed_official | 74:2ebbf16f54dd | 3 | Examples are tested using tool [htrun](https://github.com/ARMmbed/mbed-os-tools/tree/master/packages/mbed-host-tests) and templated print log. |
mbed_official | 74:2ebbf16f54dd | 4 | |
mbed_official | 74:2ebbf16f54dd | 5 | To run the test, use following command after you build the example: |
mbed_official | 74:2ebbf16f54dd | 6 | ``` |
mbed_official | 74:2ebbf16f54dd | 7 | mbedhtrun -d D: -p COM4 -m K64F -f .\BUILD\K64F\GCC_ARM\sockets.bin --compare-log tests\sockets.log |
mbed_official | 74:2ebbf16f54dd | 8 | ``` |
mbed_official | 74:2ebbf16f54dd | 9 | |
mbed_official | 74:2ebbf16f54dd | 10 | |
mbed_official | 74:2ebbf16f54dd | 11 | More details about `htrun` are [here](https://github.com/ARMmbed/htrun#testing-mbed-os-examples). |
mbed_official | 74:2ebbf16f54dd | 12 |