Skip to content

Instantly share code, notes, and snippets.

@corvax19
Created August 8, 2013 14:49
Show Gist options
  • Save corvax19/6185251 to your computer and use it in GitHub Desktop.
Save corvax19/6185251 to your computer and use it in GitHub Desktop.
Curl command and data in single script
#!/bin/bash
/opt/local/bin/curl -v -H 'Content-Type: application/json' -X POST http://echo.httpkit.com -d @- <<'EOF'
{"test": 123, "aaa": 333}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment