hniksic
976cc5bfca
[svn] Define the IF_DEBUG macro.
2005-06-21 18:26:22 -07:00
hniksic
908d7a4bce
[svn] Don't cast return type of malloc/realloc. Assume ANSI C signal handlers.
2005-06-19 16:03:27 -07:00
hniksic
277e840a0f
[svn] Remove K&R support.
2005-06-19 15:34:58 -07:00
hniksic
2307fcc5c2
[svn] Announce the beginning and the end of the SSL handshake when in debug mode.
...
Avoid the use of the %p format.
2005-05-14 12:36:30 -07:00
hniksic
c035e39b7d
[svn] Declare gettext when libintl.h is unavailable.
2005-05-04 12:11:14 -07:00
hniksic
8f935cf74c
[svn] Add --random-file option. Bail out in case of error during
...
SSL initialization.
2005-04-27 14:08:40 -07:00
hniksic
62ecd29a84
[svn] Use __builtin_expect to provide a hint that -d is unlikely.
2005-04-10 12:54:02 -07:00
hniksic
b90b20763b
[svn] cmd_bytes now stores wgint, not long.
2005-03-19 09:29:25 -08:00
hniksic
50d143f3fe
[svn] Fix a possible race condition when opening files.
...
Published in <87r7j6vy9g.fsf@xemacs.org>.
2005-03-04 11:26:18 -08:00
hniksic
ef22bf610a
[svn] Large file support added. Published in <87psyr6jn7.fsf@xemacs.org>.
2005-02-23 14:21:04 -08:00
hniksic
0ff9eb4727
[svn] Restructure generation of HTTP requests. Allow headers specified with
...
--header to override generated headers.
2003-11-29 10:40:01 -08:00
hniksic
509154dc81
[svn] Use the new function retryable_socket_connect_error instead of the
...
CONNECT_ERROR macro.
2003-11-13 14:27:38 -08:00
hniksic
1cfde0c27d
[svn] Correctly check for unsupported socket families.
2003-11-13 12:26:18 -08:00
hniksic
0f99d1f220
[svn] Rewrote bindport and acceptport to use a more standard calling convention.
2003-11-13 09:05:06 -08:00
hniksic
b997a9d34f
[svn] Don't parenthesize argument to N_.
2003-11-02 16:28:53 -08:00
hniksic
095d89995e
[svn] Abort on xfree(NULL).
2003-11-02 13:12:49 -08:00
hniksic
e2e9b753e4
[svn] Retired the `boolean' type. Renamed FREE_MAYBE to xfree_null and moved the
...
definition from wget.h to xmalloc.h. Moved the DEFAULT_LOGFILE
define to log.h. Moved the INFINITE_RECURSION define to recur.h.
2003-11-02 11:56:37 -08:00
hniksic
5f0a2b3f08
[svn] Use new macros xnew, xnew0, xnew_array, and xnew0_array in various places.
2003-10-31 06:55:50 -08:00
hniksic
370ff7a576
[svn] Moved malloc-related code to xmalloc.c. Defined new macros xnew, xnew0,
...
xnew_array, and xnew0_array. Created xmalloc.h and log.h to unclutter
wget.h.
2003-10-31 06:31:56 -08:00
hniksic
6f1250b1c6
[svn] Updated IPv6 code.
2003-10-29 15:13:25 -08:00
hniksic
38ea4d5dad
[svn] Renamed DEBUG to ENABLE_DEBUG.
2003-10-07 17:05:51 -07:00
hniksic
6359e38d96
[svn] Improve documentation of cookie code.
2003-10-06 17:47:08 -07:00
hniksic
eec3ea392d
[svn] Better document html-parse macros.
2003-10-02 15:20:44 -07:00
hniksic
65cec8deee
[svn] Fix memory leak in a rare case in url.c.
...
Translate error messages from url_parse().
2003-10-01 12:59:48 -07:00
hniksic
c06d32a309
[svn] Treat xhtml files just like regular html.
...
By Matthew J. Mellon.
2003-09-21 05:02:57 -07:00
hniksic
7b5fb50cb1
[svn] Renamed wget.h XDIGIT-related macros to (hopefully) clearer names.
2003-09-19 07:08:37 -07:00
hniksic
ea8a108b1f
[svn] Implement xdigit_to_xchar more efficiently.
2003-09-15 10:50:43 -07:00
hniksic
30ac043b0a
[svn] New option --retry-connrefused from Ahmod Dancy.
2003-09-04 14:34:58 -07:00
hniksic
b2be7522c7
[svn] Update the license to include the OpenSSL exception.
2002-05-17 19:16:36 -07:00
hniksic
8c3287dabf
[svn] Remove the OPTIONS_DEFINED_HERE kludge.
...
Published in <sxs4rijqmhv.fsf@florida.arsdigita.de>.
2002-04-10 14:20:55 -07:00
hniksic
562ab4ae8a
[svn] (DO_REALLOC_FROM_ALLOCA): Multiply with sizeof(type) when calling
...
xmalloc and memcpy.
Submitted by Andreas Damm in
<Pine.LNX.4.33.0202011632280.1281-200000@gate.rad-ab.u-net.com>.
2002-02-18 21:32:59 -08:00
hniksic
1365950c01
[svn] Logging system bugfixes and improvements.
...
Published in <sxsofl7vdyo.fsf@florida.arsdigita.de>.
2001-12-09 21:31:45 -08:00
hniksic
222e9465b7
[svn] Implemented breadth-first retrieval.
...
Published in <sxsherjczw2.fsf@florida.arsdigita.de>.
2001-11-24 19:10:34 -08:00
hniksic
8e082d2558
[svn] Remove accidentally committed DEBUG_MALLOC.
2001-11-22 21:01:32 -08:00
hniksic
cdcf67a5bd
[svn] Big progress bar update.
...
Published in <sxsn11ehyn1.fsf@florida.arsdigita.de>.
2001-11-22 20:59:52 -08:00
hniksic
4d352013ac
[svn] Replace opt.no_flush with a function to disable/enable flushing.
...
Published in <sxssnb6imyz.fsf@florida.arsdigita.de>.
2001-11-22 12:13:13 -08:00
hniksic
d5be8ecca4
[svn] Rewrite parsing and handling of URLs.
...
Published in <sxs4rnnlklo.fsf@florida.arsdigita.de>.
2001-11-21 16:24:28 -08:00
hniksic
b4e6054de9
[svn] Check for do_realloc_newsize in loop condition because we're no longer
...
setting SIZEVAR here.
2001-06-26 02:48:51 -07:00
hniksic
d015d3cbd3
[svn] Fix access violation bug in DO_REALLOC_FROM_ALLOCA.
...
Published in <sxspubriqay.fsf@florida.arsdigita.de>.
2001-06-26 01:45:09 -07:00
hniksic
0b056d1720
[svn] Update copyright notices.
2001-05-27 12:35:15 -07:00
hniksic
d70101ea4e
[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".
2001-04-28 09:22:20 -07:00
hniksic
61bb00adc0
[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.
2001-04-13 21:11:35 -07:00
hniksic
2cfb2d2ef6
[svn] Added support for cookies.
2001-04-08 15:25:24 -07:00
hniksic
a52aaeb451
[svn] Make sure -c doesn't truncate the file.
...
Published in <sxsofuhi4kc.fsf@florida.arsdigita.de>.
2001-04-01 13:04:21 -07:00
hniksic
1a6058b1ec
[svn] Applied Philipp Thomas's safe-ctype patch. Published in
...
<20010330025159.U21662@jeffreys.suse.de>.
2001-03-30 14:36:59 -08:00
hniksic
07f60f19a4
[svn] Applied Christian Fraenkel's patch "custom certificate patch for wget-1.7+dev;
...
2nd try", published in <200102082132220160.00474E73@pop.gmx.net>.
It adds two options for custom certificates.
2001-02-10 14:33:31 -08:00
dan
f105b3e43f
[svn] Changed my address from dan-wget@dilvish.speed.net to wget@harkless.org
...
everywhere -- dilvish will probably be going away soon.
2000-12-31 03:18:37 -08:00
hniksic
bdea0b3bf6
[svn] Made xfree alias to free if memory debugging is not used.
...
From <sxsd7ezd7p2.fsf@florida.arsdigita.de>.
2000-12-10 18:17:44 -08:00
hniksic
7828e81c79
[svn] Committed C. Frankel's SSL patch.
2000-12-05 15:09:41 -08:00
hniksic
1cddc05edb
[svn] Committed memory debugging stuff.
...
Published in <sxs1yw34pt4.fsf@florida.arsdigita.de>.
2000-11-22 14:15:45 -08:00