POST --data switch

I’m running a curl command that works fine and how trying to run it on KNIME. The header I was able to add because there is tab for it. Where do I put the --data switch value? I tried putting it in the body but that didn’t do anything.

Can you perhaps clarify this? Is there an error message? Some more insights in your current curl command, what you have tried in KNIME etc. would help a lot to get you the right support :slight_smile:

When i execute the node, it returns back nothing. No error message, all the return fields are null. That’s what leads me to think putting the --data values in the body is not how I’m supposed to put it. In my curl command it is --data "{user:scott,password:mypassword} and that’s what i put in the request body.

Just to make sure, the --data part is not required in the body. The JSON will do. Another option is to directly put your credentials in the Basic Authentication.

1 Like

Hi @scottrichardmcleod_yahoo.com ,

Well, the data can be set from the “request body tab”, where you’ll set the column with the information or you post there your data like postman.

You can use the flow variables too, where you set to the body content topic.

With the error handling tab, mark the last option to bring some information about error. If you have code 200, that OK it’s works, anything else will be a error context and the output view can give you a light.

BR,

Denis

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.