def _forward_to_app(url, method, post_data=None):
    if method == "GET":
        res = requests.get(url)
    else:
        res = requests.post(url, data=post_data)
    if not res.ok:
        content = res.content if hasattr(res, 'content') else ''
        status_code = res.status_code if hasattr(res, 'status_code') else ''
        raise RemoteTxAppError(status_code, content)
    return json.loads(res.content)
Forward the request to the tx app.
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/addons/txapps/views.py/_forward_to_app