added aparameter on the send_request method to allow for passing data in a post request