Pages

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

No comments:

Post a Comment

With great power comes great responsibility