def METHOD_NAME(url):
    """ Basic verification that the endpoint supports CardDav
    """
    response = requests.request(
        "OPTIONS", url, headers={"User-Agent": USER_AGENT, "Depth": "1"}
    )
    response.raise_for_status()  # if not 2XX status
    if "addressbook" not in response.headers.get("DAV", ""):
        raise Exception("URL is not a CardDAV resource")