server: implement processing of post request