Wget |
GNU Wget is a free software program that implements simple and powerful content retrieval from web servers and is part of the GNU project. Its name is derived from World Wide Web and get , connotative of its primary function. It currently supports downloading via HTTP, HTTPS, and FTP protocols, the most popular Transmission Control Protocol-based protocols used for web browsing.
Wget s features include recursive download, conversion of links for offline viewing of local HTML, support for proxies, and much more. It appeared in 1996, coinciding with the boom of popularity of the web, causing its wide use among [http://www.antinode.org/dec/sw/wget.html].
It has been used as the basis for graphical programs such as gwget[http://gnome.org/projects/gwget/index.html] for the GNOME Desktop and wGetGUI[http://www.jensroesner.de/wgetgui/] for Microsoft Windows.
=Features=
==Robustness==
Wget has been designed for robustness over slow or unstable network connections. If a download does not complete due to a network problem, Wget will automatically try to continue the download from where it left off, and repeat this until the whole file has been retrieved. It was one of the first clients to make use of the then-new Range HTTP Header (information technology) to support this feature.
==Recursive download==
Wget can extract resources Hyperlink from HTML Web page and download them in sequence, repeating the process recursively until all the visible pages have been downloaded or a maximum recursion depth specified by the user has been reached. The downloaded pages are saved in a directory structure resembling that on the remote server. This recursive download enables partial or complete mirroring of web sites via HTTP. Links in downloaded HTML pages can be adjusted to point to locally downloaded material for offline viewing. When performing this kind of automatic mirroring of web sites, Wget supports the Robots Exclusion Standard.
Recursive download works with FTP as well, where Wget issues the LIST command to find which additional files to download, repeating this process for directories and files under the one specified in the top URL. Shell-like Wildcard character are supported when the download of FTP URLs is requested.
When downloading recursively over either HTTP or FTP, Wget can be instructed to inspect the timestamps of local and remote files, and download only the remote files newer than the corresponding local ones. This allows easy mirroring of HTTP and FTP sites, but is considered inefficient and more error-prone when compared to programs designed for mirroring from the ground up, such as rsync. On the other hand, Wget does not require special server-side software for mirroring, so the comparison is at least somewhat flawed.
==Non-interactiveness==
Wget is non-interactive in the sense that, once started, it does not require user interaction and does not need to control a TTY, being able to log its progress to a separate file for later inspection. That way the user can start Wget and log out, leaving the program unattended. By contrast, most Graphical user interface and Curses (programming library)-based web browsers require the user to remain logged in and to manually restart failed downloads, which can be a great hindrance when transferring a lot of data.
==Portability==
Written in a highly portable style of C (programming language) with minimal dependencies on third-party libraries, Wget requires little more than a C compiler and a BSD-like interface to Transmission Control Protocol networking. Designed as a Unix program invoked from the Unix shell, Wget has been ported to numerous Unix-like environments and systems, such as Cygwin and Mac OS X, as well as to Microsoft Windows.
==Other==
=Using Wget=
Typical usage of GNU Wget consists of invoking it from the command line, providing one or more URLs as arguments.
# Download the title page of the English language wikipedia to a file # named index.html . wget http://en.wikipedia.org/ # Download Wget s source code from the GNU ftp site. wget ftp://ftp.gnu.org/pub/gnu/wget/wget-1.10.tar.gz
More complex usage includes automatic download of multiple URLs into a directory hierarchy.
# Download the title page of the English language wikipedia, along with # the images and style sheets needed to display the page, and convert the # URLs inside it to refer to locally available content. wget -p -k http://en.wikipedia.org/ # Download the entire contents of en.wikipedia.org (don t actually try this!) wget -r -l0 http://en.wikipedia.org/
=Authors and copyright=
GNU Wget was written by Hrvoje Nikšić with contributions by many other people, including Dan Harkless, Ian Abbott, and Mauro Tortonesi. Significant contributions are credited in the AUTHORS file included in the distribution, and all remaining ones are documented in the changelogs, also included with the program. Wget is now maintained by Mauro Tortonesi.
The copyright to Wget belongs to the Free Software Foundation, whose policy is to require copyright assignments for all non-trivial contributions to GNU software. [http://www.gnu.org/licenses/why-assign.html]
=History=
==Early history==
Wget is the descendant of an earlier program named Geturl by the same author, the development of which commenced in late 1995. The name was changed to Wget after the author became aware of an earlier Amiga program named GetURL, written by James Burton in AREXX.
Wget filled a gap in the web downloading software available in the mid-1990s. No single program was able to reliably download files via both system.
At that time many Unix users struggled behind extremely slow university and Dial-up access Internet connections, leading to a growing need for a downloading agent that could deal with transient network failures without assistance from the human operator.
==Notable releases==
The following releases represent notable milestones in Wget s development. Features listed next to each release are edited for brevity and do not constitute comprehensive information about the release, which is available in the NEWS file distributed with Wget [http://svn.dotsrc.org/repo/wget/tags/WGET_1_10/NEWS].
=Development and release cycle=
Wget is developed in an open fashion, most of the design decisions typically being discussed on the public mailing list [http://news.gmane.org/gmane.comp.web.wget.general] followed by users and developers. Bug reports are relayed to the same list.
==Source contributions==
The preferred method of contributing to Wget s code and documentation is through source updates in the form of textual Patch (Unix) generated by the Diff utility. Patches intended for inclusion in Wget are submitted to a designated mailing list [http://news.gmane.org/gmane.comp.web.wget.patches] where they are reviewed by the maintainers. Patches that pass the maintainers scrutiny are installed in the sources, and all others are rejected. Instructions on patch creation as well as style guidelines are outlined in the PATCHES document provided with the distribution [http://svn.dotsrc.org/repo/wget/trunk/PATCHES], mostly based on the GNU Coding Standards [http://www.gnu.org/prep/standards/]. Because all changes go through this list, even ones from core developers, the subscribers to the list can track Wget development and provide feedback.
The source code can also be tracked via a remote version control repository that hosts revision history beginning with the 1.5.3 release. The repository is running Subversion (software), having migrated from Concurrent Versions System in June 2005.
==Releases==
When a sufficient number of features or bug fixes accumulate during development, Wget is released to the general public via the GNU FTP site and its mirrors. Being entirely run by volunteers, there is no external pressure to issue a release nor are there enforceable release deadlines.
Releases are numbered as Versions of the form of major.minor[.revision] , such as Wget 1.10 or Wget 1.8.2 . An increase of the major version number represents large and possibly incompatible changes in Wget s behavior or a radical redesign of the code base. An increase of the minor version number designates addition of new features and bug fixes. A new revision indicates a release that, compared to the previous revision, only contains bug fixes. Revision zero is omitted, meaning that for example Wget 1.10 is the same as 1.10.0. Wget does not use the odd-even release number convention popularized by the Linux kernel.
At any moment there are two branches of development: the trunk, where new features get added, and the stable branch, forked after each minor release, where only the bug fixes are applied. All revision-level releases are built off the stable branch; all minor version releases are built off the trunk.
=Criticisms of Wget=
Several criticisms of Wget have recurred in public forums and mailing lists. The most important ones are:
Wget s maintainers have stated their awareness of these criticisms, and claim to be working on addressing them in future releases.
=License=
GNU Wget is distributed under the terms of the GNU General Public License, version 2 or later, with a special exception that allows distribution of binaries linked against the OpenSSL library. The text of the exception follows:
In addition, as a special exception, the Free Software Foundation gives permission to link the code of its release of Wget with the OpenSSL project s OpenSSL library (or with modified versions of it that use the same license as the OpenSSL library), and distribute the linked executables. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL . If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.
It is expected that the exception clause will be removed once Wget is modified to also link with the GnuTLS library.
Wget s Documentation, in the form of a Texinfo reference manual, is distributed under the terms of the GNU Free Documentation License, version 1.2 or later. The man page usually distributed on Unix-like systems is automatically generated from a subset of the Texinfo manual and falls under the terms of the same license.
=See also=
*The GNU Project *cURL *NcFTP *Wput
=External links=
*[http://www.gnu.org/software/wget/ Wget s home page] at [http://www.gnu.org/ www.gnu.org]. *[http://www.gnu.org/software/wget/manual/wget.html Wget documentation] generated from Texinfo sources. *[ftp://ftp.gnu.org/pub/gnu/wget/ Wget s directory at ftp.gnu.org] *[ftp://gnjilux.srk.fer.hr/pub/unix/util/wget/ An older Wget FTP site] that contains historical releases, including the Geturl releases from 1.0 onward. *[http://svn.dotsrc.org/repo/wget/ Wget s Subversion repository] *[http://www.gnu.org/software/wget/index.html#mailinglists Wget mailing list for discussion] *[http://xoomer.virgilio.it/hherold/ Wget releases compiled for Windows], maintained by Heiko Herold.|
|