Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clarencetw/d67d006971a40f3df144d1105113ba27 to your computer and use it in GitHub Desktop.
Save clarencetw/d67d006971a40f3df144d1105113ba27 to your computer and use it in GitHub Desktop.
curl-body-automatically-brings-timestamp
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
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