How to POST JSON data with curl command line?
You can also write the username and password in a user.json file. Now use this file to pass the JSON data to curl command line.
curl -X POST -H "Content-Type: application/json" \ -d @user.json \ https://api.example.com/v2/login
Satya Prakash`
Related