Added some handling of POST method