I know that you can check for network connectivity, but I can't seem to find a way to check if there is truly internet available, short of a ping. I know of a few use cases where a user would be connected to a local WLAN which doesn't have access to the internet, and I would prefer to avoid a timeout on request.
Short of pinging, which would take a rather long time to complete depending on the network connectivity, is there a way to explicitly test for internet?