-I means to show only headers
-H header to include in request
##Sending origin header:
curl -H "Origin: http://localhost:3000" -I http://localhost:3001/users
##Sending preflight options
curl -X OPTIONS -I http://localhost:3001/users -H 'Origin: http://localhost:3000' -H 'Access-Control-Request-Method: GET' -H 'Access-Control-Request-Headers: token'
curl
-H "Accept: application/json"
-H "Content-type: application/json"
-X POST
-d '{"name":"New User"}'
http://localhost:3001/users.json