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: /post/curl-json/
© 2019 by guangmean. All Rights Reserved.