Show curl version:
curl --version
GET a remote resource and have it displayed in the terminal:
curl http://stackoverflow.com
GET a remote resource and save it in a local file:
curl -o file https://stackoverflow.com
Add headers to response:
curl -i http://stackoverflow.com
Output only headers:
curl -I http://stackoverflow.com