client sends data to server