asyrjasalo / RESTinstance

Robot Framework library for RESTful JSON APIs
https://pypi.org/project/RESTinstance
GNU Lesser General Public License v3.0
207 stars 84 forks source link

POST payload as other data type? #112

Closed Soravit-Saiwong closed 3 years ago

Soravit-Saiwong commented 3 years ago

Is there a way to send POST with a different data type rather than the three documented value which are json object, file or a dict. The endpoint that I'm testing require the payload to be a string, for example this is what I am sending via normal POST request in Python.

dataset = "dataset={ "Name" : "MyName!"}" The body is required to be a string by the endpoint. But POST in RESTinstance is verifying the payload before being sent out, I would like this to be disable.

Is there a way to send anything on post? Just like python requests library?

asimell commented 3 years ago

@Soravit-Saiwong https://github.com/asyrjasalo/RESTinstance/pull/113 added support for data argument for POST keyword, which is similar functionality as --data flag in curl. Does this help?

asimell commented 3 years ago

Closing issue due to lack of new information. Please reopen if still an issue.