Showing posts with label cURL. Show all posts
Showing posts with label cURL. Show all posts

21/09/2019

[cURL] Use file content as payload

With curl, it is possible to specify a file content as payload simply with:

-d @$file

For example:

curl -X POST some_url -H some_headers -d @$file