'Effectively execute a POST request that was hooked through user login'

@http.route('/web/proxy/post/<path:path>', type='http', auth='user', methods=['GET'])
def post(self, path):

    with request.session.load_request_data() as data:
        if (not data):
            raise werkzeug.exceptions.BadRequest()
        from werkzeug.test import Client
        from werkzeug.wrappers import BaseResponse
        base_url = request.httprequest.base_url
        query_string = request.httprequest.query_string
        client = Client(request.httprequest.app, BaseResponse)
        headers = {'X-Openerp-Session-Id': request.session.sid}
        return client.post(('/' + path), base_url=base_url, query_string=query_string, headers=headers, data=data)
