#To get raw response from the server
curl --raw -v http://dev.labath.org/

#To provide custom header
curl -v -H "X-My-Header: Yes" http://192.168.0.1/some/resource/

#to POST some data as json
curl -v -H "Content-Type:application/json" -d "@newdata.json" http://192.168.1.1/resource/

#to access something using a cookie
curl -b session_id=85804764220139124118 http://localhost:8080/some_url/

#to PUT
curl -X PUT -H "Content-Type:application/json" -d "@object_update.json" -v http://192.168.1.1/resource/1024

#PATCH over PUT
curl -v -X PUT -H "X-HTTP-Method-Override: PATCH" -H "Content-Type:application/json" -d "@activity_service_update.json" http://192.168.1.13:5000/activity_services/1243946

#using specific IP address 1.2.3.4
curl --resolve 'www.foo.com:443:1.2.3.4'  https://www.foo.com