Small, Fast, & Simple

April 9, 2015

cURL

Small
Fast
Simple

cURL is a convenient command line tool for making HTTP requests. While it’s easy to make a GET request from the browser, other request types are more difficult. cURL only requires a flag:

curl http://localhost:3000/items -X POST

cURL can also send custom headers. One of its most valuable features is the ability to interact with other programs over pipes. The body of a request can come from standard input, and the HTTP response can be piped into another command. Browser web inspectors often have an option to copy a network request to the clipboard as a cURL command.