The application sends a post-request to the server and handles JSON response