tj/parse-curl.js

Support for multipart form data

hatimn02 opened this issue · 0 comments

It supports URL encoded form-data but not multipart form data, try the below curl snippet:

curl --request POST \
  --url http://www.httpbin.org/post \
  --header 'cache-control: no-cache' \
  --header 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  --header 'postman-token: 81163614-974d-2fc5-4251-d9f6544f9d2c' \
  --form hello=world \
  --form hello1=world1