Skip to content

Instantly share code, notes, and snippets.

Avatar

SoCalBeachRunner SoCalBeachrunner

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

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: