send data to the server