The wget browser

Using wget

Before you run the wget command from within a Perl program, try to run it from the Unix command line.
Enter wget -help to get a complete list of options


CommandAction
1wget http://...Downloads the given URL to a file.
2wget -N http://...Don't re-retrieve files unless newer than local.
3wget -O filename http://...Writes the contents of the given URL to a file named filename.
4wget -r -k http://...Downloads the given URL recursively, including subdirectories, make links local.

From within Perl programs, use command 1 to retrieve the source code of the desired URL.

The wget command is also useful for retrieving documents from FTP sites. Simply use the URL of the FTP site, e.g. "wget ftp://...".


Table of Contents.
Previous