Error 414 when posting/updating via API

[quote=“marcozambi, post:7, topic:98186, full:false”][/quote]
We are having a similar problem when creating a post using the POST method.
And when the post is long the 414 error arrises.

We are using the discourse api in python to generate some post using the discourse api.

The create_post function seems to us a POST request using params instead of data.
This is the create_post definition form the discourse api

def create_topic(self, title, raw, category=None, created_at=None):
        response = self._request('POST', 'posts.json', params={
            'title': title,
            'raw': raw,
            'category': category,
            'created_at': created_at,
        })

We have tried to change params by data in the function definition.

We have tried using PUT instead of POST.
But it does not work.

The problem seem to be that the complete post is passed as parameters in the URL instead of an internal payload.

Is this a bug?
How may we create a long post using data payload instead of URL parameters?