aacerox / node-rest-client

REST API client from node.js
MIT License
377 stars 132 forks source link

Cannot send multipart/form-data #211

Open StivaleDiAcciaio opened 3 years ago

StivaleDiAcciaio commented 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?