add support for POST requests to servlet