curl and jq 8 · Making requests

POST a JSON file

Send the contents of a file as the request body.

curl -X POST https://api.example.com/users -H "Content-Type: application/json" -d @user.json

Official curl and jq 8 documentation

More making requests commands

All making requests commands · curl and jq 8 cheatsheet

Was this page helpful?