Adding a function for getting the body of the request