Adds POST form data parsing

And fixes a old bug