# FIXME DOCS

def _download(uri, user, password):
    '''
    # FIXME DOCS
    '''
    if user and password:
        logr.debug('AUTH {} at {}'.format(user, uri))
        cookieJar = cookielib.CookieJar()

        opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookieJar))
        opener.addheaders = [("User-agent", "Mozilla/5.0 (compatible)")]
        urllib2.install_opener(opener)

        form = dict()
        form['roster-email'] = user
        form['roster-pw'] = password
    else:
        form = []

    return urllib2.urlopen(uri, urllib.urlencode(form)).read()