This is an experimental wget-like tool written in C.
Designed and written from scratch it requires a C99 and Posix compliant development environment.
The originally purpose was to help out on wget2 development (refactoring, modern and clean code, new technology, new design).
In many cases Mget downloads much faster than Wget due to HTTP zlib compression and parallel connections. It consumes less sys and user CPU cycles due to larger buffers and buffer recycling.
Mget is licensed under GPLv3.
Mget is in alpha stage. You might encounter lots of bugs and missing features. So, for now (10.08.2012), don't use it for production !
The basic functionality is implemented, like:
- recursive download of websites with or without spanning hosts
- download of single web pages / resources
- zlib/gzip compressed HTTP/HTTPS downloads
- number of parallel download threads is adjustable
- include directive for config files (wildcards allowed)
- support for keep-alive connections
- included CSS, HTML, XML parser needed for recursive downloads
- gettext support
- HTTPS via libgnutls
- support for Metalink RFC 6249 (Metalink/HTTP: Mirrors and Hashes)
- support for Metalink RFC 5854 (Metalink Download Description Format / .meta4 files)
- Metalink checksumming via libgnutls
- DNS lookup cache
- IPv4 and IPv6 support
- tested on Debian SID amd64 and OpenBSD 5.0
- compiled and tested with gcc 4.7.1 and clang 3.1.1
- tested regularly with static analysis tools
- compiled and linked with hardening options proposed by the Debian project
Anybody should feel free to contribute ideas, opinions, knowledge (docs, code, autotools, etc.), code, test routines, etc.
The following is just a quick list of ideas and todos. I personally like to experiment with new stuff (new to wget), so request pipelining and SPDY protocol are my favorites.
- respect /robots.txt "Robot Exclusion Standard"
- request pipelining (using client cookies)
- SPDY protocol
- http authentication (basic & digest RFC 2617)
- proxy support
- server cookie stuff
- a --sync option / respect page expiry dates / only download changed pages
- respect data-urls
- Atom / RSS / Podcast / Streaming (.m3u, etc. formats)
- ICEcast support
- ftp support
- https with openssl
- a progress display
- Documentation docbook with free Serna WYSIWYG/WYMIWYG editor (conversion to texinfo possible)
- to implement Content-Encoding 'compress' and 'deflate' I need a server supporting these
- many easy-to-implement wget options/features
- plugin technology to plug in user-specific code
The following packages are needed to build Mget:
- libz >= 1.2.3
- libgnutls >= 2.4.2
- flex >= 2.5.35
The versions are recommended, but older version like on OpenBSD 5.0 are supposed to work.
Build mget with just:
Have a look into Makefile / BSDMakefile to change some defines.
There is no documentation yet.
$ mget --help
prints the usage and the current set of options
My idea is to use the free Serna WYSIWYG/WYMIWYG editor for documentation. It creates docbook format which can be converted into texinfo format. And it opens the documentation process to almost any volunteers without texinfo knowledge.