🔌curl
Also known as cURL, curl command
A command that sends a web request. It prints the reply.
Think of it like
Think of it like a walkie-talkie for the web. One line out, and the answer comes back.
Example
Jack checks his site from a server with curl -I. The first line says HTTP/2 200, so the site is up.
Why it matters
It is on nearly every machine, and most API docs use it. That makes it the fastest way to try a request.
Definition
Example code
console
$ curl -I https://example.com
HTTP/2 200
content-type: text/html; charset=utf-8Common mistake
Key takeaways
- 1From the terminal. One line per request.
- 2Flags set it up. -X, -H, -d, -I.
- 3On almost every machine. Linux, macOS, Windows.