How to send a JSON data to the server with curl post
Just use the -H and –data params when you request: curl -X POST -H 'Content-Type: application/json' 'https://ww.googleapis.com/***' --data '{"token":"[CUSTOM_TOKEN]","otherKey":"otherValue"}'
发现问题,分享解决方案。