Created
August 1, 2019 16:03
-
-
Save clarencetw/d67d006971a40f3df144d1105113ba27 to your computer and use it in GitHub Desktop.
curl-body-automatically-brings-timestamp
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
timestamp=$(date +%s) | |
authorization=token | |
curl -v -H "Authorization: Bearer ${authorization}" -H 'content-type: application/x-www-form-urlencoded' -d "timestamp=${timestamp}" -X POST https://clarence.tw/api |
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
curl -v -H "Authorization: Bearer ${authorization}" -H 'content-type: application/x-www-form-urlencoded' -d "timestamp=${timestamp}" -X POST https://clarence.tw/api --trace-ascii /dev/stdout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment