Skip to content

Instantly share code, notes, and snippets.


SoCalBeachRunner SoCalBeachrunner

  • Camarillo, CA
View GitHub Profile
ungoldman /
Last active Aug 9, 2022
post a JSON file with curl

How do you POST a JSON file with curl??

You can post a json file with curl like so:

curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION

so for example: