Post data using curl command
Simple example of posting data using curl command:
curl -i \
-H "Accept: application/json" \
-H "Content-Type:application/json" \
-X POST --data
'{"param1": "val1", "param2": "val2"}' "https://localhost:8080/endpoint"
curl -i \
-H "Accept: application/json" \
-H "Content-Type:application/json" \
-X POST --data
'{"param1": "val1", "param2": "val2"}' "https://localhost:8080/endpoint"