curl
Also known as: libcurl
Free command-line tool and library, created by Daniel Stenberg, for transferring data with URLs over HTTP and dozens of other protocols.
curl is a command-line program for sending and receiving data using URLs, and libcurl is the library behind it that other software embeds. It supports HTTP and HTTPS along with many other protocols, including FTP, SFTP, SMTP, IMAP and MQTT, and handles details such as redirects, cookies, authentication, proxies, uploads and TLS certificate verification. Developers use the curl command to test web APIs, download files and script network tasks, while libcurl powers networking in an enormous range of devices and applications.
Swedish developer Daniel Stenberg released curl in 1998, building on earlier tools he had written to fetch currency exchange rates for an IRC bot. He has led the project ever since, supported by many contributors, and it is distributed under a permissive license derived from the MIT License. curl ships with Windows, macOS and most Linux distributions, and libcurl runs in cars, televisions, game consoles, phones and servers, which the project estimates amounts to billions of installations worldwide.
curl is a textbook example of critical infrastructure maintained largely by one dedicated person, a recurring theme in discussions of the bus factor and open-source sustainability. Stenberg has written extensively about security, memory safety and the burden of handling vulnerability reports, including low-quality AI-generated submissions. For users, its ubiquity makes curl a common way to interact with a REST API from the command line or within shell scripts.
Key points
- curl transfers data using URLs over HTTP and dozens of other protocols.
- Daniel Stenberg first released curl in 1998 and still leads the project.
- libcurl is embedded in cars, phones, consoles and operating systems.
- The project is a frequent example in debates about sustaining critical open-source software.
Related entries
HTTP
Stateless request-response protocol that web browsers, servers and other clients use to request and transfer resources such as web pages and data.
REST API
Web interface that follows the REST architectural style, exposing resources at URLs that clients manipulate with stateless HTTP requests.
Command-Line Interface
Text-based interface in which users interact with a computer by typing commands and reading text output rather than using graphical menus.
Bash
Unix shell and command language written for the GNU Project, long the default interactive shell and scripting language on Linux systems.
Transport Layer Security
Cryptographic protocol that encrypts and authenticates data sent between applications over a network, most visibly securing web traffic as HTTPS.
Bus Factor
Minimum number of team members whose sudden loss would leave a project unable to continue, a measure of concentrated knowledge risk.
Maintainer
Person or team responsible for reviewing contributions, managing releases and guiding the long-term health of a software project or package.
Software Library
Collection of prewritten, reusable code, such as functions and classes, that programs call on to perform common tasks without reimplementing them.