![](/media/cache/profiles/ibmfp2.jpg.50x50_q85.jpg)
Alternative TCPSocket example using an HTTP GET to read a short "helloworld" text web page using a different server
Fork of ARMs demo HTTP socket demo. ARM's server was redirected and the demo was no longer working. An alternative server was setup and the code was modified to display the web page text in addition to just "200 OK". Only works for a very short web page - buffer only 500 characters but RAM is running out on the LPC1768 in the demo!
Diff: README.md
- Revision:
- 0:6b383744246e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Thu Jan 19 11:46:10 2017 -0600 @@ -0,0 +1,15 @@ +### Getting started with the network-socket API ### + +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](github.com/armmbed/mbed-os). + +The program brings up an underlying network interface, and uses it to perform an HTTP +transaction over a TCPSocket. + +**Note:** The current example is limited to the ethernet interface on supported devices. +To use the example with a different interface, you will need to modify main.cpp and +replace the EthernetInterface class with the appropriate interface. + +### Documentation ### + +More information on the network-socket API can be found in the [mbed handbook](https://docs.mbed.com/docs/mbed-os-api-reference/en/5.1/APIs/communication/network_sockets/).