Now passing params based on the media type. If the chosen media type is urlencoded, params will be passed correspondingly.