GNU Wget
$ wget Foundation Med RiskGNU wget downloads files over HTTP, HTTPS, and FTP with automatic retries, resume support (-c), and recursive site mirroring. Agents should pass -q or -nv and -O to keep progress bars out of stdout.
brew install wget Use wget directly for resilient artifact downloads and --spider URL checks; use curl or xh for REST API calls.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Non-interactive by design with -q, -nv, and --spider, but lacks JSON output and writes progress bars to stderr by default.
- Supports
-q,--spider, and-O -for stdout streaming
Writes downloaded files into the current directory by default unless --spider or -O is used; recursive -r can pull huge trees if unbounded.
- Default invocation writes files to working directory
Standard package on Linux distros and easily installed on macOS via brew install wget.
- Widely packaged across Linux, macOS, and Windows
Great for resilient downloads and link checking (--spider), though curl is far better for API payloads.
- Built-in retries, resume (
-c), and recursive mirroring
Long-standing GNU Project utility (wget / wget2).
- Official GNU Project tool under GPL-3.0
Comprehensive GNU manual and man page.
- Official manual at gnu.org/software/wget/manual
Security, Auth & Guardrails
Reads optional ~/.netrc or ~/.wgetrc for HTTP basic auth and cookies; no encrypted keychain integration.
Free, GPL-3.0 open-source.
# wget Agent Rules - Always pass `-q` (or `-nv`) and `--timeout=15` so animated progress bars do not flood agent logs. - Never run recursive `-r` or `-m` without `--level` and `--no-parent` bounds.
Agent-Ready Command Recipes
Safe Read-Only Queries
wget --spider -q -S https://example.com/
Uses --spider to probe status and headers (-S) without writing any file locally.
Controlled Writes & Previews
wget -q --tries=3 --timeout=15 -O archive.tar.gz https://example.com/archive.tar.gz
Suppresses progress-bar output (-q), caps retries (--tries=3), and writes to an explicit -O target.
Strengths for Agents
- + Resilient automatic retries and
-cpartial download resume. - +
--spiderverifies URL reachability cleanly without creating files.
Caveats & Pitfalls
- ! Default stderr progress output is noisy unless
-qor-nvis passed. - ! Writes files to the working directory by default instead of stdout like
curl.