isurlvalid Returns true or false if url is valid and also return whatever status code the url returned after a GET request to it.