Make GET requests with extra headers:
curl --request GET 'http://www.somedomain.com/user/info/' \ --header 'sessionid:1234567890987654321'
Make GET and have the response with HTTP headers:
curl --request GET 'http://somedomain.com/' --include
Make POST with headers and body:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"userid": "user", "password":"psw"}' http://host/api-route