This example shows simple use of the TLS connection API. It establishes a TLS connection to example.com on port 443 and fetches the page shown there. Note that this is not intended as an example of how to handle HTTP. It does some very simple HTTP header parsing to find the content length, but is in no way robust.