httpd: basic infrastructure for POST HTTP requests