isReachable

Check the availability of the host of the given URL and whether the URL gives a status code of

  1. Only when both the host is available and the URL returns a status code of 200 does this method return true.

Return

true if, and only if, the host is available and the URL returns the status code 200.

Parameters

url

The URL of which to check for host-availability.