httpd: support for http POST requests (API changes - step 2)