+2010-05-30 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * html-parse.c (NAME_CHAR_P): Consider '<' an invalid character.
+ (advance_declaration): Close the tag if '<' is found.
+ (map_html_tags): Likewise.
+
+2010-05-27 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * main.c (print_usage): Accept a new parameter `error'.
+ (main): Print diagnostic messages to stderr, not stdout.
+
+2010-05-27 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * Makefile.am (wget_SOURCES): Remove `snprintf.c'.
+
+ * snprintf.c: Remove file.
+
+2010-05-27 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * main.c (main): Exit with failure when -k is specified and -O is not
+ a regular file.
+
+2010-05-27 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * http.c (gethttp): Consider new cookies retrieved when the
+ authorization fails.
+
+2010-05-25 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * host.c (sufmatch): Do not consider zero length entries.
+
+ * http.c (H_10X): New macro.
+ (gethttp): Silently ignore 1xx responses.
+
+2010-05-24 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * iri.h (dummy_iri): Define static.
+
+ * css-tokens.h (css_tokens): Remove variable.
+
+2010-05-23 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * http.c (http_atotm): Count the NUL character when copying the locale
+ string.
+ Reported by: Florian Weimer <fw@deneb.enyo.de>
+
+2010-05-16 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * Makefile.am (LDADD): Remove MD5_LDADD.
+ (MD5_LDADD): Remove definition.
+ (AM_CPPFLAGS): Remove MD5_CPPFLAGS.
+ (version.c): Remove dependency from MD5_LDADD.
+ (../md5/libmd5.a): Remove rule.
+
+ * ftp-opie.c: Include "md5.h". Do not include "gen-md5.h".
+ (skey_response): New variable ctx. Use md5 functions from the gnulib
+ module instead of functions defined previously in the "gen-md5.h" file.
+
+ * gen-md5.h: Remove file.
+ * gen-md5.c: Likewise.
+
+ * http.c: Include "md5.h". Do not include "gen-md5.h".
+ (digest_authentication_encode): New variable ctx. Use md5 functions
+ from the gnulib module instead of functions defined previously in the
+ "gen-md5.h" file.
+
+2010-05-15 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * Makefile.am: Quote any path using $(top_srcdir) or $(top_builddir).
+ (version.c): Remove dependency from configure.ac and Makefile.am.
+
+ * css.l: Include "wget.h".
+
+2010-05-08 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * Makefile.am: Update copyright years.
+
+ * cmpt.c: Likewise.
+
+ * connect.h: Likewise.
+
+ * convert.c: Likewise.
+
+ * convert.h: Likewise.
+
+ * cookies.c: Likewise.
+
+ * cookies.h: Likewise.
+
+ * css-tokens.h: Likewise.
+
+ * css-url.c: Likewise.
+
+ * css-url.h: Likewise.
+
+ * css.l: Likewise.
+
+ * exits.c: Likewise.
+
+ * exits.h: Likewise.
+
+ * ftp-basic.c: Likewise.
+
+ * ftp-ls.c: Likewise.
+
+ * ftp-opie.c: Likewise.
+
+ * ftp.c: Likewise.
+
+ * ftp.h: Likewise.
+
+ * gen-md5.c: Likewise.
+
+ * gen-md5.h: Likewise.
+
+ * gettext.h: Likewise.
+
+ * gnutls.c: Likewise.
+
+ * hash.c: Likewise.
+
+ * hash.h: Likewise.
+
+ * host.c: Likewise.
+
+ * host.h: Likewise.
+ * html-parse.c: Likewise.
+
+ * html-parse.h: Likewise.
+
+ * html-url.c: Likewise.
+
+ * html-url.h: Likewise.
+
+ * http-ntlm.c: Likewise.
+
+ * http-ntlm.h: Likewise.
+
+ * http.c: Likewise.
+
+ * http.h: Likewise.
+
+ * init.c: Likewise.
+
+ * init.h: Likewise.
+
+ * iri.c: Likewise.
+
+ * iri.h: Likewise.
+
+ * log.c: Likewise.
+
+ * log.h: Likewise.
+
+ * main.c: Likewise.
+
+ * mswindows.c: Likewise.
+
+ * mswindows.h: Likewise.
+
+ * netrc.c: Likewise.
+
+ * netrc.h: Likewise.
+
+ * openssl.c: Likewise.
+
+ * options.h: Likewise.
+ * progress.c: Likewise.
+
+ * progress.h: Likewise.
+
+ * ptimer.c: Likewise.
+
+ * ptimer.h: Likewise.
+
+ * recur.c: Likewise.
+
+ * recur.h: Likewise.
+
+ * res.c: Likewise.
+
+ * res.h: Likewise.
+
+ * retr.c: Likewise.
+
+ * retr.h: Likewise.
+
+ * spider.c: Likewise.
+
+ * spider.h: Likewise.
+
+ * ssl.h: Likewise.
+
+ * sysdep.h: Likewise.
+
+ * test.c: Likewise.
+
+ * test.h: Likewise.
+
+ * url.c: Likewise.
+
+ * url.h: Likewise.
+
+ * utils.c: Likewise.
+
+ * utils.h: Likewise.
+
+ * wget.h: Likewise.
+
+2010-05-07 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * gnutls.c (wgnutls_close): Use always `close', not `closesocket'.
+
+ * openssl.c (openssl_close): Use always `close', not `closesocket'.
+ (ssl_connect_wget): Get the real socket handle by FD_TO_SOCKET.
+ Define FD_TO_SOCKET if it is not yet defined.
+
+ * Makefile.am (libunittest_a_CPPFLAGS): Add -I$(top_builddir)/lib.
+
+ * mswindows.h: Always include <winsock2.h> and <ws2tcpip.h>. Do not
+ include <winsock.h>.
+ [! INHIBIT_WRAP]: Remove macro's socket, bind, connect, accept, recv,
+ send, select, getsockname, getpeername, setsockopt, closesocket.
+ Remove wrapped_socket, wrapped_bind, wrapped_connect, wrapped_listen,
+ wrapped_accept, wrapped_recv, wrapped_send, wrapped_select,
+ wrapped_getsockname, wrapped_getpeername, wrapped_setsockopt,
+ wrapped_closesocket prototypes.
+
+ * mswindows.c: Remove wrapped_socket, wrapped_bind, wrapped_connect,
+ wrapped_listen, wrapped_accept, wrapped_recv, wrapped_send,
+ wrapped_select, wrapped_getsockname, wrapped_getpeername,
+ wrapped_setsockopt, wrapped_closesocket functions. Remove WRAP macro.
+
+ * host.h [WINDOWS]: Include <winsock2.h> not <winsock.h>.
+
+ * connect.c: Include <sys/socket.h> and <sys/select.h> on any platform,
+ gnulib ensures they exist. Remove `read', `write', `close' macros.
+
+ * Makefile.am: Copy build_info.c.in only if we are working in a VPATH.
+ (AM_CPPFLAGS): Add directory with generated gnulib files.
+
+2010-05-06 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * Makefile.am (build_info.c): Generate build_info.c in the builddir,
+ not srcdir.
+
+2010-05-05 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * http.c (gethttp): Give a nicer message on a malformed status line.
+
+2010-05-04 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * http.c (gethttp): Check `resp_status' return code and handle
+ errors.
+
+2010-05-01 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * http.c (request_send): Specify 1.1 as HTTP version for requests.
+ (skip_short_body): Accept new parameter `chunked'. New variable
+ `remaining_chunk_size'. Handle the chunked transfer encoding.
+ (gethttp): New variable `chunked_transfer_encoding`. Set `keepalive'
+ by default to true. Check if the server is using the chunked transfer
+ encoding.
+
+ * retr.h: Define `rb_chunked_transfer_encoding'.
+
+ * retr.c (fd_read_body): New variable `chunked'. New variable
+ `remaining_chunk_size'. Handle the chunked transfer encoding.
+
+2010-03-04 Steven Schubiger <stsc@member.fsf.org>
+
+ * ftp.c (ftp_loop_internal): Omit input file from being
+ deleted after retrieval.
+
+ * retr.c (input_file_url): New function.
+
+ * retr.h: Add declaration for input_file_url.
+
+2010-03-02 Steven Schubiger <stsc@member.fsf.org>
+
+ * retr.c (retrieve_from_file): Improve checking for a URL
+ by invoking url_valid_scheme instead of url_has_scheme.
+
+ * url.c (url_valid_scheme): New function.
+
+ * url.h: Add declaration for url_valid_scheme.
+
+2010-03-02 Steven Schubiger <stsc@member.fsf.org>
+
+ * retr.c (retrieve_from_file): Free memory of input file.
+
+2010-03-01 Steven Schubiger <stsc@member.fsf.org>
+
+ * retr.c (retrieve_url): Retrieve the local filename from ftp_loop.
+ (retrieve_from_file): Return if there's no input file.
+
+ * ftp.c (ftp_loop_internal): Duplicate the local filename into
+ retrieve_url's scope when a valid reference is being passed.
+ (ftp_loop): Call ftp_loop_internal here with passing a
+ reference to the local filename, elsewhere with NULL.
+
+ * ftp.h: Adjust declaration of ftp_loop.
+
+2010-01-27 Paul Townsend <aab@purdue.edu> (tiny change)
+
+ * retr.c (fd_read_body): Be sure to measure timer when time has
+ elapsed, too, not just when we've made progress.
+
+2010-01-13 Micah Cowan <micah@cowan.name>
+
+ * openssl.c: Fixed some mixed declarations-and-code.
+
+2010-01-09 Micah Cowan <micah@cowan.name>
+
+ * init.c, main.c, http.c, ftp.c, options.h: Renamed
+ --no-match-server-timestamps to --no-use-server-timestamps, and
+ add it to print_help.
+
+2010-01-09 David Holman <holman.david@gmail.com> (tiny change)
+
+ * init.c, main.c, http.c, ftp.c, options.h: Added support for
+ --no-match-server-timestamps.
+
+2009-12-03 Peter Rosin <peda@lysator.liu.se>
+
+ * snprintf.c (dopr): Output %p as unsigned.
+
+2010-01-09 Jeremy Olexa <darkside@gentoo.org> (tiny change)
+
+ * init.c: Deal with systems which provide PATH_MAX in
+ sys/param.h rather than limits.h.
+
+2009-10-09 Steven Schweda <sms@antinode.info>
+
+ * utils.c: Added characters " : \ | to the list of normal
+ caret-escaped (ODS5) characters in the char_prop[] table.
+
+2009-09-22 Arvind Jamuna Dixit <ardsrk@gmail.com>
+
+ * http.c (extract_param, parse_content_disposition): Support
+ RFC 2231 while parsing Content-Disposition header
+
+2009-10-24 Petr Pisar <petr.pisar@atlas.cz>
+
+ * openssl.c: Implement support for (multiple) subjectAltNames in
+ X509 certificates, not just the commonName.
+
+2009-10-09 Micah Cowan <micah@cowan.name>
+
+ * main.c: Fix declaration of compiled_features.
+
+ * build_info.c.in: Adapt to new input format. Added a check for
+ large-file support. Replaced the "openssl" and "gnutls"
+ advertisements with a single "ssl/foo" advertisement.
+
+2009-09-30 Micah Cowan <micah@cowan.name>
+
+ * sysdep.h: Unconditionally include stdbool.h (gnulib has it for
+ systems that don't supply it.)
+
+ * vms.c: Added functions vms_basename(), used to extract the
+ bare executable name from argv[0], and vms_getpass(), a
+ VMS-specific replacement for GNU getpass().
+
+ vms.c: Added global string constants: compilation_string
+ (NULL), link_string (NULL), and version_string (real).
+
+2009-09-24 Micah Cowan <micah@cowan.name>
+
+ * vms.c: Moved from vms/vms.c.
+
+ * sysdep.h: Use proper prototypes for snprintf, vsnprintf (thanks
+ to Steven Schweda).
+
+2009-09-24 Steven Schweda <sms@antinode.info>
+
+ * main.c (print_version): Remove VMS-conditional build info
+ string; the new VMS builders use OS_TYPE.
+
+ * ftp.c (getftp): Fix accidental use of target -> targ.
+
+2009-09-24 Micah Cowan <micah@cowan.name>
+
+ * host.c (host_errstr): host_errstr should return const char *.
+
+2009-09-22 Micah Cowan <micah@cowan.name>
+
+ * Makefile.am (version.c): Explicitly tell Mercurial where the
+ top-source repository should be, so it doesn't accidentally use
+ the repository for a containing directory (for instance, if the
+ user's home directory is managed by a Mercurial repo). Also
+ ensures we find the repository, even if the build directory is
+ outside the source directory.
+
+ * wget.h: define WINDOWS if _WIN32 or __WIN32__ is defined, but
+ not __CYGWIN__.
+
+ * mswindows.c (xsleep): Check for availability of the sleep
+ function, in addition to the usleep function.
+ (get_winsock_error, windows_strerror): Removed (gnulib already
+ supplies this functionality).
+
+ * mswindows.h [NEED_GAI_STRERROR]: define gai_strerror
+ to (gnulib's) strerror, rather than windows_strerror. Removed
+ error macro definitions provided by gnulib.
+ (windows_strerror): Removed (gnulib already supplies this
+ functionality).
+
+ * host.c: Don't declare h_errno when building on Windows.
+
+ * Makefile.am (LIBS): Added @W32LIBS@.
+ (EXTRA_wget_SOURCES): Removed (it's in LIBOBJ now).
+ (version.c): Removed dependency on $(LDADD), since it may include
+ dependencies that are not part of the Wget sources (-lwsock32, for
+ instance).
+
+ * openssl.c (ssl_check_certificate): Avoid reusing the same buffer
+ space for successive quoted arguments. Thanks to Steven Schweda
+ for pointing out the problem.
+
+2009-09-21 Micah Cowan <micah@cowan.name>
+
+ * progress.c (update_speed_ring): "the the" -> "the".
+
+ * css-url.c, iri.c, mswindows.c: Removed assert.h inclusion (not
+ using it).
+
+2009-09-11 Steven Schweda <sms@antinode.info>
+
+ * utils.c, utils.h (fopen_excl): Make second argument an int,
+ rather than a bool (so it can handle the appropriate VMS version
+ of the flag).
+
+ * main.c (print_version): Don't print LOCALEDIR unless NLS is
+ enabled.
+
+ * http.c (gethttp): Pass FOPEN_BIN_FLAG, instead of true.
+
+ * ftp.c (ftp_retrieve_glob): Cast strcmp to assign to cmp, for a
+ silly HP build environment.
+
+2009-09-08 Steven Schubiger <stsc@member.fsf.org>
+
+ * main.c, init.c: Mark the --preserve-permissions and
+ --html-extension option as deprecated.
+
+2009-09-06 Micah Cowan <micah@cowan.name>
+
+ * ftp.c (getftp, ftp_loop_internal): Separate "len" input/output
+ parameter (with different meanings for input and output), into two
+ separate parameters, one input (passed_expected_bytes) and one
+ output (qtyread). Fixes bug #26870.
+
+2009-09-05 Steven Schubiger <stsc@member.fsf.org>
+
+ * retr.h: Declare set_local_file() to avoid build warnings.
+
+2009-09-05 Gisle Vanem <gvanem@broadpark.no>
+
+ * connect.c, init.c, main.c, openssl.c, options.h: Replace
+ "ifdef MSDOS" with "ifdef USE_WATT32" since DOS-targets in fact
+ use the Watt-32 tcp/ip stack.
+
+2009-09-04 Micah Cowan <micah@cowan.name>
+
+ * Makefile.am: Move build_info.c to wget_SOURCES from
+ nodist_wget_SOURCES, reduce dependencies, and invoke build_info.pl
+ in its new home, $(top_srcdir)/build-aux.
+
+2009-09-03 Micah Cowan <micah@cowan.name>
+
+ * ftp-ls.c (ftp_parse_vms_ls): Replace use of localtime_r with
+ localtime, as not all platforms have localtime_r.
+
+ * Makefile.am (wget_SOURCES): Rearranged some of the file order,
+ so .c files and .h files are apart. Added gettext.h, so that it
+ shows up in the dist.
+
+2009-09-02 Micah Cowan <micah@cowan.name>
+
+ * gettext.h: Refreshed from gettext 0.17.
+
+ * test.c: Added definition of program_name variable, required by
+ lib/error.c (libgnu.a). Doesn't cause problems until you try to
+ build on a non-GNU system...
+
+ * build_info.c.in: Removed useless "+gettext" feature ad.
+
+2009-08-29 Steven Schubiger <stsc@member.fsf.org>
+
+ * convert.c (local_quote_string): Percent-encode semicolons
+ in local file strings.
+
+2009-08-27 Micah Cowan <micah@cowan.name>
+
+ * wget.h (uerr_t): added new VERIFCERTERR code for SSL certificate
+ problems. Marked exit codes that are defined but never used (at
+ least, the ones I could find).
+
+ * retr.c, retr.h (retrieve_url): Added a new boolean argument to
+ determine whether an exit status should be recorded.
+ (retrieve_from_file): Adjust to new retrieve_url signature.
+
+ * res.c (res_retrieve_file): Don't have retrieve_url record an
+ exit status for robots.txt.
+
+ * recur.c (retrieve_tree): Adjust to new retrieve_url signature.
+
+ * main.c (main): Use the exit status stored by retrieve_url.
+
+ * http.c (gethttp): Distinguish certificate verification problems
+ from SSL connection issues.
+ (http_loop): Handle newly-created VERIFCERTERR error code.
+
+ * exits.c, exits.h: Newly added.
+
+ * Makefile.am (wget_SOURCES): Add exits.c and exits.h.
+
+2009-08-27 Micah Cowan <micah@cowan.name>
+
+ * http.c (gethttp): Make sure Wget heeds cookies when they
+ are sent with a 401 response; or any other sort of response for
+ that matter (#26775).
+
+2009-08-19 Micah Cowan <micah@cowan.name>
+
+ * openssl.c (ssl_check_certificate): Only warn about an attack if
+ the hostname would otherwise have matched. Also some formatting
+ cleanup.
+
+2009-08-19 Joao Ferreira <joao@joaoff.com>
+
+ * openssl.c (ssl_check_certificate): Detect embedded NUL
+ characters in the SSL certificate common name.
+
+2009-08-17 Tony Lewis <tlewis@exelana.com>
+
+ * http.c (gethttp): Ensure that we parse Content-Length before we
+ attempt to refer to its value. Without this fix, NTLM support was
+ completely buggered. #27192
+
+2009-08-09 Michael Baeuerle <michael.baeuerle@gmx.net>
+
+ * ftp.c: #include <strings.h> for strcasecmp.
+
+2009-07-28 Micah Cowan <micah@cowan.name>
+
+ * main.c (option_data): Rename --html-extension to
+ --adjust-extension.
+ (print_help): Ditto.
+
+ * options.h (struct option): Rename html_extension to
+ adjust_extension.
+ * http.c (gethttp): Ditto.
+ * convert.c (local_quote_string): Ditto.
+
+ * init.c (commands): Add "adjustextension", and reflect rename
+ change for opt.adjust_extension, for both "adjustextension" and
+ "htmlextension".
+
+2009-07-27 Micah Cowan <micah@cowan.name>
+
+ * options.h (struct options): Added restrict_files_nonascii
+ boolean field.
+
+ * url.c (FILE_CHAR_TEST): Add check for chars outside the ASCII
+ range.
+
+ * init.c (defaults): Add restrict_files_nonascii to initialization.
+ (cmd_spec_restrict_file_names): Allow parsing of "ascii" keyword.
+
+2009-07-27 Marcel Telka <marcel@telka.sk>
+
+ * iri.c (do_conversion): Typo: invalide -> invalid
+
+2009-07-27 Petr Pisar <petr.pisar@atlas.cz>
+
+ * main.c (print_help): Fixed a couple typos.
+
+2009-07-26 Micah Cowan <micah@cowan.name>
+
+ * main.c (option_data): Rename --locale option to --local-encoding
+ (print_help): Document --no-iri, --local-encoding, and
+ --remote-encoding, within usage message. Remove defunct
+ --preserve-permissions.
+
+2009-07-23 Micah Cowan <micah@cowan.name>
+
+ * progress.c (get_eta): Change "Translation note" in comment to
+ "TRANSLATORS", so it actually appears in wget.pot.
+
+2009-07-06 Micah Cowan <micah@cowan.name>
+
+ * main.c (print_help): Improve documentation of --base.
+
+2009-07-05 Micah Cowan <micah@cowan.name>
+
+ * html-url.c (tag_handle_meta): Handle meta name="robots"
+ properly: deal with whitespace, commas after...
+
+ * netrc.c (parse_netrc): Rename local-scope variable "quote" to
+ "qmark", to avoid conflict with the function name.
+
+2009-07-05 Petr Pisar <petr.pisar@atlas.cz>
+
+ * main.c (print_version): Mark initial line for translation, along
+ with (env), (user), and (system). Change copyright year to 2009.
+
+ * http.c (http_loop): Space after colon.
+
+ * gnutls.c (ssl_check_certificate): Use quote function, rather
+ than explicit quotes.
+
+2009-07-05 Micah Cowan <micah@cowan.name>
+
+ * Makefile.am (version.c): Add dependency on configure.ac.
+
+ * iri.c: Mark some strings for translation.
+
+2009-07-04 Steven Schweda <sms@antinode.info>
+
+ * wget.h (ORIG_SFX): Macro added, to supply an alternative "_orig"
+ suffix on VMS.
+
+ * connect.c, host.c, host.h, main.c: Include "vms_ip.h" rather
+ than <netdb.h> on VMS systems.
+
+ * convert.c (write_backup_file): Use "_orig" rather than ".orig"
+ on VMS.
+
+ * ftp-basic.c (ftp_list): Don't use LIST -a on VMS servers.
+
+ * ftp.c [__VMS]: Include "vms.h"
+ * ftp.c (getftp): Disable some unhelpful "for VMS" code. Pass the
+ OS type to ftp_list.
+ (getftp) [__VMS]: Alter the filename as required, and invoke fopen
+ with extra optional arguments.
+ (ftp_retrieve_list): Set permissions before setting the times.
+
+ * ftp-ls.c [__VMS]: Various improvements.
+
+ * http.c (SET_USER_AGENT): Added. Include operating-system info in
+ the User-Agent header.
+ (gethttp): Use ORIG_SFX macro.
+ (gethttp) [__VMS]: invoke fopen with extra arguments to
+ communicate file type.
+ (http_loop): Add cast to time_t.
+
+ * init.c (wgetrc_user_file_name) [__VMS]: Adjustments for where to
+ find the .wgetrc.
+
+ * log.c: Adjustments to improve handling of log files on VMS.
+
+ * main.c [__VMS]: Added --ftp-stmlf option (and associated
+ documentation). Adjust description of backup-suffixes, as they now
+ differ for VMS.
+ (print_help, print_version): Include OS type in version
+ information.
+ (main) [__VMS]: Invoke fopen with extra options, to specify file
+ type information.
+
+ * netrc.c (search_netrc) [__VMS]: Fix .netrc-finding.
+
+ * openssl.c, openssl.h (ssl_connect_wget): Renamed from ssl_connect.
+
+ * options.h (struct options): Add ftp_stmlf field.
+
+ * retr.c (write_data) [__VMS]: Avoid fflush.
+
+ * url.c [__VMS]: Include vms.h.
+ * url.c (url_file_name) [__VMS]: Handle naming as required for VMS.
+
+ * utils.c [__VMS]: Include vms.h. Various added facilities for VMS
+ needs.
+
+2009-07-04 Micah Cowan <micah@cowan.name>
+
+ * main.c (print_version): Allow localization of the version-info
+ labels, eschew attempts at alignment (which is complicated when
+ handling translated strings), and avoid using printf() with
+ variable-stored format strings that lack conversion
+ specifications.
+ (format_and_print_line): For similar reasons, don't calculate
+ line-continuation tabulation based on the number of bytes in a
+ string.
+
+2009-07-04 Steven Schubiger <stsc@member.fsf.org>
+
+ * url.c (url_parse): If an URL scheme is invalid, distinguish
+ between an unsupported or missing scheme.
+
+ * url.c: Add a "missing scheme" entry to parse_errors.
+
+2009-07-03 Micah Cowan <micah@cowan.name>
+
+ * iri.h (iri_dup): Provide macro definition for when IRIs are
+ disabled.
+
+ * Makefile.am (LIBS): Added @LIBICONV@.
+ (wget_SOURCES): Added iri.h.
+ (EXTRA_wget_SOURCES): Added iri.c, so it gets packaged even if IRI
+ support was disabled.
+
+2009-07-02 Micah Cowan <micah@cowan.name>
+
+ * recur.c (url_enqueue): Quote enqueue/dequeue debug messages.
+
+ * html-url.c (append_url): Change "merge()" quoting style from
+ locale_quoting_style to escape_quoting_style.
+
+2009-07-01 Micah Cowan <micah@cowan.name>
+
+ * retr.c (retrieve_url): Use the existing "redirect" label,
+ instead of superfluous "second_try". Removed no-longer-accurate
+ debug statement. Use the "newloc" parameter to store the fallback
+ URL, when IRI version was rejected.
+
+ * recur.c (retrieve_tree): Always use the parsed URL for tracking
+ the Referer, since that's the one we actually requested (if
+ there's a difference in terms of percent-encodings and such).
+
2009-07-01 Steven Schubiger <stsc@member.fsf.org>
* Makefile.am: Add a rule to generate build_info.c and list
the build_info.c.in file in EXTRA_DIST. Adjust elsewhere
where needed.
-
+
* build_info.c: Remove this static source file.
-
+
* build_info.c.in: Data for generation of build_info.c.
2009-06-29 Micah Cowan <micah@cowan.name>
* host.c: Declare h_errno if no declaration is provided. Idea
thanks to Maciej W. Rozycki.
-2009-06-11 Xin Zou <zouxin2008@gmail.com>
-
+2009-06-11 Xin Zou <zouxin2008@gmail.com>
+
* http.c (gethttp): Fix some memory leaks.
-
+
2009-06-11 Micah Cowan <micah@cowan.name>
* http.c (http_atotm): Handle potential for setlocale's return
2009-05-28 Steven Schubiger <stsc@member.fsf.org>
- * ftp.c (ftp_get_listing): Update the "listing file"
+ * ftp.c (ftp_get_listing): Update the "listing file"
string after calling ftp_loop_internal().
2009-05-27 Steven Schubiger <stsc@member.fsf.org>
* connect.c: stdint.h inclusion added.
Thanks to Markus Duft <mduft@gentoo.org> for a similar patch.
-
+
2009-04-20 Micah Cowan <micah@cowan.name>
* Makefile.am (version.c): Fix unportable use of "echo -n".
* ftp.c (ftp_retrieve_list): Move the duplicated code that
determines the local file to a function.
-
+
* http.c (http_loop): Likewise.
* retr.c (set_local_file): New function.
2009-04-11 Steven Schubiger <stsc@member.fsf.org>
- * init.c (initialize): Run a custom SYSTEM_WGETRC when
+ * init.c (initialize): Run a custom SYSTEM_WGETRC when
provided as an environment variable.
2009-02-27 Gisle Vanem <gvanem@broadpark.no>
2009-02-21 Steven Schubiger <stsc@member.fsf.org>
- * http.c (http_loop): When a document is written to
+ * http.c (http_loop): When a document is written to
standard output, don't claim it has been saved to a file.
Addresses bug #20520.
* main.c: Declare and initialize the numurls counter.
* ftp.c, http.c: Make the counter visible here and use it.
-
+
* options.h: Remove old declaration from options struct.
2008-11-15 Steven Schubiger <stsc@members.fsf.org>
2008-11-14 Steven Schubiger <stsc@members.fsf.org>
- * main.c (format_and_print_line): Use a custom format
+ * main.c (format_and_print_line): Use a custom format
string for printing leading spaces.
2008-11-12 Micah Cowan <micah@cowan.name>
2008-09-09 Gisle Vanem <gvanem@broadpark.no>
* url.c (url_error): Use aprintf, not asprintf.
-
+
2008-09-09 Micah Cowan <micah@cowan.name>
* init.c (home_dir): Save the calculated value for home,
2008-04-22 Rabin Vincent <rabin@rab.in>
* ftp.c (ftp_get_listing): Only remove .listing if it has been
- created.
+ created.
2008-04-22 Alain Guibert <alguibert+bts@free.fr>
2008-04-16 Steven Schubiger <schubiger@gmail.com>
- * sysdep.h: Comment the defines __EXTENSIONS__ and _GNU_SOURCE
+ * sysdep.h: Comment the defines __EXTENSIONS__ and _GNU_SOURCE
out, because they're now defined independently by config.h.
2008-04-14 Steven Schubiger <schubiger@gmail.com>
* utils.c (aprintf): Now we are setting limits (1 Mb) for text
buffer when we use non-C99 vsnprintf.
-
+
2008-04-11 Micah Cowan <micah@cowan.name>
* ftp.c (getftp, ftp_loop_internal): Don't append to an existing
* Makefile.am: Converted from Makefile.in.
2007-10-02 Gisle Vanem <gvanem@broadpark.no>
-
+
* ftp.c: Use "_listing" for MSDOS (".listing" is illegal).
* url.c: Update comment for 'filechr_not_windows'.
error code.
2007-08-21 Mauro Tortonesi <mauro@ferrara.linux.it>
-
+
* http.c (http_loop): Send preliminary HEAD request if -N is given and
the destination file exists already.
2007-07-10 Mauro Tortonesi <mauro@ferrara.linux.it>
- * http.c (http_loop): Fixed the HTTP requests logic. Now it skips the
- preliminary HEAD request if either -O or --no-content-disposition are
+ * http.c (http_loop): Fixed the HTTP requests logic. Now it skips the
+ preliminary HEAD request if either -O or --no-content-disposition are
given, and neither --spider and -N are given.
2007-07-05 Micah Cowan <micah@cowan.name>
2006-10-12 Mauro Tortonesi <mauro@ferrara.linux.it>
- * convert.c (downloaded_file): Fixed bug which used to break -E -k -K
+ * convert.c (downloaded_file): Fixed bug which used to break -E -k -K
mode.
2006-08-28 Mauro Tortonesi <mauro@ferrara.linux.it>
* init.c (commands): Correctly place "contentdisposition".
2006-07-14 Mauro Tortonesi <mauro@ferrara.linux.it>
-
+
* sysdep.h: If intptr_t isn't defined, simply typedef it to long.
* http.c: Added explicit cast to int in logprintf call to remove
* connect.c: Added a few casts to intptr_t to remove compiler warnings
on 64-bit platforms.
-
+
* main.c: Disable -r, -p and -N when -O is used. Disable -k when -O is
used and multiple URLs are given. Update maintainer information.
-
+
* all: Update copyright information.
-
+
2006-07-10 KJKHyperion <hackbunny@reactos.com>
* url.c (filechr_table): Mark DEL (0x7f) as a control character
non-existing robots.txt as a broken link, and use are_urls_equal
instead of strcasecmp for referrer URLs comparison.
- * test.c: Call tests routines for are_urls_equal and
+ * test.c: Call tests routines for are_urls_equal and
is_robots_txt_url.
2006-06-26 Hrvoje Niksic <hniksic@xemacs.org>
of HTTP Content-Disposition header.
* init.c: Ditto.
-
+
* main.c: Ditto.
2006-04-11 Hrvoje Niksic <hniksic@xemacs.org>
testcases for subdir_p and dir_matches_p.
* utils.h: Changed all frontcmp occurrences to subdir_p.
-
+
* recur.c: Ditto.
-
+
* test.c: Changed type returned by test functions from char * to const
char *. Added test_subdir_p and test_dir_matches_p to the list of
tests to run.
* http.c (test_parse_content_disposition): Changed return type from
- char * to const char *.
+ char * to const char *.
2006-03-14 Mauro Tortonesi <mauro@ferrara.linux.it>
* recur.c (struct queue_element): Changed type of html_allowed member
to bool.
-
+
2006-03-09 Mauro Tortonesi <mauro@ferrara.linux.it>
* ftp.c (ftp_list): Try `LIST -a' command first and revert to `LIST'
2005-12-07 Mauro Tortonesi <mauro@ferrara.linux.it>
- * http.c: Fixed pre-download verbose output which was broken by
+ * http.c: Fixed pre-download verbose output which was broken by
HTTP code refactoring.
2005-11-23 Mauro Tortonesi <mauro@ferrara.linux.it>
* http.c: Refactored HTTP code. If -O is not used, the new code
delays the choice of the file name where the downloaded resource
will be saved until the HTTP headers have been retrieved.
- Added support for Content-Disposition header.
+ Added support for Content-Disposition header.
2005-11-19 Hrvoje Niksic <hniksic@xemacs.org>
* Makefile.in: Added basic support for unit testing.
* test.c: Ditto.
-
+
* test.h: Ditto.
-
+
2005-10-13 Daniel Stenberg <daniel@haxx.se>
* http-ntlm.c (ntlm_output): Fixed buffer overflow vulnerability.
the new ftppassword, httppassword and proxypassword commands
respectively. Document the --user and --password options in the help
string.
-
+
2005-04-27 Mauro Tortonesi <mauro@ferrara.linux.it>
* ftp.c: Add support for --user and --password.
-
+
* http.c: Add support for --user and --password.
-
+
* init.c: Deprecated ftppasswd, httppasswd, login, passwd and
proxypasswd commands. Added ftppassword, ftpuser, httppassword,
password, proxypassword and user commands.
--http-password, --password, --proxy-password and --user. Deprecated
--http-passwd and --proxy-passwd. Added documentation for new options
and removed documentation for deprecated options in the help string.
-
+
* options.h (struct options): Added user and passwd members to handle
--user and --password respectively. Renamed ftp_acc and ftp_pass
members to ftp_user and ftp_passwd for consistency.
2005-04-04 Mauro Tortonesi <mauro@ferrara.linux.it>
* string_t.c: Removed.
-
+
* string_t.h: Removed.
2005-04-02 Hrvoje Niksic <hniksic@xemacs.org>
* init.c: Renamed command passwd to ftppasswd.
2005-02-11 Mauro Tortonesi <mauro@ferrara.linux.it>
-
+
* string_t.c: Fixed a bug in do_escape and triggered escape of
backslashes in string_escape to avoid ambiguities in the result
string.
-
+
2005-02-10 Mauro Tortonesi <mauro@ferrara.linux.it>
- * string.h: Renamed to string_t.h to fix a compilation conflict
+ * string.h: Renamed to string_t.h to fix a compilation conflict
with the string.h header in the standard C library.
-
+
* string.c: Renamed to string_t.c for consistency with string.h.
-
+
* string_t.c: Ditto.
* string_t.h: Ditto.
-
+
2004-12-31 Mauro Tortonesi <mauro@ferrara.linux.it>
* string.c: New file.
before statements.
2003-10-02 Gisle Vanem <giva@bgnett.no>
-
+
* mswindows.c (run_with_timeout): For Windows: Run the 'fun' in a
thread via a helper function. Continually query the thread's
exit-code until finished or timed out.
2001-12-04 Herold Heiko <Heiko.Herold@previnet.it>
- * gen_sslfunc.c: on windows provide ssl crypto random
+ * gen_sslfunc.c: on windows provide ssl crypto random
initialization through RAND_screen(); could possibly
- be not enough for strong ssl communication (see the
+ be not enough for strong ssl communication (see the
relevant manual page from the openssl package).
2001-12-04 Hrvoje Niksic <hniksic@arsdigita.com>
* retr.c (register_all_redirections): New function.
(register_redirections_mapper): Ditto.
(retrieve_url): Register the redirections.
- (retrieve_url): Make the string "Error parsing proxy ..."
+ (retrieve_url): Make the string "Error parsing proxy ..."
translatable.
* res.c (add_path): Strip leading slash from robots.txt paths so
* main.c: Remove --wait / --waitretry backwards compatibility
code.
-
+
2001-11-19 Hrvoje Niksic <hniksic@arsdigita.com>
* main.c (main): Use it.
2001-04-10 Jan Prikryl <prikryl@cg.tuwien.ac.at>
* ftp.c (getftp): Convert initial FTP directory from VMS to UNIX
- notation for VMS servers.
+ notation for VMS servers.
(ftp_retrieve_dirs): Do not prepend '/' to f->name when
odir is an empty string.
* Makefile.in: Include @SSL_INCLUDES@ substition in INCLUDES.
Define top_builddir. Link wget with libtool so the user doesn't
- have to supply a bunch of custom environment variables to
+ have to supply a bunch of custom environment variables to
correctly link with the OpenSSL shared libraries.
2001-03-06 Hack Kampbjorn <hack@hackdata.com>
* url.c: move the #define of DEFAULT_HTTP_PORT, DEFAULT_FTP_PORT
and DEFAULT_HTTPS_PORT to the header file so it can be use in the
- rest of the code.
+ rest of the code.
* url.h: Ditto
2001-03-01 Jonas Jensen <bones@huleboer.dk>
listing without correct permissons).
* ftp.h (stype): Added ST_MACOS to identify the NetPresenz MacOS
- FTP server.
+ FTP server.
* ftp.c (ftp_retrieve_list): New mirroring logic: A remote file
shall be donwloaded only when it's newer than the local copy or
when it has the same timeestamp but its size is different. ST_VMS
- and ST_MACOS as special cases that lie about file size.
+ and ST_MACOS as special cases that lie about file size.
* ftp-ls.c (ftp_parse_ls): Support for ST_MACOS.
* Makefile.in: Removed dependency on ftpparse library due to unclear
- copyright issues and absence of any feedback to our queries.
+ copyright issues and absence of any feedback to our queries.
* ftp-ls.c: Removed dependency on ftpparse library due to unclear
- copyright issues and absence of any feedback to our queries.
+ copyright issues and absence of any feedback to our queries.
(ftp_parse_ls): Added a warning message when remote server system
- does not seem to be suported by wget.
+ does not seem to be suported by wget.
(ftp_parse_vms_ls): New function for parsing VMS ftp
server listing output.
(clean_line): New function responsible for removing
end-of-line characters from FTP listing texts.
* ftp.c (getftp): Global variables pwd and host_type are now
- member of the ccon structure under names ccon.id and ccon.rs.
+ member of the ccon structure under names ccon.id and ccon.rs.
* ftp.h (struct ccon): Added formed global variables from ftp.c,
enum stype rs (remote system identification) and char *id (initial
looking at the dates would make you think that things went into
1.6 that actually just went into the 1.7-dev branch. Added "[Not
in 1.6 branch.]" where appropriate to clarify.
-
+
2000-12-30 Dan Harkless <wget@harkless.org>
* ftp.c, http.c: Applied Hack Kampbjørn <hack@hackdata.com>'s
* ftp.h (stype): New enum, distinguishes UNIX, VMS, and "other"
FTP servers.
- * ftp.c: New static wariables host_type, pwd, and pwd_len.
+ * ftp.c: New static wariables host_type, pwd, and pwd_len.
(getftp): Support for VMS. Support for FTP servers that do not
place you in the root directory after login.
(ftp_retrieve_list): VMS is silent about the real file size, issue
* ftp.h (stype): New enum, distinguishes UNIX, VMS, and "other"
FTP servers.
- * ftp.c: New static wariables host_type, pwd, and pwd_len.
+ * ftp.c: New static wariables host_type, pwd, and pwd_len.
(getftp): Support for VMS. Support for FTP servers that do not
place you in the root directory after login.
(ftp_retrieve_list): VMS is silent about the real file size, issue
* ftp.c (ftp_loop_internal): --delete-after wasn't implemented for
files downloaded via FTP. Per a comment, .listing files were not
- counted towards number of bytes and files downloaded because they're
+ counted towards number of bytes and files downloaded because they're
deleted anyway. Well, they aren't under -nr, so count them then.
* init.c: Manually applied Rob Mayoff's 1.5.3 patch to add
--bind-address, alphabetizing, changing coding style to GNU's,
commenting, and renaming cmd_ip_address() to cmd_address() to
imply hostnames also okay.
-
+
* main.c (main): --delete-after didn't delete the root of the
tree. Ignore --convert-links if --delete-after was specified.
Manually applied Rob Mayoff's 1.5.3 patch to add --bind-address,
fixing duplicate use of added-since-1.5.3 case value.
(print_help): Clarified that --delete-after deletes local files.
Rob forgot to add a line for his new --bind-address option.
-
+
* options.h (struct options): Manually applied Rob Mayoff's patch
to add --bind-address (bind_address structure member).
-
+
* recur.c (recursive_retrieve): Improved comment; added DEBUGP().
Ignore --convert-links if --delete-after was specified.
-
+
* retr.c (retrieve_from_file): Just added a DEBUGP().
-
+
2000-10-19 Dan Harkless <wget@harkless.org>
* ftp.c (ftp_loop_internal): downloaded_file() enumerators changed.
(getftp): Applied Piotr Sulecki <Piotr.Sulecki@ios.krakow.pl>'s
patch to work around FTP servers that incorrectly respond to the
"REST" command with the remaining size rather than the total file size.
-
+
* http.c (gethttp): Improved a comment and added code to tack on
".html" to text/html files without that extension when -E specified.
(http_loop): Use new downloaded_file() enumerators and deal with
(downloaded_file): Now takes and returns a downloaded_file_t.
* wget.h (unnamed "dt" enum): Added ADDED_HTML_EXTENSION enumerator.
-
+
2000-10-09 Dan Harkless <wget@harkless.org>
* html.c (htmlfindurl): Added unneeded initialization to quiet warning.
-
+
* main.c (print_help): Clarified what --retr-symlinks does.
-
+
2000-09-15 John Daily <jdaily@cyberdude.com>
* init.c: Add support for "always" and "never" values to allow
2000-08-30 Dan Harkless <wget@harkless.org>
* ftp.c (ftp_retrieve_list): Use new INFINITE_RECURSION #define.
-
+
* html.c: htmlfindurl() now takes final `dash_p_leaf_HTML' parameter.
- Wrapped some > 80-column lines. When -p is specified and we're at a
- leaf node, do not traverse <A>, <AREA>, or <LINK> tags other than
+ Wrapped some > 80-column lines. When -p is specified and we're at a
+ leaf node, do not traverse <A>, <AREA>, or <LINK> tags other than
<LINK REL="stylesheet">.
-
+
* html.h (htmlfindurl): Now takes final `dash_p_leaf_HTML' parameter.
-
+
* init.c: Added new -p / --page-requisites / page_requisites option.
* main.c (print_help): Clarified that -l inf and -l 0 both allow
infinite recursion. Changed the unhelpful --mirrior description
to simply give the options it's equivalent to. Added new -p option.
(main): Added some comments; handle new -p / --page-requisites.
-
+
* options.h (struct options): Added new page_requisites field.
* recur.c: Changed "URL-s" to "URLs" and "HTML-s" to "HTMLs".
* url.h (get_urls_html): Now takes final `dash_p_leaf_HTML' parameter.
* wget.h: Added some comments and new INFINITE_RECURSION #define.
-
+
2000-08-23 Dan Harkless <wget@harkless.org>
* main.c (print_help): -B / --base was not mentioned.
* host.c (store_hostaddress): R. K. Owen's patch introduces a
"left shift count >= width of type" warning on 32-bit
architectures. Got rid of it by tricking the compiler w/ a variable.
-
+
* url.c (UNSAFE_CHAR): The macro didn't include all the illegal
characters per RFC1738, namely everything above '~'. It also
generated a warning on OSes where char =~ unsigned char. Fixed.
-
+
1998-10-17 Hrvoje Niksic <hniksic@srce.hr>
* http.c (http_process_type): Removed needless strdup(), a memory
* html.c (idmatch): Implemented checking of my new --follow-tags
and --ignore-tags options.
-
+
* init.c (commands): Added comment reminding people adding new
entries doing allocation to add corresponding freeing in cleanup().
(commands): Added new followtags and ignoretags commands.
(cleanup): Free storage for new followtags and ignoretags.
-
+
* main.c: Use of "comma-separated list" was random -- normalized
it. Did some alphabetization. Added comments pointing out
"Options without arguments" and "Options accepting an argument"
currently undocumented. Added comment that Heiko's --waitretry is
partially undocumented (mentioned in --help but not in
wget.texi). Moved improperly sorted 24, 129, and 'G' cases.
-
+
* options.h (struct options): Added new fields follow_tags and
- ignore_tags.
-
+ ignore_tags.
+
* wget.h: Added "#define EQ 0" so we can say "strcmp(a, b) == EQ".
-
+
2000-03-02 Dan Harkless <wget@harkless.org>
* ftp.c (ftp_loop_internal): Heiko introduced "suggest explicit
braces to avoid ambiguous `else'" warnings. Eliminated them.
-
+
* http.c (gethttp): Dan Berger's query string patch is totally
bogus. If you have two different URLs, gen_page.cgi?page1 and
get_page.cgi?page2, they'll both be saved as get_page.cgi and the
option there?).
(http_loop): Heiko introduced "suggest explicit braces to avoid
ambiguous `else'" warnings. Eliminated them.
-
+
* main.c: Heiko's --wait / --waitretry backwards compatibility
code looks to have been totally untested -- automatic variable
'wr' was used without being initialized, and a long int was passed
into setval()'s char* val parameter.
-
+
* recur.c (parse_robots): Applied Edward J. Sabol
<sabol@alderaan.gsfc.nasa.gov>'s patch for Guan Yang's reported
problem with "User-agent:<space>*<space>" lines in robots.txt.
-
+
* url.c (parseurl, str_url): Removing Dan Berger's code (see
http.c above for explanation).
-
+
1999-08-25 Heiko Herold <Heiko.Herold@previnet.it>
* ftp.c: Respect new option waitretry.
* ftp.c (ftp_loop_internal): Call new downloaded_file() function,
even though we don't do conversion on HTML files retrieved via
- FTP, so _current_ usage of downloaded_file() makes this call unneeded.
+ FTP, so _current_ usage of downloaded_file() makes this call unneeded.
(ftp_retrieve_list): Added a comment saying where we need to
stat() a .orig file if FTP'd HTML file conversion is ever implemented.
(ftp_retrieve_list): "Local file '%s' is more recent," is sometimes
a lie -- reworded as "Server file no newer than local file '%s' --".
-
+
* http.c (http_loop): Fixed a typo and clarified a comment.
(http_loop): When -K and -N are specified together, compare size
and timestamp of server file X against local file X.orig (if
-- reworded as "Server file no newer than local file '%s' --".
(http_loop): Call new downloaded_file() function to prevent
wrongful overwriting of .orig file when -N is specified.
-
+
* url.c (convert_links): When -K specified, only rename X to
X.orig if downloaded_file() returns TRUE. Otherwise when we skip
file X due to -N, we clobber an X.orig from a previous invocation.
(convert_links): Added a note asking anyone who understands how
multiple URLs can correspond to a single file to comment it.
(downloaded_file): Added this new function.
-
+
* url.h (downloaded_file): Added prototype for this new function
as well as its downloaded_file_t enum type.
1998-09-21 Hrvoje Niksic <hniksic@srce.hr>
- * host.c (ftp_getaddress): Don't warn when reverse-lookup of local
+ * host.c (ftp_getaddress): Don't warn when reverse-lookup of local
address doesn't yield FQDN.
1998-09-21 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1998-09-10 Howard Gayle <howard@fjst.com>
- * ftp.c (ftp_retrieve_list): Don't update the time stamp of a file
+ * ftp.c (ftp_retrieve_list): Don't update the time stamp of a file
not retrieved.
1998-06-27 Hrvoje Niksic <hniksic@srce.hr>
* main.c (main): Updated `--version' and `--help' output, as per
Francois Pinard's suggestions.
- * main.c: Include locale.h; call setlocale(), bindtextdomain() and
+ * main.c: Include locale.h; call setlocale(), bindtextdomain() and
textdomain().
* config.h.in: Define stubs for I18N3.