added support for POST method