post messages to server