I have this curl command that I would like to have in node red
curl -X 'POST'
'https://api.server.com/processing/myfunction?include=opt1&include=opt2&wait_for=120'
-H 'accept: application/json'
-H 'Content-Type: multipart/form-data'
-F 'file=test.jpg;type=image/jpeg'
-F 'parameters={
"language": "en"
}'
I used POSTMAN to convert it
And the in NodeRed I used the Change Node
Set msg.heardes = {
"accept": "application/json"
}
Set msg.url = https://api.server.com/processing/myfunction?include=opt1&include=opt2&wait_for=120'
but how to do multipart/form-data?
According to the api documentation
file is a string($binary)
parameters is an object : { "language": "en" }
How I can I upload or use local file to convert to binary and also how to pass this in the body.
ps: I am a beginner
If you have somme example....