def forward_request(self, lab_session_id, request):
        if DEBUG_MESSAGES:
            dbg("[VisirTestExperiment] Forwarding request to %s: %s" % (self.measure_server_addr, request))

        session_obj = self._session_manager.get_session_locking(lab_session_id)
        try:
            if 'connection' in session_obj:
                conn = session_obj['connection']
            else:
                conn = httplib.HTTPConnection(self.measure_server_addr)
                session_obj['connection'] = conn

            conn.request("POST", self.measure_server_target, request)
            response = conn.getresponse()
            data = response.read()
            response.close()

            # We just sent a request. Tick the heartbeater.
            self.heartbeater.tick(session_obj)
        finally:
            self._session_manager.modify_session_unlocking(lab_session_id, session_obj)

        if DEBUG_MESSAGES:
            dbg("[VisirTestExperiment] Received response: %s" % data)

        return data
Forwards a request to the VISIR Measurement Server through an
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/experiments/visir_html5.py/VisirExperiment.forward_request