Added a method for sending POST requests