It simply connects to a page, submits a HEAD request, echoes the reply, and exits.
This example shows a simple, one-shot HTTP client. It simply connects to a page, submits a HEAD request, echoes the reply, and exits.