How to send a JSON data to the server with curl post
| 1 minute read | Using 19 words
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"}'
Page link: /zh/post/curl-json/