how to receive request data as response from curl code example
Example 1: curl get example
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://hostname/resource
Example 2: curl pass data in request
curl -d "param1=value1¶m2=value2" -X POST http://localhost:3000/data