Skip to content

Instantly share code, notes, and snippets.

@wader
Created April 11, 2014 19:16
Show Gist options
  • Save wader/10493693 to your computer and use it in GitHub Desktop.
Save wader/10493693 to your computer and use it in GitHub Desktop.
Easy to edit JSON post script
#!/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