Reading from the socket is a good idea though, that would yield a string with all the form data in it (if I understand this correctly, it's been a while) which I could then parse the same way that xavante.httpd.getparams does.
If possible, take a look at wsapi.request. It has code to deal with form data.