Skip to content

Instantly share code, notes, and snippets.

View SoCalBeachrunner's full-sized avatar

SoCalBeachRunner SoCalBeachrunner

  • Camarillo, CA
View GitHub Profile
@ungoldman
ungoldman / curl_post_json.md
Last active July 7, 2024 17:56
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: