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.

Revision:
74:2ebbf16f54dd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/sockets.log	Tue May 14 12:00:15 2019 +0100
@@ -0,0 +1,9 @@
+Mbed OS Socket example
+Mbed OS version:
+
+IP address: (?:[0-9]{1,3}\.){3}[0-9]{1,3}
+Netmask: (?:[0-9]{1,3}\.){3}[0-9]{1,3}
+Gateway: (?:[0-9]{1,3}\.){3}[0-9]{1,3}
+sent \d+ \[GET \/ HTTP\/\d.\d\]
+recv \d+ \[HTTP\/\d.\d \d+ OK\]
+Done