Created
May 25, 2017 11:10
-
-
Save rohitkadam19/730697c13200d2c49ed5423ed98139ba to your computer and use it in GitHub Desktop.
Curl request with multiple file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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