talira

curl

Problems curl solves

All 22 problems from curl's listing.

  • download a file from a URL in a shell script and fail the script if the server returns an error
  • test a REST API from the terminal with custom headers, a JSON body and a bearer token
  • see the exact request and response headers and TLS handshake when debugging a web server
  • resume a large download that broke halfway instead of starting over
  • upload files to an FTP or SFTP server from a cron job
  • send an email through an SMTP server from a script without a mail client
  • fetch messages from an IMAP mailbox from the command line
  • my C or C++ application needs to make HTTPS requests on embedded Linux with a small, portable library
  • add HTTP/2 and HTTP/3 support to a native app without writing a protocol stack
  • check whether a site is served over HTTP/3 and how long DNS, connect and TLS each take
  • post a multipart form with a file attachment from the command line
  • send requests through a SOCKS5 or HTTPS proxy, with proxy authentication
  • keep cookies between requests in a script that logs into a website
  • test my API with a client certificate for mutual TLS
  • run many downloads in parallel from one command
  • resolve a hostname to a specific IP for one request to test a server before switching DNS
  • make requests to a local service over a Unix domain socket
  • limit download speed and set a maximum transfer time for a scripted fetch
  • publish or subscribe to an MQTT topic from a shell script
  • a widely deployed, well audited transfer library with a stable ABI for long-lived products
  • use DNS-over-HTTPS for name lookups in a single request
  • get a ready-made Windows binary of a command line HTTP client

Back to curl