Created
April 14, 2022 21:23
-
-
Save shollingsworth/6e329d02ff84086edaec3c6cce06dd70 to your computer and use it in GitHub Desktop.
curl POST a json file to a http endpoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| curl -X POST \ | |
| -H 'Content-Type:application/json' \ | |
| -H "Accept:application/json" \ | |
| -d '@temp.json' \ | |
| http://localhost:5000/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment