A simple boilerplate for sending a POST request to a server