A
cd ..
Network

Wget & Curl Download Tools

Download files, test APIs, and make HTTP requests with wget and curl.

2025-09-17
wget, curl, networking

Download file with wget

wget https://example.com/file.zip

Download with custom filename

wget -O custom_name.zip https://example.com/file.zip

Resume interrupted download

wget -c https://example.com/large_file.zip

Download in background

wget -b https://example.com/file.zip

Limit download speed (500KB/s)

wget --limit-rate=500k https://example.com/file.zip

Download entire website

wget --mirror --convert-links --page-requisites https://example.com

Download with authentication

wget --user=username --password=password https://example.com/file.zip

Basic curl GET request

curl https://api.example.com/users

Save output to file

curl -o output.json https://api.example.com/users

Follow redirects

curl -L https://example.com

Show response headers

curl -I https://example.com

POST request with JSON

curl -X POST https://api.example.com/users \
  -H "Content-Type: application/json" \
  -d '{"name":"John","email":"john@example.com"}'

Upload file

curl -F "file=@/path/to/file.txt" https://example.com/upload

Basic authentication

curl -u username:password https://api.example.com/protected

Bearer token authentication

curl -H "Authorization: Bearer YOUR_TOKEN" https://api.example.com/data

Download with progress bar

curl -# -O https://example.com/file.zip

Multiple simultaneous downloads (wget)

wget -i urls.txt

Test API endpoint speed

curl -w "@-" -o /dev/null -s https://api.example.com/endpoint <<'EOF'
    time_namelookup:  %{time_namelookup}\n
       time_connect:  %{time_connect}\n
          time_total:  %{time_total}\n
EOF

Was this useful?

Share with your team

Browse More