Cleaned and fixed HttpPostHandler