'Make a HTTP Post request to the server \'control\' endpoint.'

def MakeRequest(self, data):

    stats.STATS.IncrementCounter('grr_client_sent_bytes', len(data))
    response = self.http_manager.OpenServerEndpoint(path=('control?api=%s' % config.CONFIG['Network.api']), verify_cb=self.VerifyServerControlResponse, data=data, headers={'Content-Type': 'binary/octet-stream'})
    if (response.code == 406):
        self.InitiateEnrolment()
        return response
    if (response.code == 200):
        stats.STATS.IncrementCounter('grr_client_received_bytes', len(response.data))
        return response
    return response
