What is cURL?
Short answer
cURL is a command-line tool that sends HTTP requests and prints the response. It is the standard way to test APIs and share a request, because a single curl line fully describes the method, headers, and body.
A request in one line
A curl command captures everything about a request: the URL, the method, the headers, and the body. That makes it the common language for sharing API calls in docs, bug reports, and between tools.
curl -X POST https://api.example.com/users \
-H "Content-Type: application/json" \
-d '{"name":"Ada"}'Flags you will see most
-Xsets the HTTP method, such as GET, POST, QUERY, or DELETE-Hadds a request header-dsends a request body, which implies POST unless-Xsays otherwise-iincludes the response headers in the output-Lfollows redirects