HTTP Clients
curl
Transfer data from or to a server using various protocols. Usage:curl [options] url
Options:
-X method- HTTP method (GET, POST, PUT, DELETE, etc.)-H header- Add custom header-d data- Send data in request body (auto sets POST)-o file- Write output to file-s, --silent- Silent mode (hide progress)-L, --location- Follow redirects-I, --head- Show headers only
wget
Download files from the web. Usage:wget [options] url
Options:
-O file- Write output to file-q- Quiet mode
Network Diagnostics
ping
Test network connectivity and measure latency. Usage:ping [options] host
Options:
-c count- Number of pings (default: 4)
dig
DNS lookup utility for querying DNS servers. Usage:dig [options] domain [type]
Query types:
A- IPv4 address (default)AAAA- IPv6 addressMX- Mail exchangeNS- Name serversTXT- Text recordsCNAME- Canonical nameSOA- Start of authority
Working with APIs
GET request
POST JSON data
Authentication
PUT request
DELETE request
Download and extract
Common Patterns
Save API response
Pretty print JSON
Check HTTP status
Test API endpoint
Download multiple files
DNS diagnostics
Virtual Servers
Lifo supports virtual HTTP servers for local development. Commands can interact with servers started within the terminal:Error Handling
Connection errors
- Invalid URL or hostname
- Network connectivity issues
- CORS restrictions (for browser-based requests)