switch get to post