Linux curl and wget

Probe APIs, download files, and debug HTTP from the shell.

  • curl post
  • wget download
  • curl resume
  • debug http
  • curl timing

Linux curl and wget

Probe APIs, download files, and debug HTTP from the shell.

Commands

CommandWhat it does
curl -sSI urlHeaders only, silent
curl POST JSONSend a JSON body
curl download resumeContinue interrupted downloads
wget mirror siteRecursive offline copy
curl timing statsDNS, TLS, and transfer breakdown

Example

curl -s https://api.example.com/health | head -c 300
curl -o app.tar.gz -C - https://files.example.com/app.tar.gz

FAQ

curl vs wget?

curl for APIs and debugging; wget for recursive downloads and mirroring.

How do I time a request?

The write-out format reports DNS, connect, TLS, and transfer phases separately.

Частые вопросы

curl vs wget?
curl for APIs and debugging; wget for recursive downloads and mirroring.
How do I time a request?
The write-out format reports DNS, connect, TLS, and transfer phases separately.

Linux