Примеры на чтение в открытом/закрытом слоге.
-*- mode: outline; coding: utf-8 -*-
* Recursive site download.
$ wget -r -np -nc -e robots=off -p -k TOP-LEVEL-URL
* Get server response header.
$ wget --server-response http://example.com
$ wget -S http://example.com # short variant
* View cookies from site.
$ wget --save-cookies FILE -O - http://google.com >/dev/null
* Send cookies to site.
$ wget --load-cookies FILE http://google.com
* Send specific header line.
$ wget --header='Accept-Charset: iso-8859-2' --header='Accept-Language: hr' http://fly.srk.fer.hr/
* Send POST request.
Log in to the server. This can be done only once.
$ wget --save-cookies cookies.txt --post-data 'user=foo&password=bar' http://server.com/auth.php
Now grab the page or pages we care about.
$ wget --load-cookies cookies.txt -p http://server.com/interesting/article.php