curl Cheatsheet

Power user.

Overview

curl is the universal HTTP client for command-line work, present on every Unix box and most container images. Five primitives carry most operational use: method support across the full HTTP verb set, header control, body shaping by content type, TLS debugging, and output control for scripting. Fluency turns "is the API up?" into a one-liner instead of a Postman session.

The approach

Verbose first when debugging, silent with format string when scripting. Five idioms cover most operational curl use; memorising them turns API troubleshooting into a 30-second exercise.

Why this compounds

Each curl one-liner that lands in muscle memory shortens the next API debug. Reusable scripts turn smoke tests, health checks, and deploy verification into command-line operations the team owns. By year two, curl is the first tool reached for any HTTP question and Postman becomes the optional GUI it always should have been.