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.

Committer:
mbed_official
Date:
Tue May 14 12:00:15 2019 +0100
Revision:
74:2ebbf16f54dd
Add log compare test for socket example

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-sockets

Who changed what in which revision?

UserRevisionLine numberNew 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