Fix doPost to use a POST method instead of PUT