Properly parse query string
Properly interpret content-type for post data