curl post application/x-www-form-urlencoded, use –data-urlencode instead of simply –data, that wont urlencode the values.