def get_params():
    url = request.query.get('url')
    archive = request.query.get('archive')
    browser_type = request.query.get('browser', 'chrome')
    if (not url):
        raise HTTPError(status=400, body='No url= specified')
    if (archive not in theconfig['archives']):
        raise HTTPError(status=400, body='No archive {0}'.format(archive))
    if (not url.startswith(('http://', 'https://'))):
        url = ('http://' + url)
    return (browser_type, archive, url)
def get_params():
    url = request.query.get('url')
    archive = request.query.get('archive')
    browser_type = request.query.get('browser', 'chrome')
    if (not url):
        raise HTTPError(status=400, body='No url= specified')
    if (archive not in theconfig['archives']):
        raise HTTPError(status=400, body='No archive {0}'.format(archive))
    if (not url.startswith(('http://', 'https://'))):
        url = ('http://' + url)
    return (browser_type, archive, url)