curl & wget

HTTP from the Command Line

curl and wget let you make HTTP requests from the terminal. Essential for API testing and downloading files.
bash
# GET request
curl https://api.example.com/data

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

# Download a file
wget https://example.com/file.tar.gz
# or with curl:
curl -O https://example.com/file.tar.gz

# See response headers
curl -I https://example.com

Tip:curl is more versatile (supports many protocols), wget is better for downloading files and mirroring websites.

Terminalbash
Welcome to the Linux Terminal Simulator!
Type commands below. Use 'help' to see available commands.
user@codewithmuh:~$

💬 Got questions? Ask me anything!