Created
August 8, 2013 14:49
-
-
Save corvax19/6185251 to your computer and use it in GitHub Desktop.
Curl command and data in single script
This file contains 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/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