[svn] Refuse to download files from scratch if `-c' is used and the server
doesn't support REST only for existing *and non-empty* files.
Published in <sxsae4zg4zc.fsf@florida.arsdigita.de>.
[svn] Remove zh_TW.Big5.po, and replace it with the new UTF8 zh_TW.po.
Submitted by "R.I.P. Deaddog".
Published in <Pine.LNX.4.33L2.0104290416010.25182-101000@localhost>.
[svn] Commit various HTTP fixes.
Published in <sxsy9slhu7g.fsf@florida.arsdigita.de>.
* http.c (gethttp): Return RETRUNNEEDED when the retrieval is
unneeded because the file is already there and fully downloaded,
and -c is specified.
(http_loop): Handle RETRUNNEEDED.
* wget.h (uerr_t): New value RETRUNNEEDED.
* http.c (http_loop): Set no_truncate for files that both exist
and are non-empty.
(gethttp): Consider the download finished when restval >= contlen,
not only when restval==contlen.
(gethttp): Handle redirection before giving up due to -c.
(gethttp): Clarify error message which explains that -c will not
truncate the file.
(gethttp): When returning CONTNOTSUPPORTED, don't forget to free
the stuff that needs freeing and release the socket.
* main.c (print_help): Wget booleans accept "off", not "no".
[svn] Send the no-cache directive when required regardless of whether we're
going through a proxy.
Published in <sxsitjqncbx.fsf@florida.arsdigita.de>.
[svn] Rewritten long_to_string. The new version favors smaller numbers;
much of the work is now done at compile-time.
Published in <sxsvgnv6oii.fsf@florida.arsdigita.de>.
[svn] Various url.c-related changes.
Published in <sxsvgo8nmub.fsf@florida.arsdigita.de>.
* retr.c (retrieve_url): Call uri_merge, not url_concat.
* html-url.c (collect_tags_mapper): Call uri_merge, not
url_concat.
* url.c (mkstruct): Use encode_string instead of xstrdup followed
by URL_CLEANSE.
(path_simplify_with_kludge): Deleted.
(contains_unsafe): Deleted.
(construct): Renamed to uri_merge_1.
(url_concat): Renamed to uri_merge.
* url.c (str_url): Use encode_string instead of the unnecessary
CLEANDUP.
(encode_string_maybe): New function, returns input string if no
encoding is needed.
(encode_string): Call encode_string_maybe to do the dirty work,
xstrdup if no work needed.
* wget.h (XDIGIT_TO_xchar): Define here.
* url.c (decode_string): Use new name.
(encode_string): Ditto.
* http.c (XDIGIT_TO_xchar): Rename HEXD2asc to XDIGIT_TO_xchar.
(dump_hash): Use new name.
* wget.h: Rename ASC2HEXD and HEXD2ASC to XCHAR_TO_XDIGIT and
XDIGIT_TO_XCHAR respectively.
* hash.c (hash_table_map): Allow deletion and change of the
element processed by MAPFUN.
(string_hash): Use the function from glib.
* hash.c (hash_table_remove): Rewrite to actually clear deleted
entries instead of just marking them as deleted.
Published in <sxsu23tvdur.fsf@florida.arsdigita.de>.
[svn] Fix retrieval of directories when initial CWD is not `/'.
Published in <sxsitkc709p.fsf@florida.arsdigita.de>.
* url.c (parseurl): Don't strip trailing slash when u->dir is "/"
because that strips the *leading* slash, thus forcing relative
FTP retrieval.
* ftp.c (getftp): Convert initial FTP directory from VMS to UNIX
notation for VMS servers.
(ftp_retrieve_dirs): Do not prepend '/' to f->name when
odir is an empty string.
[svn] Implement better sorting and matching of cookies.
Fix previously broken command-line options.
Published in <sxspuek9255.fsf@florida.arsdigita.de>.
[svn] Fix recursive FTP retrieval so that
`wget -r ftp://<username>:<password>@host/%2Fhome/hniksic/dir/'
works.
Published in <sxsk84ug8gt.fsf@florida.arsdigita.de>.
[svn] Remove VERY_LONG_FORMAT. Instead, define function very_long_to_string
for printing VERY_LONG_TYPE numbers.
Published in <sxsd7aqzqr7.fsf@florida.arsdigita.de>.
[svn] parse_uname() Would run past the end of the string if the
username was present, but the URL did not contain a slash, e.g.
http://foo:bar@myhost.
Reported by Christian Fraenkel.
[svn] Fix support for rfc850 time recognition on systems where strptime
format specs %a and %A are not the same.
Published in <49022.983849922@ideon.st.ryukoku.ac.jp>.
[svn] Make sure opt.dfp is rewound only on the first retrieval.
(See the code comment for a more detailed explanation.)
Published in <sxsy9tkqizz.fsf@florida.arsdigita.de>.
[svn] Don't clear dl_file_url_map and dl_url_file_map in recursive_retrieve.
Published in <sxsk856le2y.fsf@florida.arsdigita.de> under the subject
"Link conversion fix".
hniksic [Sat, 31 Mar 2001 02:20:16 +0000 (18:20 -0800)]
[svn] Committed my patch that makes HTTP code close its socket in premature
returns (before the body was drained). Published in
<sxsd7ayn0kt.fsf@florida.arsdigita.de>.
hniksic [Sat, 31 Mar 2001 02:05:54 +0000 (18:05 -0800)]
[svn] Record downloaded files and downloaded HTML files in all cases.
Published under the subject "Link conversion fix" in
<sxsn1a2n2zd.fsf@florida.arsdigita.de>.
dan [Tue, 27 Mar 2001 09:31:18 +0000 (01:31 -0800)]
[svn] configure.in: Christian Fraenkel's tests for -lcrypto and -lssl were in the
wrong order, causing a link failure if you're using libcrypto.a and libssl.a
rather than shared libraries. Also put in checks for -ldl, necessary since the
libcrypto shared library doesn't record its dependency on libdl.
dan [Tue, 27 Mar 2001 03:22:17 +0000 (19:22 -0800)]
[svn] TODO: -p should probably go "_two_ more hops" on <FRAMESET> pages.
wget.texi (Recursive Retrieval Options): Explained that you need
to use -r -l1 -p to get the two levels of requisites for a
<FRAMESET> page. Also made a few other wording improvements.
dan [Tue, 20 Mar 2001 13:54:49 +0000 (05:54 -0800)]
[svn] TODO: Oops. Hostless absolute link conversion _is_ working. My test that led
me to believe it wasn't was exposing a different bug -- URLs specified on the
commandline as opposed to being recursed to don't always get re-converted at the
end of the Wget run.
dan [Sat, 17 Mar 2001 14:21:19 +0000 (06:21 -0800)]
[svn] Linking with OpenSSL previously required the user to set up all the
appropriate -I, -L, and -R/-rpath flags in environment variables,
manually. Automated everything, including bundling libtool so we can
successfully link with the OpenSSL shared libraries on just about any
platform.
dan [Sat, 17 Mar 2001 02:01:53 +0000 (18:01 -0800)]
[svn] TODO: For some reason on 2000-11-19, Hrvoje removed the item about converting
hostless absolute links. That isn't working yet, so I've put the item back,
with a modified wording.