Print client-POSTed data, more verbose error handling

And less fiddling with the returned header. For the time being,
I don't care about correcting the bugs in that part of the code.