Checking for Internet connectivity

A simple example of checking Internet connectivity, by trying to connect to a specific http web adress. The function will return true all fale, based on the result of the http request.