Parse key value pairs sent in POST body (#4627)

Backported from the master branch.

Conflicts:
	msautotest