DELAPARRA
Index
Color
NL
Category: CLI commands

curl

Explained by Updated

What is curl?

curl: Client URL — Make HTTP requests from the command line. curl sends HTTP requests from the command line and prints the response. curl https://example.com fetches a page; curl -X POST -H 'Content-Type: application/json' -d '{"name":"Anna"}' https://api.example.com/users calls an API. It is the universal tool for testing and debugging web services. curl -I shows only the headers, curl -v shows the full conversation including TLS details, and curl -L follows redirects.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about curl

What should you keep in mind with curl?

Most API documentation gives examples in curl, and browser developer tools can copy any request as a curl command. That is a handy way to reproduce a bug outside the browser. Be careful with what ends up in your shell history. Tokens passed with -H 'Authorization: ...' are saved there, so prefer reading them from an environment variable.

At a glance

CategoryCLI commands
Explained by
Updated

More CLI commands terms

All terms starting with C

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.