Auth_Yadis_HTTPFetcher::canFetchURL PHP Method

canFetchURL() public method

Return whether a URL can be fetched. Returns false if the URL scheme is not allowed or is not supported by this fetcher implementation; returns true otherwise.
public canFetchURL ( $url ) : boolean
return boolean
    function canFetchURL($url)
    {
        if ($this->isHTTPS($url) && !$this->supportsSSL()) {
            Auth_OpenID::log("HTTPS URL unsupported fetching %s", $url);
            return false;
        }
        if (!$this->allowedURL($url)) {
            Auth_OpenID::log("URL fetching not allowed for '%s'", $url);
            return false;
        }
        return true;
    }