Switch from using XPOST to PUT.