Set up base functionality for sending a request