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
| Command | What it does |
|---|---|
curl -sSI url | Headers only, silent |
curl POST JSON | Send a JSON body |
curl download resume | Continue interrupted downloads |
wget mirror site | Recursive offline copy |
curl timing stats | DNS, 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
Linux Files and Directories
Navigate, create, move, and inspect files with core commands.
Linux Permissions
Read ls output, chmod, chown, and sudo without breaking access.
Linux Text Processing
cat, head, cut, sort, uniq, and awk for daily data shaping.
Linux grep and find
Find files by name, age, and size; search inside them fast.