Replaced posthandler with httphandler class.