]> sjero.net Git - wget/blob - TODO
[svn] hniksic@iskon.hr -> hniksic@arsdigita.com
[wget] / TODO
1                                  Hey Emacs, this is -*- outline -*- mode
2
3 This is the to-do list for Wget.  There is no timetable of when we plan to
4 implement these features -- this is just a list of things it'd be nice to see in
5 Wget.  Patches to implement any of these items would be gladly accepted.  The
6 items are not listed in any particular order (except that recently-added items
7 may tend towards the top).  Not all of these represent user-visible changes.
8
9 * Generalize --html-extension to something like --mime-extension and have it
10   look at mime.types/mimecap file for preferred extension.  Non-HTML files with
11   filenames changed this way would be re-downloaded each time despite -N unless
12   .orig files were saved for them.  Since .orig would contain the same data as
13   non-.orig, the latter could be just a link to the former.  Another possibility
14   would be to implement a per-directory database called something like
15   .wget_url_mapping containing URLs and their corresponding filenames.
16
17 * When spanning hosts, there's no way to say that you are only interested in
18   files in a certain directory on _one_ of the hosts (-I and -X apply to all).
19   Perhaps -I and -X should take an optional hostname before the directory?
20
21 * When simplifying paths, wget needs to stop at any '?' character.  Also, wget 
22   behaves differently from popular browsers in removing './'s from abs. URLs.
23
24 * Add an option to not encode special characters like ' ' and '~' when saving
25   local files.  Would be good to have a mode that encodes all special characters
26   (as now), one that encodes none (as above), and one that only encodes a
27   character if it was encoded in the original URL (e.g. %20 but not %7E).
28
29 * --retr-symlinks should cause wget to traverse links to directories too.
30
31 * Lots of noncompliant webservers issue HTTP redirects to relative URLs, and
32   browsers follow them, so wget should too.
33
34 * Make wget return non-zero status in more situations, like incorrect HTTP auth.
35
36 * Timestamps are sometimes not copied over on files retrieved by FTP.
37
38 * Wget does not currently handle "fragment identifiers" (the part of a URL 
39   starting with the '#' character) properly.
40
41 * Make -K compare X.orig to X and move the former on top of the latter if 
42   they're the same, rather than leaving identical .orig files laying around.
43
44 * Allow mirroring of FTP URLs where logging in puts you somewhere else besides 
45   '/'. 
46
47 * If CGI output is saved to a file, e.g. cow.cgi?param, -k needs to change the
48   '?' to a "%3F" in links to that file to avoid passing part of the filename as
49   a parameter.
50
51 * Make `-k' convert <base href=...> too.
52
53 * Make `-k' check for files that were downloaded in the past and convert links 
54   to them in newly-downloaded documents.
55
56 * -k should convert convert relative references to absolute if not downloaded.
57
58 * -k should convert "hostless absolute" URLs, like <A HREF="/index.html">.
59   However, Brian McMahon <bm@iucr.org> wants the old incorrect behavior to still
60   be available as an option, as he depends on it to allow mirrors of his site to
61   send CGI queries to his original site, but still get graphics off of the
62   mirror site.  Perhaps this would be better dealt with by adding an option to
63   tell -k not to convert certain URL patterns?
64
65 * Add option to clobber existing file names (no `.N' suffixes).
66
67 * Introduce a concept of "boolean" options.  For instance, every
68   boolean option `--foo' would have a `--no-foo' equivalent for
69   turning it off.  Get rid of `--foo=no' stuff.  Short options would
70   be handled as `-x' vs. `-nx'.
71
72 * Implement "thermometer" display (not all that hard; use an
73   alternative show_progress() if the output goes to a terminal.)
74
75 * Add option to only list wildcard matches without doing the download.
76
77 * Add case-insensitivity as an option.
78
79 * Handle MIME types correctly.  There should be an option to (not)
80   retrieve files based on MIME types, e.g. `--accept-types=image/*'.
81
82 * Implement "persistent" retrieving.  In "persistent" mode Wget should
83   treat most of the errors as transient.
84
85 * Allow time-stamping by arbitrary date.
86
87 * Fix Unix directory parser to allow for spaces in file names.
88
89 * Allow size limit to files (perhaps with an option to download oversize files 
90   up through the limit or not at all, to get more functionality than [u]limit.
91
92 * Recognize HTML comments correctly.  Add more options for handling
93   bogus HTML found all over the 'net.
94
95 * Implement breadth-first retrieval.
96
97 * Download to .in* when mirroring.
98
99 * Add an option to delete or move no-longer-existent files when mirroring.
100
101 * Implement a switch to avoid downloading multiple files (e.g. x and x.gz).
102
103 * Implement uploading (--upload URL?) in FTP and HTTP.
104
105 * Rewrite FTP code to allow for easy addition of new commands.  It
106   should probably be coded as a simple DFA engine.
107
108 * Recognize more FTP servers (VMS).
109
110 * Make HTTP timestamping use If-Modified-Since facility.
111
112 * Implement better spider options.
113
114 * Add more protocols (e.g. gopher and news), implementing them in a
115   modular fashion.
116
117 * Implement a concept of "packages" a la mirror.
118
119 * Implement correct RFC1808 URL parsing.
120
121 * Implement HTTP cookies.
122
123 * Implement more HTTP/1.1 bells and whistles (ETag, Content-MD5 etc.)
124
125 * Support SSL encryption through SSLeay or OpenSSL.