Open StivaleDiAcciaio opened 3 years ago
I try to send body request like this with Content-Type multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW:
------WebKitFormBoundary7MA4YWxkTrZu0gW Content-Disposition: form-data; name="options" Content-Type: application/json { "name": "readme.txt", "folder": "/Configurations/pluto", } ------WebKitFormBoundary7MA4YWxkTrZu0gW Content-Disposition: form-data; name="content"
here my text content ------WebKitFormBoundary7MA4YWxkTrZu0gW--_
If I send it via Postman work fine, but if I try to send it via node-rest-client doesn't works
How can I send this body request via node-rest-client?
I try to send body request like this with Content-Type multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW:
------WebKitFormBoundary7MA4YWxkTrZu0gW Content-Disposition: form-data; name="options" Content-Type: application/json { "name": "readme.txt", "folder": "/Configurations/pluto", } ------WebKitFormBoundary7MA4YWxkTrZu0gW Content-Disposition: form-data; name="content"
here my text content ------WebKitFormBoundary7MA4YWxkTrZu0gW--_
If I send it via Postman work fine, but if I try to send it via node-rest-client doesn't works
How can I send this body request via node-rest-client?