Properly parse query string, considering data and request body acceptance.