def getURL(self, url, headers):
    host = settings.RESTCLIENTS_CATALYST_HOST
    if hasattr(settings, 'RESTCLIENTS_CATALYST_CERT_FILE'):
        Live.pool = get_con_pool(host, settings.RESTCLIENTS_CATALYST_KEY_FILE, settings.RESTCLIENTS_CATALYST_CERT_FILE, socket_timeout=get_timeout('catalyst'))
    else:
        Live.pool = get_con_pool(host, socket_timeout=get_timeout('catalyst'))
    if hasattr(settings, 'RESTCLIENTS_CATALYST_SOL_AUTH_PRIVATE_KEY'):
        url = url.replace('/rest/', '/js_rest/')
        now_with_tz = datetime.datetime.now(pytz.utc).strftime('%a %b %d %H:%M:%S %Z %Y')
        header_base = ('%s\nGET\n%s\n%s\n' % (settings.RESTCLIENTS_CATALYST_SOL_AUTH_PRIVATE_KEY, url, now_with_tz))
        public_key = settings.RESTCLIENTS_CATALYST_SOL_AUTH_PUBLIC_KEY
        hashed = hashlib.sha1(header_base).hexdigest()
        headers['Authorization'] = ('SolAuth %s:%s' % (public_key, hashed))
        headers['Date'] = now_with_tz
    return get_live_url(Live.pool, 'GET', host, url, headers=headers)
def getURL(self, url, headers):
    host = settings.RESTCLIENTS_CATALYST_HOST
    if hasattr(settings, 'RESTCLIENTS_CATALYST_CERT_FILE'):
        Live.pool = get_con_pool(host, settings.RESTCLIENTS_CATALYST_KEY_FILE, settings.RESTCLIENTS_CATALYST_CERT_FILE, socket_timeout=get_timeout('catalyst'))
    else:
        Live.pool = get_con_pool(host, socket_timeout=get_timeout('catalyst'))
    if hasattr(settings, 'RESTCLIENTS_CATALYST_SOL_AUTH_PRIVATE_KEY'):
        url = url.replace('/rest/', '/js_rest/')
        now_with_tz = datetime.datetime.now(pytz.utc).strftime('%a %b %d %H:%M:%S %Z %Y')
        header_base = ('%s\nGET\n%s\n%s\n' % (settings.RESTCLIENTS_CATALYST_SOL_AUTH_PRIVATE_KEY, url, now_with_tz))
        public_key = settings.RESTCLIENTS_CATALYST_SOL_AUTH_PUBLIC_KEY
        hashed = hashlib.sha1(header_base).hexdigest()
        headers['Authorization'] = ('SolAuth %s:%s' % (public_key, hashed))
        headers['Date'] = now_with_tz
    return get_live_url(Live.pool, 'GET', host, url, headers=headers)