addPost() communicates with server