add the method to post a request