Skip to content

Instantly share code, notes, and snippets.

@rmoyano
Last active June 13, 2024 19:17
Show Gist options
  • Save rmoyano/7882974341d7bdb985be25e32a71490c to your computer and use it in GitHub Desktop.
Save rmoyano/7882974341d7bdb985be25e32a71490c to your computer and use it in GitHub Desktop.
Curl cheatsheet

CURL cheatsheet

Get the header response

user@notebook:~$ curl -I http://www.example.org
HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 126555
Cache-Control: max-age=604800
Content-Type: text/html; charset=UTF-8
Date: Thu, 23 May 2024 21:14:48 GMT
Etag: "3147526947"
Expires: Thu, 30 May 2024 21:14:48 GMT
Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
Server: ECAcc (mid/871F)
X-Cache: HIT
Content-Length: 1256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment