'Process the data and finish when the client finished.
Args:
data: A string with the received data.'

@pyqtSlot(str)
def on_client_success(self, data):

    if (data.startswith('http://') or data.startswith('https://')):
        self.success.emit(data)
    else:
        self.error.emit('Invalid    data    received    in    reply!')
