Created
April 11, 2014 19:16
-
-
Save wader/10493693 to your computer and use it in GitHub Desktop.
Easy to edit JSON post script
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
| #!/bin/sh | |
| exec curl -X POST -H "Content-Type: application/json" -d "$(cat $0 | tail +3)" http://host/path | |
| { | |
| "some": { | |
| "json": "here" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment