Skip to content

Instantly share code, notes, and snippets.

@rohitkadam19
Created May 25, 2017 11:10
Show Gist options
  • Save rohitkadam19/730697c13200d2c49ed5423ed98139ba to your computer and use it in GitHub Desktop.
Save rohitkadam19/730697c13200d2c49ed5423ed98139ba to your computer and use it in GitHub Desktop.
Curl request with multiple file
curl -X POST http://<host>/certifications/check -H 'accept: application/v1'
-H 'cache-control: no-cache'
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW'
-F 'check[cert_type]=hardware'
-F 'check[source]=files'
-F 'check[files][][path]=proc'
-F 'check[files][][content]=@/Users/rkadam/Downloads/name'
-F 'check[files][][path]=etc'
-F 'check[files][][content]=@/Users/rkadam/Downloads/release'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment