]> sjero.net Git - wget/blob - src/ChangeLog
[svn] Make errors in command-line options fatal.
[wget] / src / ChangeLog
1 2003-09-21  Hrvoje Niksic  <hniksic@xemacs.org>
2
3         * main.c (main): Use setoptval() for setting the options.  Use
4         run_command for `-e'.
5
6         * init.c (parse_line): Rewritten to return COMIND right away.
7         Changed linkage to static.
8         (run_wgetrc): Use the available comind when calling setval, so it
9         doesn't have to be computed twice.
10         (setval_internal): New function, runs the command's action without
11         any error checking.
12         (setoptval): New function, does what setval used to do, but exits
13         in case of error.
14         (run_command): New function.
15
16 2003-09-21  Hrvoje Niksic  <hniksic@xemacs.org>
17
18         * connect.c (select_fd): Change MAXTIME's type to double.  Handle
19         its decimal part.
20
21         * retr.c (sleep_between_retrievals): In the random-wait case, use
22         random_float() to wait between 0 and 2*opt.wait seconds.
23
24         * utils.c (run_with_timeout): Accept `double' timeouts.  Correctly
25         handle timeout values in (0, 1) range.
26         (random_float): New function.
27
28         * options.h (struct options): Change the types of wait, waitretry,
29         and timeout to double.
30
31         * init.c (cmd_time): Accept floating point time.
32
33 2003-09-20  Hrvoje Niksic  <hniksic@xemacs.org>
34
35         * retr.c (get_contents): Cosmetic fixes.
36
37 2003-09-20  Hrvoje Niksic  <hniksic@xemacs.org>
38
39         * url.c (uri_merge): Get rid of uri_merge_1.
40         (uri_merge): Merge "foo//", "bar" as "foo//bar", not "foo///bar",
41         i.e. don't add an extra slash merely because BASE ends with two
42         slashes.
43         (parse_credentials): Renamed from parse_uname.  Rewrittern in
44         standard [beg, end) calling style.
45         (url_skip_credentials): Renamed from url_skip_uname.  Made static.
46         (url_skip_credentials): Include # and ; as terminators.  Old code
47         would mistakenly consider "http://foo.com#hniksic@iskon.hr" to
48         contain a username.
49         (url_skip_scheme): Removed because it was unused.
50         (url_has_scheme): Require "scheme" to be at least one char long.
51
52 2003-09-19  Hrvoje Niksic  <hniksic@xemacs.org>
53
54         * url.c (url_file_name): Expect NULL dir_prefix.
55
56         * init.c (cmd_file): Use a macro to prevent multiple #ifdef
57         WINDOWS.
58         (defaults): Set dir_prefix to NULL by default.
59
60 2003-09-19  Hrvoje Niksic  <hniksic@xemacs.org>
61
62         * safe-ctype.h (_sch_test): Cast BIT to unsigned char, like latest
63         gcc does.
64
65 2003-09-19  Hrvoje Niksic  <hniksic@xemacs.org>
66
67         * wget.h (BOUNDED_TO_ALLOCA): Evaluate PLACE only once.
68         (ARRAY_SIZE): Renamed to countof.  All callers updated.
69
70 2003-09-19  Hrvoje Niksic  <hniksic@xemacs.org>
71
72         * main.c (main): New option --strict-comments.
73
74         * html-parse.c (find_comment_end): New function: simple BM search
75         for "-->".
76         (map_html_tags): Use it if looking at a comment and not in strict
77         comments mode.
78
79 2003-09-17  Aurelien Marchand  <artaxerxes@users.sf.net>
80
81         * ftp.h: Added OS400 system in enum
82         * ftp-basic.c: recognize OS400 systems
83         * ftp.c: don't prepend the CWD if talking to OS400, since it
84         breaks the change in library
85
86 2003-09-18  Hrvoje Niksic  <hniksic@xemacs.org>
87
88         * retr.c (get_contents): Pass the correct argument to ssl_iread.
89
90 2003-09-18  Hrvoje Niksic  <hniksic@xemacs.org>
91
92         * safe-ctype.h: Don't #define ctype.h macros to errors because
93         that loses when someone #include's ctype.h after safe-ctype.h.
94
95 2003-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
96
97         * url.c: Undef U, W, C after use.
98
99 2003-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
100
101         * init.c (cmd_spec_restrict_file_names): Allow the OS setting to
102         be augmented by ",nocontrol" which means don't escape the control
103         characters, but otherwise keep OS settings.
104
105         * url.c (file_unsafe_char): Deleted.
106         (append_uri_pathel): Query filechr_table directly.
107         (filechr_table): Separated Unix, Windows, and control-unsafe
108         characters.
109
110 2003-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
111
112         * url.c (url_escape_1): New function.
113         (url_escape): Use it.
114         (sync_path): Handle pathological cases where u->file and u->dir
115         contain really strange characters.
116         (ENCODE): Deleted.
117         (REENCODE): Deleted.
118
119 2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
120
121         * url.c (url_file_name): Don't reallocate FNAME if the file
122         doesn't exist, as is usually the case.
123
124         * utils.c (unique_name): New flag allow_passthrough.
125
126 2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
127
128         * utils.c (wtimer_sys_diff): Convert the time difference to signed
129         __int64, then to double.  This works around MS VC++ 6 which can't
130         convert unsigned __int64 to double directly.
131
132 2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
133
134         * Makefile.in (clean): Also remove the core.<number> files
135         produced by recent Linux systems.
136
137 2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
138
139         * http.c (post_file): Don't pad the file if it's not large
140         enough.  Bail out instead.
141
142 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
143
144         * retr.c (get_contents): Reduce the buffer size to the amount of
145         data that may pass through for one second.  This prevents long
146         sleeps when limiting bandwidth.
147
148         * connect.c (connect_to_one): Reduce the socket's RCVBUF when
149         bandwidth limitation to small values is requested.
150
151 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
152
153         * progress.c (update_speed_ring): Moved the speed ring update to a
154         separate function and documented it better.
155
156         * progress.c: Use `double' for most timers to support granularity
157         smaller than 1ms.
158
159 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
160
161         * wget.h (XDIGIT_TO_XCHAR): Implement as index into a literal
162         string.
163         (XDIGIT_TO_xchar): Ditto.
164
165 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
166
167         * utils.c: Change the type of timer-related functions from long to
168         double, for better precision.  On machines supporting gettimeofday
169         the timers now work with granularity of less than one millisecond.
170
171 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
172
173         * cookies.c (parse_set_cookies): Fixed the parser to handle more
174         edge conditions.
175         (test_cookies): New function, contains a test suite for
176         parse_set_cookies.
177
178 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
179
180         * url.c (strpbrk_or_eos): Implement as a macro under Gcc.
181
182 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
183
184         * cookies.c (parse_set_cookies): Allow trailing space in
185         set-cookies header.  Also, allow any amount of whitespace, not
186         only one character.  Allow empty set-cookies header without
187         spewing an error.
188
189 2003-09-14  Hrvoje Niksic  <hniksic@xemacs.org>
190
191         * url.c (append_uri_pathel): Use opt.restrict_file_names when
192         calling file_unsafe_char.
193
194         * init.c: New command restrict_file_names.
195
196         * main.c (main): New option --restrict-file-names[=windows,unix].
197
198         * url.c (url_file_name): Renamed from url_filename.
199         (url_file_name): Add directory and hostdir prefix here, not in
200         mkstruct.
201         (append_dir_structure): New function, does part of the work that
202         used to be in mkstruct.  Iterates over path elements in u->path,
203         calling append_uri_pathel on each one to append it to the file
204         name.
205         (append_uri_pathel): URL-unescape a path element and reencode it
206         with a different set of rules, more appropriate for handling of
207         files.
208         (file_unsafe_char): New function, uses a lookup table to decide
209         whether a character should be escaped for use in file name.
210         (append_string): New utility function.
211         (append_char): Ditto.
212         (file_unsafe_char): New argument restrict_for_windows, decide
213         whether Windows file names should be escaped in run-time.
214
215         * connect.c: Include <stdlib.h> to get prototype for abort().
216
217 2003-09-14  Hrvoje Niksic  <hniksic@xemacs.org>
218
219         * utils.c (wtimer_sys_set): Extracted the code that sets the
220         current time here.
221         (wtimer_reset): Call it.
222         (wtimer_sys_diff): Extracted the code that calculates the
223         difference between two system times here.
224         (wtimer_elapsed): Call it.
225         (wtimer_elapsed): Don't return a value smaller than the previous
226         one, which could previously happen when system time is set back.
227         Instead, reset start time to current time and note the elapsed
228         offset for future calculations.  The returned times are now
229         guaranteed to be monotonically nondecreasing.
230
231 2003-09-10  Hrvoje Niksic  <hniksic@xemacs.org>
232
233         * host.c (lookup_host): Print the result of the DNS lookup.
234
235 2003-09-10  Hrvoje Niksic  <hniksic@xemacs.org>
236
237         * init.c (cmd_boolean): Accept yes/no along with on/off.
238         (cmd_lockable_boolean): Ditto.
239
240 2003-09-10  Hrvoje Niksic  <hniksic@xemacs.org>
241
242         * init.c: New command dns_cache.
243
244         * main.c (main): New option --dns-cache[=off].
245
246 2003-09-09  Hrvoje Niksic  <hniksic@xemacs.org>
247
248         * config.h.in: Initialize HAVE_GETADDRINFO and ENABLE_IPV6.
249
250         * all: Use #ifdef ENABLE_IPV6 instead of the older INET6.  Use
251         HAVE_GETADDRINFO for getaddrinfo-related stuff.
252
253 2003-09-09  Hrvoje Niksic  <hniksic@xemacs.org>
254
255         * url.c (url_parse): Return an error if the URL contains a [...]
256         IPv6 numeric address and we don't support IPv6.
257
258 2003-09-05  Hrvoje Niksic  <hniksic@xemacs.org>
259
260         * url.c (is_valid_ipv6_address): Modified to not require
261         zero-terminated strings.
262         (is_valid_ipv4_address): Ditto.
263
264 2003-09-05  Mauro Tortonesi <mauro@deepspace6.net>
265
266         src/url.c: added RFC 2732 compliance for URL parsing. The
267         functions is_*_address valid are a modified version of
268         glibc 2.3.2 inet_pton's code.
269
270 2003-09-03  Ahmon Dancy  <dancy@dancysoft.com>
271
272         * main.c init.c options.h: Added --retry-connrefused option so
273         that Connection Refused failures are treated as non-fatal (when
274         trying to retrieve from busy servers).
275
276         * wget.h: New CONNECT_ERROR macro for encapsulating this
277         modification.
278
279         * ftp.c http.c : Use CONNECT_ERROR macro in places where
280         ECONNREFUSED was checked.
281
282 2003-01-11  Ian Abbott  <abbotti@mev.co.uk>
283
284         * ftp.c (ftp_retrieve_glob): Reject insecure filenames as determined
285         by calling new function has_insecure_name_p.  This is based on a
286         patch by Red Hat.
287
288         * fnmatch.c (has_insecure_name_p): New function: returns non-zero
289         if filename starts with `/' or contains `../' and is therefore
290         considered insecure.
291
292         * fnmatch.h: Declare has_insecure_name_p().
293
294 2002-08-03  Hrvoje Niksic  <hniksic@xemacs.org>
295
296         * init.c (cmd_file): Allocate RESULT correctly.
297
298 2002-07-24  Hrvoje Niksic  <hniksic@xemacs.org>
299
300         * recur.c (retrieve_tree): Check whether downloaded_html_set is
301         non-NULL before using it.
302
303 2002-05-27  Hrvoje Niksic  <hniksic@arsdigita.com>
304
305         * html-parse.c (NAME_CHAR_P): Allow almost any character here.
306
307 2002-05-24  Hrvoje Niksic  <hniksic@arsdigita.com>
308
309         * progress.c (bar_set_params): Fall back to dot progress if the
310         terminal type is "emacs".
311
312 2002-05-20  Hrvoje Niksic  <hniksic@arsdigita.com>
313
314         * log.c: Don't #undef WGET_USE_STDARG.
315
316 2002-05-16  Hrvoje Niksic  <hniksic@arsdigita.com>
317
318         * hash.c (prime_size): Store the offset of the prime number in the
319         prime table.  When searching, start with the given offset.
320         (hash_table_new): Pass the pointer to ht->prime_offset to
321         prime_size.
322         (grow_hash_table): Ditto.
323         (prime_size): Make 13 the first prime to make empty hash tables
324         slightly smaller.
325
326 2002-05-16  Ian Abbott  <abbotti@mev.co.uk>
327
328         * recur.c (download_child_p): Minor optimization to avoid an
329         unnecessary additional call to schemes_are_similar_p function.
330
331 2002-05-16  Ian Abbott  <abbotti@mev.co.uk>
332
333         * url.c (schemes_are_similar_p): New function to test enumerated
334         scheme codes for similarity.
335
336         * url.h: Declare it.
337
338         * recur.c (download_child_p): Use it to compare schemes.  This
339         also fixes a bug that allows hosts to be spanned (without the
340         -H option) when the parent scheme is https and the child's is
341         http or vice versa.
342
343 2002-05-14  Bill Richardson  <bill@riverstonenet.com>
344
345         * ftp.c (getftp): Don't ftruncate stdout.
346
347         * http.c (gethttp): Don't ftruncate stdout.
348
349 2002-05-09  Ian Abbott  <abbotti@mev.co.uk>
350
351         * cmpt.c (strptime_internal): Synched with glibc-2.1.3.
352         (get_number): Ditto.
353         (get_alt_number): Ditto.
354         (__isleap): New function-like macro used by strptime.
355         (day_of_the_week): New function used by strptime.
356         (day_of_the_year): Ditto.
357         (__mon_yday): Now shared by mktime and strptime implementations.
358
359 2002-05-08  Hrvoje Niksic  <hniksic@arsdigita.com>
360
361         * cookies.c (check_domain_match): Use match_tail in case
362         insensitive mode.
363
364         * utils.c (match_tail): Allow the caller to specify case
365         insensitive mode.
366
367         * cookies.c (store_cookie): When expiry_time is 0, print it as
368         undefined, not indefinite.
369
370 2002-05-07  Ian Abbott  <abbotti@mev.co.uk>
371
372         * cookies.c (cookie_jar_process_set_cookie): Do not store
373         discarded cookie.
374
375 2002-04-21  Hrvoje Niksic  <hniksic@arsdigita.com>
376
377         * cookies.c (check_domain_match): Allow cookies to be set for
378         subdomains of unknown top-level domains under some circumstances.
379
380 2002-04-21  Thomas Lussnig  <thomas.lussnig@bewegungsmelder.de>
381
382         * gen_ssl.c:
383         - allow checking of server cert
384         - allow defining client cert type
385         - allow limit of ssl protocol
386         - check more return values
387         - added debug message on break
388
389 2002-04-21  Hrvoje Niksic  <hniksic@arsdigita.com>
390
391         * recur.c (download_child_p): Revert order of items in check
392         number 6 for clarity.
393
394 2002-04-20  Hrvoje Niksic  <hniksic@arsdigita.com>
395
396         * init.c: Ditto.
397
398         * main.c: Ditto.
399
400         * http.c: Use the new interface.
401
402         * cookies.c: Provide an OO-style "cookie jar" interface to enable
403         separate cookie jars.
404
405         * http.c (http_atotm): Declare argument as const.
406
407 2002-04-20  Hrvoje Niksic  <hniksic@arsdigita.com>
408
409         * cookies.c (cookie_new): Default to PORT_ANY.
410         (find_cookie_chain_exact): Only search by DOMAIN.
411         (find_matching_cookie): Also check that PORT matches.
412         (store_cookie): Only match the domain.
413         (set_cookie_header_cb): When a cookie "fakes" a domain, assume it
414         is valid for that host rather than discarding it completely.
415         (find_matching_chains): Don't search by PORT.
416         (matching_cookie): Also match PORT.
417         (load_cookies): Set the port if specified, otherwise leave it as
418         ANY.
419         (save_cookies_mapper): Save the port if specified, otherwise leave
420         it empty.
421
422 2002-04-19  Thomas Lussnig  <thomas.lussnig@bewegungsmelder.de>
423
424         * init.c: The option `egdfile' was not in sort order.
425
426 2002-04-16  Hrvoje Niksic  <hniksic@arsdigita.com>
427
428         * ftp.c (getftp): Treat directories that begin with <letter>: as
429         absolute.
430         (getftp): Strip trailing slashes from con->id before merging it
431         with TARGET.
432
433 2002-04-16  Hrvoje Niksic  <hniksic@arsdigita.com>
434
435         * http.c (gethttp): If Content-Type is not given, assume
436         text/html.
437
438 2002-04-15  Hrvoje Niksic  <hniksic@arsdigita.com>
439
440         * recur.c (download_child_p): Don't ignore rejection of HTML
441         documents that are themselves leaves of recursion.
442
443 2002-04-15  Ian Abbott  <abbotti@mev.co.uk>
444
445         Makefile.in: Updated several dependencies for object files to take
446         account of nested include files.
447
448 2002-04-15  Ian Abbott  <abbotti@mev.co.uk>
449
450         Makefile.in: The target `connect$o' (connect.o) now depends on
451         `utils.h'
452
453 2002-04-15  Ian Abbott  <abbotti@mev.co.uk>
454
455         * host.c (SET_H_ERRNO): New function-like macro to set `h_errno'.
456         (gethostbyname_with_timeout): Use it.
457
458         * utils.c: Don't define `SETJMP()', `run_with_timeout_env' or
459         `abort_run_with_timeout()' when `USE_SIGNAL_TIMEOUT' is undefined.
460
461 2002-04-15  Hrvoje Niksic  <hniksic@arsdigita.com>
462
463         * host.c (getaddrinfo_with_timeout): New function.
464         (gethostbyname_with_timeout): Ditto.
465         (lookup_host): Use them.
466
467 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
468
469         * utils.c (number_to_string): Handle the case when n < -INT_MAX.
470
471 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
472
473         * init.c (comind): Use a marginally faster implementation of
474         binary search.  To quote Martin Buchholz, "a nanosecond saved is a
475         nanosecond earned."
476
477 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
478
479         * main.c (print_help): Document `--post-data' and `--post-file'.
480
481 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
482
483         * http.c (gethttp): Ditto.
484
485         * retr.c (retrieve_url): Initialize variables to appease the
486         compiler.
487
488         * gen_sslfunc.c (ssl_iread): Don't handle EINTR when calling
489         select_fd.
490         (ssl_iwrite): Ditto.
491
492         * connect.c (select_fd): Rewrite to handle EINTR.  Set errno to
493         ETIMEDOUT in case of timeout.
494         (iread): No need to handle EINTR when calling select_fd.
495         (iwrite): Ditto.
496
497 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
498
499         * retr.c (retrieve_url): Make sure that POST is not honored for
500         redirections.
501
502         * http.c (gethttp): Send the POST data when requested.
503         (post_file): New function.
504         (gethttp): Use it.
505
506         * main.c (main): Ditto.
507
508         * init.c: Add new options.
509
510         * options.h (struct options): New options post_data and
511         post_file_name.
512
513 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
514
515         * connect.c (connect_with_timeout): Firing SIGALRM can result in
516         connect() exiting with EINTR.  Treat EINTR the same as ETIMEDOUT.
517
518 2002-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
519
520         * connect.c (connect_with_timeout): Use it.
521
522         * utils.c (run_with_timeout): New function.
523
524 2002-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
525
526         * url.c (getproxy): Accept a struct url argument.  This obviates
527         the need for USE_PROXY_P.
528
529         * retr.c (retrieve_url): Allow proxy to be a non-FTP URL.
530
531         * ftp.c (getftp): Recognize FWTK-style proxy.
532
533 2002-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
534
535         * config.h.in: Only define _VA_LIST when compiled with gcc.
536
537 2002-04012  Ian Abbott  <abbotti@mev.co.uk>
538
539         * http.c (http_loop): Compensate for MS Windows two-second
540         granularity of file modification time when comparing timestamps.
541
542         * ftp.c (ftp_retrieve_list): Ditto.
543
544 2002-04-12  Ian Abbott  <abbotti@mev.co.uk>
545
546         * utils.c (has_html_suffix_p): New function to test filename for
547         common html extensions.
548
549         * utils.h: Declare it.
550
551         * http.c (http_loop): Use it instead of previous test.
552
553         * retr.c (retrieve_url): Ditto.
554
555         * recur.c (download_child_p): Ditto.
556
557 2002-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
558
559         * config.h.in: Define _VA_LIST on Solaris to prevent stdio.h from
560         declaring va_list.
561         From Kevin Rodgers <kevinr@ihs.com>.
562
563 2002-04-12  Ian Abbott  <abbotti@mev.co.uk>
564
565         * Makefile.in: Specify libtool mode explicitly when linking.
566
567 2002-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
568
569         * connect.c (connect_with_timeout): New function.
570         (connect_to_one): Use it.
571
572         * config.h.in: Add stubs for HAVE_SIGSETJMP, HAVE_SIGBLOCK, and
573         HAVE_SETJMP_H.
574
575 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
576
577         * log.c: Set WGET_USE_STDARG if __STDC__ is defined and stdarg.h
578         is present.
579
580 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
581
582         * progress.c (bar_create): If INITIAL is larger than TOTAL, fix
583         TOTAL.
584         (bar_finish): Likewise.
585
586 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
587
588         * html-url.c (tag_handle_form): New function.  Pick up form
589         actions and mark them for conversion only.
590
591 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
592
593         * progress.c (struct progress_implementation): Use PARAMS when
594         declaring the parameters of *create, *update, *finish, and
595         *set_params.
596
597         * netrc.c: Ditto.
598
599         * http.c: Reformat some function definitions so that ansi2knr can
600         read them.
601
602         * hash.c (struct hash_table): Use the PARAMS macro around
603         parameters in the declaration of hash_function and test_function.
604         (prime_size): Spell 2580823717UL and 3355070839UL as (unsigned
605         long)0x99d43ea5 and (unsigned long)0xc7fa5177 respectively, so
606         that pre-ANSI compilers can read them.
607         (find_mapping): Use PARAMS when declaring EQUALS.
608         (hash_table_put): Ditto.
609
610         * ftp.h: Wrap the parameters of ftp_index declaration in PARAMS.
611
612         * cookies.c (cookie_new): Use (unsigned long)0 instead of 0UL,
613         which was unsupported by pre-ANSI compilers.
614
615         From Nelson H. F. Beebe <beebe@math.utah.edu>, for the most part.
616
617 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
618
619         * url.c (url_filename): Use compose_file_name regardless of
620         whether opt.dirstruct is set.
621         (mkstruct): Don't handle the query and the reencoding of DIR; that
622         is done in compose_file_name.
623
624 2002-04-10  Hrvoje Niksic  <hniksic@arsdigita.com>
625
626         * wget.h: Ditto for extern char *exec_name.
627
628         * options.h: Don't guard against OPTIONS_DEFINED_HERE -- it is
629         perfectly legal to follow an `extern' with a non-`extern' ones,
630         provided the types match.
631
632         * main.c: Don't define OPTIONS_DEFINED_HERE.
633
634 2002-04-10  Hrvoje Niksic  <hniksic@arsdigita.com>
635
636         * progress.c (create_image): Revert to calculating ETA based on
637         average download speed.
638         (create_image): Don't print ETA until the download has been active
639         for at least 3 seconds.
640         (create_image): When ETA is not available, don't print anything.
641         The previous version would print --:--.
642
643 2002-04-10  Hrvoje Niksic  <hniksic@arsdigita.com>
644
645         * progress.c (bar_update): Keep updating a subinterval until it
646         reaches or exceeds a watermark.  That way the measurement will be
647         guaranteed to span a configurable minimum of time.  The current
648         default is 3s in 30 100ms intervals.
649
650 2002-04-09  Hrvoje Niksic  <hniksic@arsdigita.com>
651
652         * progress.c (bar_update): Maintain an array of the time it took
653         to perform previous 30 network reads.
654         (create_image): Calculate the download speed and ETA based on the
655         last 30 reads, not the entire download.
656         (create_image): Make sure that the ETA is not changed more than
657         once per second.
658
659 2002-04-09  Ian Abbott  <abbotti@mev.co.uk>
660
661         * mswindows.c (borland_utime): New function conditionally defined
662         when `HACK_BCC_UTIME_BUG' is defined.  A reimplementation of
663         `utime()' as Borland's `utime()' function is broken on Windows 9x
664         systems.  (Original patch by Chin-yuan Kuo <sr1111111@yahoo.com.tw>.)
665
666 2002-04-08  Hrvoje Niksic  <hniksic@arsdigita.com>
667
668         * ftp.c (ftp_loop): Propagate the result of ftp_retrieve_glob.
669
670 2002-03-26  Ian Abbott  <abbotti@mev.co.uk>
671
672         * Makefile.in: Updated several dependencies for object files.
673
674 2002-03-20  Ian Abbott  <abbotti@mev.co.uk>
675
676         * mswindows.c: Include "utils.h".
677
678 2002-03-18  Ian Abbott  <abbotti@mev.co.uk>
679
680         * host.h: Don't include netdb.h on windows.
681
682 2002-02-19  Hrvoje Niksic  <hniksic@arsdigita.com>
683
684         * recur.c (retrieve_tree): Handle the case when start_url doesn't
685         parse.
686
687 2002-02-19  Andreas Damm  <andreas-sourceforge@radab.org>
688
689         * wget.h (DO_REALLOC_FROM_ALLOCA): Multiply with sizeof(type) when
690         calling xmalloc and memcpy.
691
692 2002-02-19  Hrvoje Niksic  <hniksic@arsdigita.com>
693
694         * host.h: Include Unix-specific includes #ifndef WINDOWS.
695         Patch originally provided by Christian Lackas.
696
697 2002-02-11  Christian Lackas  <delta@lackas.net>
698
699         * recur.c: recurive downloading for https fixed.
700
701 2002-02-19  Alan Eldridge  <alane@geeksrus.net>
702
703         * host.h: Also include <netinet/in.h> and <sys/socket.h>.
704
705         * ftp-basic.c: Also include <netinet/in.h>.
706
707 2002-02-05  Ian Abbott  <abbotti@mev.co.uk>
708
709         * http.c (gethttp): when -c used, mark already fully retrieved
710         file as successfully retrieved.
711
712 2002-02-19  Hrvoje Niksic  <hniksic@arsdigita.com>
713
714         * url.c (url_parse): Don't treat '?' as query string separator
715         when parsing FTP URLs.
716
717 2002-02-01  Hrvoje Niksic  <hniksic@arsdigita.com>
718
719         * html-url.c (tag_handle_meta): Don't crash on <meta
720         http-equiv=refresh> where content is missing.
721
722 2002-01-31  Herold Heiko  <Heiko.Herold@previnet.it>
723
724         * ftp-basic.c, host.c: don't include sys/socket.h, arpa/inet.h,
725         netdb.h on windows.
726
727 2002-01-30  Hrvoje Niksic  <hniksic@arsdigita.com>
728
729         * retr.c (retrieve_url): Remove redirection cycle detection.  This
730         is because some sites legitimately redirect the user back to the
731         same location, e.g. after an authorization check performed by
732         another page.  MAX_REDIRECTIONS is still used to prevent infinite
733         redirection loops.
734
735 2002-01-26  Hrvoje Niksic  <hniksic@arsdigita.com>
736
737         * http.c (gethttp): Wrap host name in square brackets if it
738         contains a colon.
739
740 2002-01-26  Hrvoje Niksic  <hniksic@arsdigita.com>
741
742         * url.c (url_parse): Allow all hex digits, not only decimal ones,
743         to form an IP address.
744
745 2002-01-26  Hrvoje Niksic  <hniksic@arsdigita.com>
746
747         * url.c (urlchr_table): Make square braces reserved, so we can
748         parse http://[::1]/.
749         (url_parse): Handle host in braces.
750         (url_string): If url->host contains colons, wrap it in braces.
751
752 2002-01-24  Hrvoje Niksic  <hniksic@arsdigita.com>
753
754         * connect.c (resolve_bind_address): New function.
755         (connect_to_one): Use it.
756         (bindport): Ditto.
757
758         * init.c: Don't resolve bind-address here.
759
760         * host.c (wget_sockaddr_set_address): Would bug out with ADDR == NULL.
761
762 2002-01-24  Hrvoje Niksic  <hniksic@arsdigita.com>
763
764         * host.c (lookup_host): Use sizeof(ip4_address) to calculate the
765         offset.
766         (address_list_new): Use map_ipv4_to_ip.
767         (wget_sockaddr_set_address): Convert ADDR to IPv4 before using it
768         in IPv4 context.
769
770 2002-01-24  Hrvoje Niksic  <hniksic@arsdigita.com>
771
772         * source: Integrated IPv6 support.
773         Written by Thomas Lussnig <thomas.lussnig@bewegungsmelder.de>.
774
775 2002-01-15  Ian Abbott  <abbotti@mev.co.uk>
776
777         * init.c (cmd_file): Change `\' to `/' for Windows (yes, really!)
778         (cmd_directory): New function. Like cmd_file(), but strips
779         trailing directory separators.
780         (commands): Change action for "dirprefix" from `cmd_file' to
781         `cmd_directory'.
782
783         * utils.c (make_directory): Allow intermediate `mkdir' calls to
784         fail, as not all path components that do not exist should be
785         directory components, especially under Windows.
786
787 2002-01-17  Hrvoje Niksic  <hniksic@arsdigita.com>
788
789         * netrc.c (parse_netrc): Skip leading whitespace before testing
790         whether the line is empty.  Empty lines still contain the line
791         terminator.
792
793 2002-01-15  Hrvoje Niksic  <hniksic@arsdigita.com>
794
795         * gen_sslfunc.c (ssl_iread): Call select on the file descriptor
796         only if no data is pending in SSL buffers.
797         From tony@bluetail.com.
798
799 2002-01-14  Hrvoje Niksic  <hniksic@arsdigita.com>
800
801         * headers.c (header_get): Strip trailing whitespace from the
802         header.
803
804 2002-01-14  Hrvoje Niksic  <hniksic@arsdigita.com>
805
806         * url.c (parse_uname): URL-decode *USER and *PASSWD.
807
808 2002-01-07  Ian Abbott <abbotti@mev.co.uk>
809
810         * url.c (uri_merge_1): Deal with "net path" relative URL (one that
811         starts with "//").
812
813 2002-01-14  Hrvoje Niksic  <hniksic@arsdigita.com>
814
815         * http.c (gethttp): Invalidate SOCK if get_contents encountered an
816         error.
817
818 2001-12-24  Hrvoje Niksic  <hniksic@arsdigita.com>
819
820         * version.c: Wget 1.8.1 is released.
821
822 2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
823
824         * version.c: Wget 1.8.1-pre3 is released.
825
826 2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
827
828         * recur.c (retrieve_tree): Enqueue the canonical representation of
829         start_url, so that the test against dl_url_file_map works.
830
831 2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
832
833         * log.c (logputs): Check for requested verbosity before printing
834         anything.
835
836 2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
837
838         * html-url.c (tag_handle_link): Treat the "shortcut icon" link as
839         inline.
840
841 2001-12-18  Hrvoje Niksic  <hniksic@arsdigita.com>
842
843         * recur.c (retrieve_tree): Make a copy of file obtained from
844         dl_url_file_map because the code calls xfree(file) later.
845
846 2001-12-18  Hrvoje Niksic  <hniksic@arsdigita.com>
847
848         * recur.c (register_html): Maintain a hash table of HTML files
849         along with the list.  Disallow duplicates.
850         (retrieve_tree): Use downloaded_html_set to check whether the file
851         found in dl_url_file_map is an HTML file, and descend into it if
852         so.
853         (convert_all_links): Don't guard against duplicates in
854         downloaded_html_list, since they are no longer possible.
855
856 2001-12-18  Ian Abbott  <abbotti@mev.co.uk>
857
858         * recur.c (retrieve_tree): Pass on referring URL when retrieving
859         recursed URL.
860
861 2001-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
862
863         * version.c: Wget 1.8.1-pre2 is released.
864
865 2001-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
866
867         * retr.c (sleep_between_retrievals): Simplify indentation.
868
869 2001-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
870
871         * gen_sslfunc.c (ssl_init_prng): Use random_number to get a byte
872         of "randomness" at a time.
873         (ssl_init_prng): Don't seed the PRNG; random_number will do that.
874
875         * retr.c (sleep_between_retrievals): Use it.  Make sure that the
876         random amount averages in opt.wait.
877         (sleep_between_retrievals): Don't seed the PRNG; random_number
878         will do that.
879
880         * utils.c (random_number): New function.
881
882 2001-12-14  Hrvoje Niksic  <hniksic@arsdigita.com>
883
884         * url.c (path_simplify): Move here from utils.c, and make static.
885
886 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
887
888         * init.c (wgetrc_file_name): Print correct message when loading
889         getenv("WGETRC") fails.
890
891 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
892
893         * recur.c (register_download): Don't abort when one URL references
894         two different files.
895
896 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
897
898         * http.c (gethttp): Check for conn->scheme, not u->scheme, before
899         calling ssl_iwrite.
900
901 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
902
903         * version.c: Wget 1.8.1-pre1 is released.
904
905 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
906
907         * res.c (matches): Fix broken URL in the docstring.
908
909 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
910
911         * html-url.c (tag_url_attributes): Mark <embed href=...> as
912         external.
913
914 2001-12-12  Hrvoje Niksic  <hniksic@arsdigita.com>
915
916         * url.c (get_urls_file): Cosmetic changes.
917
918 2001-12-12  Hrvoje Niksic  <hniksic@arsdigita.com>
919
920         * html-url.c (append_one_url): Resurrect warning when unable to
921         resolve a relative link.
922
923 2001-12-12  Hrvoje Niksic  <hniksic@arsdigita.com>
924
925         * html-url.c (collect_tags_mapper): Break into several functions.
926         (tag_url_attributes): Collect <embed href=...>.
927
928 2001-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
929
930         * host.c: New type ipv4_address.  Use it consistently instead of
931         `unsigned char[4]' and `unsigned char *'.
932         (pretty_print_address): Accept a `const void *', to require even
933         less casting.
934
935 2001-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
936
937         * ftp-ls.c (ftp_parse_vms_ls): Fix obvious memory leaks.
938
939 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
940
941         * main.c (main): Initialize progress after fork_to_background, so
942         that it knows when to use dots.
943
944         * mswindows.c (ws_hangup): Call log_request_redirect_output.
945
946         * utils.c (fork_to_background): Print the PID of the child
947         process.
948
949         * log.c (log_request_redirect_output): Set a flag that output
950         redirection has been requested.  Doing anything else in a signal
951         handler is unsafe.
952         (check_redirect_output): New function: check whether redirection
953         has been requested and, if so, call redirect_output().
954         (logputs): Call check_redirect_output.
955         (logprintf): Ditto.
956         (debug_logprintf): Ditto.
957         (redirect_output): Print clearer messages.
958
959         * main.c (redirect_output_signal): Don't call
960         redirect_output_signal directly.  Instead, call
961         log_request_redirect_output.
962
963         * utils.c (memfatal): Ditto.
964
965         * progress.c (display_image): Use it.
966
967         * log.c (log_set_save_context): New function: allow the caller to
968         turn off saving log context lines.
969
970 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
971
972         * host.c (address_list_set_faulty): Uncomment a sanity check.
973
974 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
975
976         * utils.c (long_to_string): Return a pointer after where the
977         number ends.
978         (long_to_string): Rename to number_to_string.
979
980 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
981
982         * utils.c (path_simplify): Correctly handle the unlikely case that
983         b starts out as path + 1.
984
985 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
986
987         * utils.c (path_simplify): Rewrite, with better comments, and
988         without the use of strcpy to move overlapping blocks.
989
990 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
991
992         * init.c (cmd_spec_progress): Resurrect.  Check whether VAL is a
993         valid progress type before setting it.
994
995 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
996
997         * main.c (main): Remove stray debugging message.
998
999 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
1000
1001         * progress.c (create_image): Fix ETA padding when hours are prined.
1002
1003 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
1004
1005         * version.c: Wget 1.8 is released.
1006
1007 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
1008
1009         * url.c (reencode_string): Declare static.
1010
1011         * res.c (registered_specs): Declare static.
1012
1013         * progress.c (current_impl_locked): Declare static.
1014
1015         * log.c (flush_log_p): Declare static.
1016         (needs_flushing): Ditto.
1017
1018         * http.c (digest_authentication_encode): Declare static.
1019
1020         * html-url.c (init_interesting): Declare static.
1021
1022         * host.c (host_name_addresses_map): Declare static.
1023
1024         * cookies.c (find_matching_chains): Declare static.
1025
1026         * ftp-ls.c (ftp_parse_vms_ls): Warn about the memory leak
1027         indicated by lint.
1028
1029         * utils.c (path_simplify): Remove unused variable STUB_CHAR.
1030
1031         * host.c (address_list_set_faulty): Document that INDEX is
1032         currently unused.
1033
1034         * url.c (rewrite_shorthand_url): Remove unused variable PATH.
1035
1036 2001-12-08  Hrvoje Niksic  <hniksic@arsdigita.com>
1037
1038         * version.c: Wget 1.8-pre2 is released.
1039
1040 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1041
1042         * progress.c (progress_handle_sigwinch): Set up the signal again.
1043
1044         * utils.c: Include <sys/termios.h>, where Solaris defines
1045         TIOCGWINSZ.
1046
1047         * progress.c (bar_create): Don't use the last column on the screen.
1048         (create_image): Pad ETA to constant size.  Pad SIZE to nine digits
1049         only until it exceeded them.
1050
1051 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1052
1053         * version.c: Wget 1.8-pre1 is released.
1054
1055 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1056
1057         * progress.c (progress_create): Make sure that, when the output is
1058         redirected, the progress implementation gets changed to the
1059         fallback one.
1060         (bar_set_params): Set current_impl_locked to 1 when "force" is
1061         specified.
1062         (progress_create): Don't change the progress implementation if
1063         current_impl_locked is non-zero.
1064
1065         * main.c (redirect_output_signal): Call
1066         progress_schedule_redirect.
1067
1068         * progress.c (progress_schedule_redirect): New function.
1069
1070 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1071
1072         * log.c (logvprintf): Restructure to allow being called multiple
1073         times.
1074         (logprintf): Call logvprintf in a loop.
1075         (debug_logprintf): Ditto.
1076
1077 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1078
1079         * gen_sslfunc.c (ssl_init_prng): Allow the user to disable EGD by
1080         setting egd_file it to empty string.
1081
1082         * main.c (main): Change the option name from --sslegdsock to
1083         --egd-file.
1084
1085 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1086
1087         * gen_sslfunc.c (ssl_init_prng): Make the printed message
1088         translatable.
1089
1090 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1091
1092         * url.c (scheme_disable): New function.
1093
1094         * main.c (main): Call ssl_init_prng from here rather than from
1095         init_ssl, so that it has a chance to disable support for https
1096         before a URL has been resolved.
1097
1098         * gen_sslfunc.c (ssl_init_prng): Seed with rand() if all else
1099         failed.
1100         (ssl_init_prng): Disable support for https if seeding the PRNG
1101         fails.
1102
1103 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1104
1105         * utils.c (read_whole_line): Handle lines beginning with \0.
1106
1107 2001-12-05  Hrvoje Niksic  <hniksic@arsdigita.com>
1108
1109         * recur.c (convert_all_links): Guard against duplicates in
1110         downloaded_html_files.
1111         (register_download): Don't invalidate similar-looking URLs.
1112         (match_except_index): New function.
1113
1114 2001-12-05  Hrvoje Niksic  <hniksic@arsdigita.com>
1115
1116         * utils.c (path_simplify): Document with test cases.
1117
1118 2001-12-04  Hrvoje Niksic  <hniksic@arsdigita.com>
1119
1120         * gen_sslfunc.c: Ditto.
1121
1122         * rbuf.c: Include <string.h>.
1123
1124 2001-12-04  Hrvoje Niksic  <hniksic@arsdigita.com>
1125
1126         * recur.c (retrieve_tree): Check whether the URL was already
1127         downloaded before downloading it again.
1128         (descend_child_p): Renamed to download_child_p.
1129         (register_download): When one URL is downloaded to a file already
1130         "owned" by another URL, delete all references that map any URL to
1131         that file.
1132         (register_delete_file): New function.
1133         (retrieve_tree): Use it after deleting a file.
1134
1135         * url.c (url_parse): Re-canonicalize the URL also if the path is
1136         empty, so that e.g. "http://www.server.com" ->
1137         "http://www.server.com/".
1138         (lowercase_str): Use ISUPPER instead of !ISLOWER.
1139
1140         * retr.c (retrieve_url): Use the canonical URL form when calling
1141         register_download().
1142
1143 2001-12-04  Ian Abbott <abbotti@mev.co.uk>
1144
1145         * snprintf.c (dopr): Use `unsigned int' as the second argument to
1146         va_arg when casting to `unsigned short' is intended.
1147
1148 2001-12-04  Herold Heiko  <Heiko.Herold@previnet.it>
1149
1150         * gen_sslfunc.c: on windows provide ssl crypto random 
1151           initialization through RAND_screen(); could possibly
1152           be not enough for strong ssl communication (see the 
1153           relevant manual page from the openssl package).
1154
1155 2001-12-04  Hrvoje Niksic  <hniksic@arsdigita.com>
1156
1157         * url.c (local_quote_string): Reenable quoting of question marks,
1158         but only when `--html-extension' is used.
1159
1160 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1161
1162         * version.c: Wget 1.8-beta3 is released.
1163
1164 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1165
1166         * snprintf.c (dopr): Cast the result of va_arg to short int and
1167         short unsigned int where these types are expected to be used.
1168
1169 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1170
1171         * snprintf.c (dopr): Replace `short int' and `unsigned short int'
1172         with `int' when using it as the second argument to `va_arg'.
1173
1174 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1175
1176         * host.c (address_list_new_one): New function.
1177         (lookup_host): Use it.
1178
1179 2001-12-03  Andre Majorel  <amajorel@teaser.fr>
1180
1181         * host.c (lookup_host): Don't initialize TMPSTORE directly because
1182         it's not legal C.
1183
1184 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1185
1186         * ftp-basic.c (ftp_port): Don't return HOSTERR if we fail getting
1187         the socket data.
1188
1189         * ftp.c: Ditto.
1190
1191         * http.c: No need to declare h_errno.
1192
1193         * host.c: Declare h_errno.
1194
1195 2001-12-02  Hrvoje Niksic  <hniksic@arsdigita.com>
1196
1197         * utils.c (file_merge): If BASE doesn't contain a slash, just
1198         return a copy of FILE.
1199
1200 2001-12-02  Hrvoje Niksic  <hniksic@arsdigita.com>
1201
1202         * version.c: Wget 1.8-beta2 is released.
1203
1204 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1205
1206         * ftp.c (getftp): When PWD fails, assume "/".
1207
1208         * ftp-basic.c (ftp_syst): Fix indentation.
1209
1210 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1211
1212         * url.c (get_urls_file): If opt.base_href is specified, merge each
1213         URL with the base.
1214
1215 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1216
1217         * main.c (print_help): Don't document the removed `-nh'.
1218
1219 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1220
1221         * url.c (url_full_path): Document better.
1222
1223         * http.c (gethttp): Use the full path when creating digest
1224         authorization.
1225
1226 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1227
1228         * cookies.c (path_matches): Return 0 if PREFIX doesn't begin with
1229         '/'.
1230
1231 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1232
1233         * cookies.c (path_matches): FULL_PATH doesn't begin with '/', but
1234         PREFIX does.
1235
1236 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1237
1238         * cookies.c (check_domain_match): Reimplement to match Netscape's
1239         "preliminary specification" for cookies.
1240
1241 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1242
1243         * url.c (replace_attr_refresh_hack): New function.
1244         (convert_links): Call replace_attr_refresh_hack for Refresh
1245         links.  It will add the "TMOUT; URL=" junk before the link.
1246
1247         * html-url.c (collect_tags_mapper): Set ID to the ID of the
1248         "content" attribute, not "http-equiv".
1249         (collect_tags_mapper): Don't use OFFSET to hack the raw_* values;
1250         instead, store the information that this entry belongs to a
1251         "refresh" link.
1252
1253 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1254
1255         * version.c: Wget 1.8-beta1 is released.
1256
1257 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1258
1259         * recur.c (retrieve_tree): Allow -p retrievals to exceed maximum
1260         depth by more than one.
1261
1262 2001-11-30  Hrvoje Niksic  <hniksic@arsdigita.com>
1263
1264         * retr.c (retrieve_url): Don't allow more than 20 redirections.
1265
1266 2001-11-30  Hrvoje Niksic  <hniksic@arsdigita.com>
1267
1268         * recur.c (retrieve_tree): Skip the non-inline entries when
1269         enqueuing the children of a leaf HTML node in -p mode.
1270         (descend_url_p): Ignore opt.no_parent when in -p mode and UPOS is
1271         "inline".
1272
1273         * html-url.c (get_urls_html): Don't accept dash_p_leaf_HTML.
1274         (collect_tags_mapper): When an entry is "inline", mark it as such.
1275
1276         * recur.c (descend_url_p): Fix test when checking for
1277         acceptance/rejection rules.
1278
1279 2001-10-31 Daniel BODEA <dali@dali-designs.com>
1280
1281         * netrc.c (search_netrc): When slack_default is 0, still look for
1282         an account with matching password, just not the "default account".
1283         HTTP Authorization using .netrc should now work as expected.
1284
1285 2001-11-30  T. Bharath  <TBharath@responsenetworks.com>
1286
1287         * http.c (persistent_available_p): Call SHUTDOWN_SSL if
1288         test_socket_open fails.
1289
1290 2001-11-30  Hrvoje Niksic  <hniksic@arsdigita.com>
1291
1292         * progress.c (display_image): Just print one CR to reset the
1293         cursor position.
1294
1295 2001-11-30  Christian Fraenkel  <c.fraenkel@gmx.net>
1296
1297         * init.c: New command `ssl_egd_sock'.
1298
1299         * main.c (main): New option `--sslegdsock'.
1300
1301         * gen_sslfunc.c (ssl_init_prng): Seed the RNG using EGD.
1302
1303 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1304
1305         * cmpt.c (memmove): Include a simple memmove implementation.
1306
1307 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1308
1309         * headers: Guard against header files being included twice.
1310
1311 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1312
1313         * gen-md5.c: Use unsigned char * as the buffer argument to
1314         gen_md5_update.
1315
1316 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1317
1318         * connect.h: Declare select_fd.
1319
1320 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1321
1322         * recur.c (descend_url_p): When resolving no_parent, compare with
1323         start_url, not parent url.  Otherwise link from /a/b/ to /a/c/
1324         wouldn't be followed, although the download started from /a/.
1325
1326 2001-01-23  Herold Heiko  <Heiko.Herold@previnet.it>
1327
1328         * config.h.ms, mswindows.h: defined HAVE_ISATTY, use _isatty for
1329         MS VC; somebody with Borland compiler please check and provide
1330         patch if possible;
1331
1332         * cmpt.c: provided a usleep emulation.
1333
1334 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1335
1336         * host.c (address_list_new): Initialize al->faulty.
1337
1338 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1339
1340         * http.c (http_process_range): Accept the broken output of
1341         "JavaWebServer/1.1.1".
1342
1343 2001-11-28  Hrvoje Niksic  <hniksic@arsdigita.com>
1344
1345         * progress.c (dot_set_params): If PARAMS is unspecified, use
1346         dot_style, if available.
1347
1348         * init.c: Ditto.
1349
1350         * main.c (main): Resurect --dot-style.
1351
1352         * progress.c (dot_finish): Print the quantity if we're left at the
1353         beginning of a row.
1354
1355 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1356
1357         * cmpt.c (random): Removed.
1358
1359         * retr.c (sleep_between_retrievals): Use the more portable rand()
1360         instead of random().
1361
1362 2001-11-27  Ian Abbott <abbotti@mev.co.uk>
1363
1364         * retr.c (retrieve_from_file): Initialize `new_file' to NULL to
1365         prevent seg fault.
1366
1367 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1368
1369         * connect.c (connect_to_many): Use address_list_set_faulty to
1370         prevent the faulty address from being reused.
1371
1372         * host.c (address_list_set_faulty): New function.
1373         (address_list_get_bounds): New function, instead of
1374         address_list_count.
1375
1376 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1377
1378         * url.c (convert_links): Don't translate %d-%d.
1379
1380         * main.c (print_help): Remove stray HAVE_RANDOM code.
1381
1382 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1383
1384         * ftp.c (getftp): Improve output after sending PASV.  Don't
1385         attempt to "look up" the IP address we already know; call
1386         connect_to_one directly.
1387
1388 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1389
1390         * progress.c: Change the default progress implementation to "bar".
1391
1392 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1393
1394         * progress.c (bar_create): Print two newlines.
1395
1396 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1397
1398         * cmpt.c (random): New function, a simple-minded replacement for
1399         random() on systems that don't have it.
1400
1401 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1402
1403         * config.h.in: Put a HAVE_USLEEP stub.
1404
1405         * cmpt.c (usleep): Replacement implementation of usleep using
1406         select.
1407
1408         * init.c: New option init_rate.
1409
1410         * main.c (main): New option --limit-rate.
1411
1412         * retr.c (limit_bandwidth): New function.
1413         (get_contents): Call it to limit the bandwidth used when
1414         downloading.
1415
1416         * progress.c (dot_update): Would print the wrong download speed on
1417         rows other than the first one when the download was continued.
1418         (dot_finish): Ditto.
1419
1420 2001-11-26  Ian Abbott <abbotti@mev.co.uk>
1421
1422         * http.c (gethttp): fix undeclared variable 'err' when compiled
1423         with HAVE_SSL.
1424
1425 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1426
1427         * progress.c: Don't allocate new timers; use the timing data
1428         propagated from the caller.
1429
1430         * retr.c (get_contents): Allocate and use a timer.
1431
1432 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1433
1434         * http.c (last_host_ip): Made into an address_list.
1435         (invalidate_persistent): Release pc_last_host_ip.
1436         (register_persistent): Use lookup_host.
1437         (persistent_available_p): Check for equality of hosts using
1438         address_list_match_all.  Call address_list_release.
1439         (http_cleanup): New function.
1440
1441         * ftp.c (getftp): Use lookup_host and connect_to_many.
1442
1443         * http.c (gethttp): Use lookup_host and connect_to_many.
1444
1445         * connect.c (make_connection): Removed.
1446         (connect_to_one): New function.
1447         (connect_to_many): Ditto.
1448         (set_connection_host_name): Ditto.
1449
1450         * host.c (lookup_host): New function; new return type.
1451         (address_list_new): New function.
1452         (address_list_count): Ditto.
1453         (address_list_copy_one): Ditto.
1454         (address_list_delete): Ditto.
1455         (address_list_release): Ditto.
1456         (pretty_print_address): Ditto.
1457
1458 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1459
1460         * recur.c (retrieve_tree): In case of followed redirection,
1461         blacklist the pre-redirection URL.
1462
1463 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1464
1465         * recur.c (descend_redirect_p): New function.
1466         (retrieve_tree): Make sure redirections are not blindly followed.
1467
1468 2001-11-04  Alan Eldridge  <alane@geeksrus.net>
1469
1470         * config.h.in: added HAVE_RANDOM.
1471
1472         * options.h: added random_wait to struct options.
1473
1474         * main.c (print_help [HAVE_RANDOM], main): added arg parsing, help
1475         for --random-wait.
1476
1477         * retr.c (sleep_between_retrievals) [HAVE_RANDOM]: added
1478         implementation of random wait times.
1479
1480         * init.c (commands): added "randomwait" keyword.
1481
1482 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
1483
1484         * recur.c (descend_url_p): Be more conservative with blacklisting
1485         URLs.
1486         (convert_all_links): Print how many files have been converted, and
1487         how long it took.
1488
1489         * progress.c (create_image): Place the number of downloaded bytes
1490         right after the progress bar.
1491
1492         * utils.c (suffix): Return a pointer into the string.
1493
1494 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
1495
1496         * url.c (convert_links): Handle CO_NULLIFY_BASE.
1497
1498         * recur.c (retrieve_tree): Ignore download-ignorable children.
1499         (convert_all_links): Specify CO_NULLIFY_BASE when link_base_p.
1500
1501         * html-url.c (handle_link): Return the newly created urlpos.
1502         (collect_tags_mapper): When dealing with BASE, store the base
1503         reference and mark it as download-ignorable.
1504
1505 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
1506
1507         * url.c (convert_links): Attempt to quote '?' as "%3F" when
1508         linking to local files.  Given up on the attempt, as it breaks
1509         local browsing.
1510
1511 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
1512
1513         * main.c (private_initialize): Removed.
1514         (main): Don't call private_initialize.
1515
1516         * http.c: Call lookup_host.
1517
1518         * host.c (host_init): Removed.
1519         (add_host_to_cache): Initialize host_name_address_map here, on
1520         demand.
1521         (ngethostbyname): Commented out.
1522
1523         * connect.c (make_connection): Remove dead code; use lookup_host.
1524
1525         * host.c (store_hostaddress): Renamed to lookup_host and reversed
1526         the args.
1527         Removed host_address_name_map and host_slave_master_map.
1528
1529 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
1530
1531         * progress.c (dot_create): Align the "[ skipping ... ]" string
1532         with the dots.
1533
1534         * retr.c (rate): Split into two functions: calc_rate and
1535         retr_rate.
1536
1537         * progress.c (create_image): Draw a dummy progress bar even when
1538         total size is unknown.
1539         (display_image): Place the text cursor at the end of the "image".
1540
1541 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
1542
1543         * url.c (reencode_string): Use unsigned char, not char --
1544         otherwise the hex digits come out wrong for 8-bit chars such as
1545         nbsp.
1546         (lowercase_str): New function.
1547         (url_parse): Canonicalize u->url if needed.
1548         (get_urls_file): Parse each URL, and return only the valid ones.
1549         (free_urlpos): Call url_free.
1550         (mkstruct): Add :port if the port is non-standard.
1551         (mkstruct): Append the query string to the file name, if any.
1552         (urlpath_length): Use strpbrk_or_eos.
1553         (uri_merge_1): Handle the cases where LINK is an empty string,
1554         where LINK consists only of query, and where LINK consists only of
1555         fragment.
1556         (convert_links): Count and report both kinds of conversion.
1557         (downloaded_file): Use a hash table, not a list.
1558         (downloaded_files_free): Free the hash table.
1559
1560         * retr.c (retrieve_from_file): Ditto.
1561
1562         * main.c (main): Call either retrieve_url or retrieve_tree
1563         for each URL, not both.
1564
1565         * retr.c (register_all_redirections): New function.
1566         (register_redirections_mapper): Ditto.
1567         (retrieve_url): Register the redirections.
1568         (retrieve_url): Make the string "Error parsing proxy ..." 
1569         translatable.
1570
1571         * res.c (add_path): Strip leading slash from robots.txt paths so
1572         that the path representations are "compatible".
1573         (free_specs): Free each individual path, too.
1574         (res_cleanup): New function.
1575         (cleanup_hash_table_mapper): Ditto.
1576
1577         * recur.c (url_queue_new): New function.
1578         (url_queue_delete): Ditto.
1579         (url_enqueue): Ditto.
1580         (url_dequeue): Ditto.
1581         (retrieve_tree): New function, replacement for recursive_retrieve.
1582         (descend_url_p): New function.
1583         (register_redirection): New function.
1584
1585         * progress.c (create_image): Cosmetic changes.
1586
1587         * init.c (cleanup): Do all those complex cleanups only if
1588         DEBUG_MALLOC is defined.
1589
1590         * main.c: Removed --simple-check and the corresponding
1591         simple_host_check in init.c.
1592
1593         * html-url.c (handle_link): Parse the URL here, and propagate the
1594         parsed URL to the caller, who would otherwise have to parse it
1595         again.
1596
1597         * host.c (xstrdup_lower): Moved to utils.c.
1598         (realhost): Removed.
1599         (same_host): Ditto.
1600
1601 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1602
1603         * utils.c (path_simplify): Preserver the (non-)existence of
1604         leading slash.  Return non-zero if changes were made.
1605
1606 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1607
1608         * progress.c (bar_update): Don't modify bp->total_length if it is
1609         zero.
1610
1611 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1612
1613         * retr.c (retrieve_url): When the redirection URL doesn't parse,
1614         print the correct error message rather than "UNKNOWN".
1615
1616 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1617
1618         * progress.c (bar_finish): If the timer didn't record any time
1619         since the download beginning, fake 1ms.
1620
1621 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1622
1623         * recur.c (recursive_retrieve): Fix typo.
1624
1625 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
1626
1627         * progress.c (create_image): Don't translate "%ld ".
1628
1629 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
1630
1631         * progress.c (bar_set_params): Allow the user to force the use of
1632         the bar.
1633
1634 2001-11-23  Lemble Gregory  <gregory.lemble@st.com>
1635
1636         * gen_sslfunc.c (ssl_init_prng): New function; seed the SSL RNG.
1637
1638 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
1639
1640         * progress.c: Renamed dp_* functions to dot_* for greater clarity
1641         and consistency with bar_*.
1642         (print_download_speed): Get rid of the unneeded '@' character.
1643         (create_image): Fix download rate geometry.
1644
1645         * progress.c (print_elapsed): Remove spurious space.
1646         (print_elapsed): Renamed to print_download_speed, since that's
1647         what it does.
1648
1649 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
1650
1651         * progress.c (bar_update): If the downloaded amount becomes larger
1652         than the expected amount, adjust the expected amount accordingly.
1653
1654 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
1655
1656         * utils.c (determine_screen_width): New function.
1657
1658         * main.c (main): New option `--progress=TYPE'.
1659         (main): Implement compatibility with the old option `--dot-style'.
1660
1661         * init.c: Removed cmd_spec_dotstyle -- that logic is now in
1662         dp_set_params.
1663         (cmd_spec_progress): New function.
1664
1665         * retr.c (get_contents): Use the progress_* functions instead of
1666         the old show_progress().
1667         (show_progress): Removed.
1668         (rate): Print "xxxx.xx K/s" instead of "KB/s".  Ditto for MB/s,
1669         etc.
1670
1671         * progress.c (set_progress_implementation): New function.
1672         (valid_progress_implementation_p): Ditto.
1673         (progress_create): Ditto.
1674         (progress_update): Ditto.
1675         (progress_finish): Ditto.
1676         (dp_create): Ditto.
1677         (dp_update): Ditto.
1678         (dp_finish): Ditto.
1679         (dp_set_params): Ditto.
1680         (print_elapsed): Ditto.
1681
1682 2001-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
1683
1684         * retr.c (show_progress): Use it.
1685
1686         * log.c (log_set_flush): New function.
1687
1688 2001-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
1689
1690         * utils.c (path_simplify): Don't remove trailing slashes.
1691
1692         * ftp.c (ftp_get_listing): Use it.
1693
1694         * utils.c (file_merge): New function.
1695
1696         * url.c (opt_url): Removed.
1697
1698         * recur.c (recursive_retrieve): Inline "opt_url" logic.
1699
1700         * main.c (main): Use xfree(), not free().
1701
1702         * url.c (rewrite_url_maybe): Renamed to rewrite_shorthand_url.
1703
1704         * ftp.c (ccon): Move `ccon' typedef here, since it's only used
1705         internally.
1706
1707         * config.h.in: Include a stub for HAVE_STRPBRK.
1708
1709         * cmpt.c (strpbrk): Include a replacement for systems without
1710         strpbrk().
1711
1712         * ftp.c: Use url_set_dir and url_set_file when modifying the URL.
1713
1714         * url.c (url_set_dir): New function.
1715         (url_set_file): Ditto.
1716
1717         * ftp-basic.c (ftp_process_type): Process FTP type here; the URL
1718         parser makes the URL "params" available, so we can do that in this
1719         function.
1720
1721         * retr.c: Ditto.
1722
1723         * ftp.c: Ditto; pass the local file information in `ccon'.
1724
1725         * http.c: Get rid of the ugly kludge that had URL being replaced
1726         with the proxy URL when proxy retrieval was requested.  Use a
1727         separate parameter to http_loop and gethttp for the proxy URL.
1728
1729         * http.c: Changed to reflect the fact that local file, proxy, and
1730         referer information are no longer stored in struct url.  The local
1731         file information is passed in `struct hstat' now.
1732
1733         * url.c: Reworked URL parsing to be more regular.  Reencode the
1734         URL using reencode_string.
1735         Removed non-URL-related information from struct url.  This
1736         includes fields `proxy', `local', and `referer'.
1737
1738 2001-11-22  Jochen Hein  <jochen@jochen.org>
1739
1740         * main.c (main): Split the copyright notice for easier
1741         translation.
1742
1743 2001-08-21  Dave Turner <dct25@hermes.cam.ac.uk>
1744
1745         * ftp-basic.c (ftp_size): New function to send non-standard SIZE
1746           command to server to request file size.
1747         * ftp.h (ftp_size): Export it.
1748         * ftp.c (getftp): Use new ftp_size function if restoring
1749           transfer of a file with unknown size.
1750
1751 2001-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
1752
1753         * url.c (parseurl): Don't depend on the now-obsolete TYPE.
1754
1755 2001-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1756
1757         * url.c (getproxy): Handle URL shorthands.
1758
1759 2001-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1760
1761         * main.c: Remove --wait / --waitretry backwards compatibility
1762         code.
1763         
1764 2001-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1765
1766         * main.c (main): Use it.
1767
1768         * url.c (rewrite_url_maybe): New function.
1769
1770 2001-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1771
1772         * url.c: Clean up handling of URL schemes.
1773
1774 2001-05-13  Hrvoje Niksic  <hniksic@arsdigita.com>
1775
1776         * url.c: Get rid of `protostrings'.
1777         (skip_proto): Don't use protostrings.
1778         (has_proto): Ditto.
1779
1780 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1781
1782         * Makefile.in: Conditionally compile getopt.o.
1783
1784 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1785
1786         * md5.h: Renamed to gnu-md5.h.
1787
1788         * md5.c: Renamed to gnu-md5.c.
1789
1790         * http.c: Ditto.
1791
1792         * ftp-opie.c: Use the new macros.
1793
1794         * sysdep.h: Define md5-related macros.
1795
1796         * config.h.in: Define HAVE_SOLARIS_MD5 or HAVE_BUILTIN_MD5
1797         depending on which md5 implementation is used.
1798
1799 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1800
1801         * res.c (res_register_specs): Initialize OLD and HP_OLD to appease
1802         the compiler.
1803
1804 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1805
1806         * http.c (gethttp): Print the whole response line when printing
1807         headers is requested.
1808
1809 2001-05-12  Hrvoje Niksic  <hniksic@arsdigita.com>
1810
1811         * res.c: New file.  Implement all RES-related code here.
1812
1813 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1814
1815         * version.c: Wget 1.7.1 is released.
1816
1817 2001-11-16  Hrvoje Niksic  <hniksic@arsdigita.com>
1818
1819         * headers.c (header_extract_number): Ignore trailing whitespace.
1820
1821 2001-08-24  Ian Abbott  <abbotti@mev.co.uk>
1822
1823         * html-url.c (collect_tags_mapper): Fix bug converting links
1824         with -k option for tags with multiple link attributes by
1825         handling links in the order they appear.
1826
1827 2001-08-15  Ian Abbott  <abbotti@mev.co.uk>
1828
1829         * ftp.c (ftp_loop_internal): Avoid a potential buffer overflow in
1830           the call to the 'rate' function by moving it past the error
1831           checking for the 'getftp' function return value.
1832
1833 2001-11-16  Hrvoje Niksic  <hniksic@arsdigita.com>
1834
1835         * html-parse.c (advance_declaration): Use 0x22 instead of '"' or
1836         '\"'.  Different compilers' assert macros are broken in different
1837         ways.
1838
1839 2001-09-29  Christian Fraenkel  <c.fraenkel@gmx.net>
1840
1841         * http.c (gethttp): print debug output for errors occuring during
1842         the ssl handshake.
1843
1844 2001-11-16  Chris Seawood  <cls@seawood.org>
1845
1846         * init.c: Ditto.
1847
1848         * host.c: Ditto.
1849
1850         * connect.c: Ditto.
1851
1852         * sysdep.h: Support compilation under BEOS.
1853
1854 2001-06-08  Edward J. Sabol  <sabol@alderaan.gsfc.nasa.gov>
1855
1856         * url.c (url_equal): Fix a memory leak when parseurl returns an
1857         error on the second URL. Also, since url_equal is not used at the
1858         moment, do not compile it.
1859
1860         * url.h: Ditto for the prototype of url_equal.
1861
1862 2001-11-16  Hrvoje Niksic  <hniksic@arsdigita.com>
1863
1864         * html-parse.c (map_html_tags): Support XML-style empty tags.
1865
1866 2001-06-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1867
1868         * wget.h (DO_REALLOC_FROM_ALLOCA): Check for do_realloc_newsize in
1869         loop condition because we're no longer setting SIZEVAR here.
1870
1871 2001-06-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1872
1873         * wget.h (DO_REALLOC_FROM_ALLOCA): Set SIZEVAR after the memcpy()
1874         call because it needs the old value.
1875
1876 2001-06-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1877
1878         * cookies.c (ATTR_NAME_CHAR): Allow almost any character to be in
1879         an attribute name.
1880
1881 2001-06-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1882
1883         * url.c (url_filename): Make sure that slashes that sneak in to
1884         u->file via query string get protected.
1885         (file_name_protect_query_string): New function.
1886
1887 2001-06-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1888
1889         * recur.c (recursive_retrieve): Also check undesirable_urls with
1890         canonicalized URL.
1891
1892 2001-06-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1893
1894         * http.c (gethttp): Search `.netrc' with real host, not the proxy
1895         one.
1896
1897 2001-06-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1898
1899         * sysdep.h (MAP_FAILED): Provide MAP_FAILED for systems that don't
1900         define it.
1901
1902 2001-06-09  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
1903
1904         * ftp.h: Provide correct prototype for ftp_parse_ls().
1905
1906 2001-06-04  Hrvoje Niksic  <hniksic@arsdigita.com>
1907
1908         * version.c: Wget 1.7 is released.
1909
1910 2001-06-03  Karl Eichwalder  <ke@suse.de>
1911
1912         * ftp-ls.c (ftp_parse_ls): Fix typo.
1913
1914 2001-05-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1915
1916         * all: Update copyright information.
1917
1918 2001-05-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1919
1920         * http.c (gethttp): Indicate that the continued download failed
1921         for *this* file.
1922
1923 2001-05-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1924
1925         * version.c: Wget 1.7-pre1 is released.
1926
1927 2001-05-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1928
1929         * version.c: Updated version to 1.7-pre1.
1930
1931 2001-05-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1932
1933         * gen_sslfunc.c: Don't include <sys/time.h> directly.
1934
1935 2001-05-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1936
1937         * http.c (gethttp): Use real URL data for cookies, not the proxy
1938         stuff.
1939
1940 2001-05-12  Hrvoje Niksic  <hniksic@arsdigita.com>
1941
1942         * main.c (print_help): Document `--no-http-keep-alive'.
1943
1944         * utils.c (numdigit): Handle negative numbers *correctly*.
1945
1946         * hash.c (make_nocase_string_hash_table): Use term "nocase" rather
1947         than the confusing "unsigned".
1948
1949         * utils.c (string_set_contains): Renamed from string_set_exists.
1950
1951         * hash.c (hash_table_contains): Renamed from hash_table_exists.
1952
1953         * cookies.c: Move case-insensitive hash tables to hash.c.
1954
1955 2001-05-09  Hrvoje Niksic  <hniksic@arsdigita.com>
1956
1957         * http.c (gethttp): Before concluding that the file is already
1958         fully retrieved, make sure that the file existed and `Range' was
1959         actually requested.
1960
1961 2001-05-09  Hrvoje Niksic  <hniksic@arsdigita.com>
1962
1963         * cookies.c (eliminate_dups): New function.
1964         (build_cookies_request): Use it.
1965         (build_cookies_request): Set chain_store_size after reallocating
1966         all_chains.
1967         (check_domain_match): Annotated for easier future debugging.
1968         (store_cookie): In the debug message, print whether the cookie is
1969         permanent.
1970
1971 2001-05-08  Hrvoje Niksic  <hniksic@arsdigita.com>
1972
1973         * http.c (http_loop): Reset no_truncate before deciding whether to
1974         set it.
1975         (gethttp): Further clarify "-c conflicts with existing file" error
1976         message, based on input from Herold Heiko.
1977
1978 2001-05-07  Hrvoje Niksic  <hniksic@arsdigita.com>
1979
1980         * http.c (http_loop): If restval is set, set no_truncate to 1
1981         unconditionally.
1982
1983 2001-05-02  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
1984
1985         * ftp-ls.c (ftp_parse_winnt_ls): Assure months are being correctly
1986         converted. Pointed out by <Stefan.Weil@de.heidelberg.com>.
1987         (ftp_parse_vms_ls): Ditto.
1988
1989 2001-04-30  Hrvoje Niksic  <hniksic@arsdigita.com>
1990
1991         * init.c (cmd_address): Zero SIN before using it; apparently
1992         needed on *BSD.
1993
1994 2001-04-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1995
1996         * ftp.c (ftp_loop_internal): Don't set NO_TRUNCATE if the file is
1997         empty.
1998
1999 2001-04-29  Hrvoje Niksic  <hniksic@arsdigita.com>
2000
2001         * main.c (main): Make `--cookies' respect its argument.
2002
2003 2001-04-28  Hrvoje Niksic  <hniksic@arsdigita.com>
2004
2005         * main.c (main): Removed undocumented option `--email-address'.
2006
2007         * netrc.c: Use the latest read_whole_line.
2008
2009         * init.c (defaults): Set opt.ftp_pass to "-wget@".
2010
2011         * mswindows.c (pwd_cuserid): Ditto.
2012
2013         * utils.c (pwd_cuserid): Removed.
2014
2015         * host.c (ftp_getaddress): Removed.
2016
2017 2001-04-28  Hrvoje Niksic  <hniksic@arsdigita.com>
2018
2019         (http_loop): Allocate space for filename_plus_orig_suffix with
2020         alloca; this is more efficient and removes the need to free it
2021         before each and every return.
2022
2023 2001-04-28  Hrvoje Niksic  <hniksic@arsdigita.com>
2024
2025         * http.c (gethttp): Return RETRUNNEEDED when the retrieval is
2026         unneeded because the file is already there and fully downloaded,
2027         and -c is specified.
2028         (http_loop): Handle RETRUNNEEDED.
2029
2030         * wget.h (uerr_t): New value RETRUNNEEDED.
2031
2032         * http.c (http_loop): Set no_truncate for files that both exist
2033         and are non-empty.
2034         (gethttp): Consider the download finished when restval >= contlen,
2035         not only when restval==contlen.
2036         (gethttp): Handle redirection before giving up due to -c.
2037         (gethttp): Clarify error message which explains that -c will not
2038         truncate the file.
2039         (gethttp): When returning CONTNOTSUPPORTED, don't forget to free
2040         the stuff that needs freeing and release the socket.
2041
2042 2001-04-27  Hrvoje Niksic  <hniksic@arsdigita.com>
2043
2044         * main.c (print_help): Wget booleans accept "off", not "no".
2045
2046 2001-04-27  Hrvoje Niksic  <hniksic@arsdigita.com>
2047
2048         * http.c (http_loop): If allow_cache is zero, always disable
2049         caching, not only when retrieving through proxy.
2050
2051         * init.c: Ditto.
2052
2053         * options.h (struct options): Rename proxy_cache to allow_cache.
2054
2055 2001-04-27  Hrvoje Niksic  <hniksic@arsdigita.com>
2056
2057         * http.c (mktime_from_utc): Improve documentation.
2058         (http_atotm): Put format strings into a separate array.
2059
2060 2001-04-27  Hrvoje Niksic  <hniksic@arsdigita.com>
2061
2062         * safe-ctype.h: Instead of throwing #error when isalpha is
2063         defined, redefine it to something that will throw a compile-time
2064         error if actually *used*.  Do the same for the rest of the
2065         standard C macros.
2066
2067 2001-04-26  Hrvoje Niksic  <hniksic@arsdigita.com>
2068
2069         * url.c (getproxy): Ignore empty proxy vars.
2070
2071 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2072
2073         * http.c (http_loop): Would load cookies every time.
2074
2075         * cookies.c (load_cookies): Handle cookies whose values contain
2076         embedded spaces.
2077
2078 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2079
2080         * utils.c: Define each DIGITS_* in one line.
2081
2082 2001-04-25  Roger L. Beeman  <beeman@cisco.com>
2083
2084         * http.c (http_atotm): Initialize t.tm_isdst to 0.
2085         (mktime_from_utc): Prevent mktime() from having discontinuities at
2086         DST transition points.
2087
2088 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2089
2090         * html-url.c (get_urls_html): Fix documentation.
2091
2092 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2093
2094         * url.c (UNSAFE_CHAR): Reimplement using a static table.
2095         (url_init): Removed.
2096         (init_unsafe_char_table): Removed.
2097
2098 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2099
2100         * snprintf.c (dopr): Replace ISDIGIT with '0' <= ch && ch <= '9'.
2101
2102 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2103
2104         * utils.c: Document timer functions.
2105
2106         * retr.c (rate): Use it.
2107         (rate): Print in GB/s if transfer rate exceeds 1 GB/s.
2108
2109         * utils.c (wtimer_granularity): New function.
2110
2111 2001-04-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2112
2113         * retr.c (show_progress): Ditto.
2114
2115         * ftp.c (getftp): Ditto.
2116
2117         * http.c (gethttp): Use new timer functions.
2118
2119         * utils.c (wtimer_allocate): New function.
2120         (wtimer_new): Ditto.
2121         (wtimer_delete): Ditto.
2122         (wtimer_reset): Ditto.
2123         (wtimer_elapsed): Ditto.
2124
2125 2001-04-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2126
2127         * utils.c (long_to_string): New, faster version.  Favors smaller
2128         numbers; much of the calculation is now done at compile-time.
2129
2130 2001-04-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2131
2132         * utils.c (numdigit): Handle negative numbers.
2133
2134 2001-04-23  Hrvoje Niksic  <hniksic@arsdigita.com>
2135
2136         * retr.c (show_progress): Print the download rate even when the
2137         percentages are not available.
2138
2139 2001-04-21  Hrvoje Niksic  <hniksic@arsdigita.com>
2140
2141         * ftp.c (getftp): Adjust expected_bytes if the length is
2142         authoritative.
2143
2144 2001-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
2145
2146         * url.c: Don't declare `construct'.
2147
2148         * hash.c (grow_hash_table): Speed up rehashing; inline storing of
2149         mappings to new locations.
2150         (hash_table_new): Make resize_threshold a field in the hash table,
2151         so we don't have to recalculate it in each hash_table_put.
2152         (grow_hash_table): Update resize_threshold.
2153         (MAX): Remove unused macro.
2154         (prime_size): Made static.
2155
2156 2001-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
2157
2158         * retr.c (retrieve_url): Call uri_merge, not url_concat.
2159
2160         * html-url.c (collect_tags_mapper): Call uri_merge, not
2161         url_concat.
2162
2163         * url.c (mkstruct): Use encode_string instead of xstrdup followed
2164         by URL_CLEANSE.
2165         (path_simplify_with_kludge): Deleted.
2166         (contains_unsafe): Deleted.
2167         (construct): Renamed to uri_merge_1.
2168         (url_concat): Renamed to uri_merge.
2169
2170 2001-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2171
2172         * url.c (str_url): Use encode_string instead of the unnecessary
2173         CLEANDUP.
2174         (encode_string_maybe): New function, returns input string if no
2175         encoding is needed.
2176         (encode_string): Call encode_string_maybe to do the dirty work,
2177         xstrdup if no work needed.
2178
2179 2001-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2180
2181         * wget.h (XDIGIT_TO_xchar): Define here.
2182
2183         * url.c (decode_string): Use new name.
2184         (encode_string): Ditto.
2185
2186         * http.c (XDIGIT_TO_xchar): Rename HEXD2asc to XDIGIT_TO_xchar.
2187         (dump_hash): Use new name.
2188
2189         * wget.h: Rename ASC2HEXD and HEXD2ASC to XCHAR_TO_XDIGIT and
2190         XDIGIT_TO_XCHAR respectively.
2191
2192 2001-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2193
2194         * init.c: Include cookies.h.
2195
2196         * cookies.h: Declare cookies_cleanup.
2197
2198         * cookies.c (check_domain_match): Remove unused variable.
2199         (save_cookies): Remove extraneous argument from debug statement.
2200
2201         * host.c (same_host): Don't call skip_url.
2202
2203         * url.c (skip_url): Removed.  Removed its calls from various
2204         functions in url.c.
2205
2206 2001-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2207
2208         * cookies.c (unsigned_string_hash): Use the new code in
2209         string_hash as reference.
2210
2211         * hash.c (hash_table_map): Allow deletion and change of the
2212         element processed by MAPFUN.
2213         (string_hash): Use the function from glib.
2214
2215 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2216
2217         * config.h.in: Include #undef stub.
2218
2219         * hash.c (hash_table_remove): Rewrite to actually clear deleted
2220         entries instead of just marking them as deleted.
2221
2222 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2223
2224         * hash.h: Declare hash_table_get_pair and hash_table_count.
2225
2226 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2227
2228         * cookies.c: Declare http_atotm.
2229
2230 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2231
2232         * ftp-ls.c (ftp_parse_unix_ls): Use octal constants for
2233         permissions.  A compiler that doesn't accept octal constants is
2234         seriously broken and shouldn't be used -- octal constants were
2235         present in K&R C!
2236
2237 2001-01-20  Karl Eichwalder  <ke@suse.de>
2238
2239         * Makefile.in: Provide and use DESTDIR according to the Coding
2240         Standards.
2241
2242 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2243
2244         * ftp-ls.c (ftp_parse_vms_ls): Make seconds optional in time
2245         specification.
2246
2247 2001-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
2248
2249         * url.c (parseurl): Don't strip trailing slash when u->dir is "/"
2250         because that strips the *leading* slash, thus forcing relative
2251         FTP retrieval.
2252
2253 2001-04-10  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2254
2255         * ftp.c (getftp): Convert initial FTP directory from VMS to UNIX
2256         notation for VMS servers. 
2257         (ftp_retrieve_dirs): Do not prepend '/' to f->name when
2258         odir is an empty string.
2259
2260 2001-04-10  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2261
2262         * ftp-ls.c (ftp_parse_winnt_ls): Made the fix for AM/PM more
2263         effective. Suggested by Edward J. Sabol.
2264
2265 2001-04-10  Hrvoje Niksic  <hniksic@arsdigita.com>
2266
2267         * cookies.c (build_cookies_request): Use and sort cookies from all
2268         matching domains.
2269         (build_cookies_request): Check for duplicates before generating
2270         the `Cookies' header.
2271
2272         * main.c (main): Don't load cookies here.
2273         (main): Make loadcookies and savecookies call the correct command.
2274
2275         * http.c (http_loop): Load cookies on-demand.
2276
2277 2001-04-09  Hrvoje Niksic  <hniksic@arsdigita.com>
2278
2279         * http.c (gethttp): Fix indentation of SSL ifdef.
2280
2281 2001-04-09  Hrvoje Niksic  <hniksic@arsdigita.com>
2282
2283         * ftp.c (ftp_retrieve_dirs): Don't forcibly prepend "/" to u->dir;
2284         that hack is no longer necessary.
2285         (getftp): Prepend initial directory to *non*-absolute u->dir's.
2286
2287 2001-04-09  Hrvoje Niksic  <hniksic@arsdigita.com>
2288
2289         * init.c (cmd_file): New function.
2290         (enable_tilde_expansion): New variable.
2291         (run_wgetrc): Use it.
2292         (cmd_file): Use it.
2293
2294 2001-04-08  Hrvoje Niksic  <hniksic@arsdigita.com>
2295
2296         * init.c: Include cookie-related options.
2297
2298         * main.c (main): Include cookie-specific options.
2299         (main): Load cookies before download is finished.
2300         (main): Save cookies when done.
2301
2302         * http.c (gethttp): Process the `Set-Cookie' header.
2303         (gethttp): Include cookies in the response.
2304
2305         * cookies.c: New file.
2306
2307 2001-04-08  Hrvoje Niksic  <hniksic@arsdigita.com>
2308
2309         * utils.c (datetime_str): New function.
2310
2311 2001-04-08  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2312
2313         * ftp-ls.c (ftp_parse_winnt_ls): The AM/PM change did assume
2314         12:01PM == 00:01, which was obviously wrong. Taken care of this
2315         anomaly.
2316
2317         * ChangeLog: Removed an excess conflict marker. Reformatted the
2318         entry by Philipp Thomas from 2001-03-09.
2319
2320         * ftp-ls.c (ftp_parse_winnt_ls): Ensure that adjusted PM hours lay
2321         between 0 and 23. Elminate unused variable `sec'.
2322
2323 2001-04-08  Hrvoje Niksic  <hniksic@arsdigita.com>
2324
2325         * hash.c (hash_table_count): New function.
2326
2327 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2328
2329         * utils.c (read_file): Cast MAP_FAILED to char *.  Enforced by
2330         Digital Unix cc.
2331
2332 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2333
2334         * config.h.in: Oops, do the namespace tweaks only on systems we
2335         know about.
2336
2337 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2338
2339         * hash.c: Include <string.h>.
2340
2341 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2342
2343         * config.h.in: Define "compilation environment" options that work
2344         under Linux and Solaris.  To be reviewed on other OS'es.
2345
2346 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2347
2348         * http.c (gethttp): Prepend literal newline with `\n\'.
2349
2350 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2351
2352         * sysdep.h: Don't define VERY_LONG_FORMAT.
2353
2354         * utils.c (very_long_to_string): New function.
2355         (legible_very_long): Use it; don't use VERY_LONG_FORMAT.
2356
2357 2001-04-04  Christian Fraenkel  <christian.fraenkel@gmx.net>
2358
2359         * url.c (parse_uname): Would run past the end of the string if the
2360         username was present, but the URL did not contain a slash, e.g.
2361         http://foo:bar@myhost.
2362
2363 2001-04-03  KOJIMA Hajime  <kjm@rins.ryukoku.ac.jp>
2364
2365         * http.c (http_atotm): Use %A instead of %a to match full
2366         weekday.  (On most systems there is no difference.)
2367
2368 2001-04-03  Paul Bludov  <paul@ozero.net>
2369
2370         * mswindows.c (sleep): Use SleepEx() instead of Sleep().
2371         (ws_changetitle): Use alloca() instead of malloc() to avoid memory
2372         leak.
2373         (ws_mypath): Use GetModuleFileName instead of argv[0].
2374         (ws_startup): Use data.wVersion for comparison.
2375
2376 2001-04-02  Hrvoje Niksic  <hniksic@arsdigita.com>
2377
2378         * http.c (http_loop): Ditto.
2379
2380         * ftp.c (ftp_loop_internal): Made the check whether to continue
2381         retrieval `-O'-friendly.
2382
2383 2001-04-02  Hrvoje Niksic  <hniksic@arsdigita.com>
2384
2385         * netrc.c (parse_netrc): Don't trim the line endings explicitly;
2386         they will be handled as whitespace.
2387         (parse_netrc): Correctly handle lines that end with whitespace.
2388
2389 2001-04-02  Hrvoje Niksic  <hniksic@arsdigita.com>
2390
2391         * retr.c (retrieve_url): New variable global_download_count used
2392         to identify first retrieval.
2393
2394         * ftp.c (getftp): Ditto.
2395
2396         * http.c (gethttp): Rewind opt.dfp only on first retrieval.
2397
2398 2001-04-02  Hrvoje Niksic  <hniksic@arsdigita.com>
2399
2400         * init.c (cmd_address): Heap-allocate the address that gets stored
2401         to CLOSURE.  Old code would simply assign an address on the stack.
2402
2403 2001-04-01  Nicolas Lichtmaier <nick@debian.org>
2404
2405         * ftp.c (ftp_get_listing): Propagate error status.
2406         (ftp_retrieve_glob): Use it.
2407         (ftp_loop): Ditto.
2408
2409 2001-04-01  Nicolas Lichtmaier <nick@debian.org>
2410
2411         * main.c (main): Add -C to the string that is the third arg to
2412         getopt_long().
2413
2414 2001-04-01  Hrvoje Niksic  <hniksic@arsdigita.com>
2415
2416         * ftp.c (getftp): Don't start the download from scratch if `-c'
2417         was specified, but the file is already fully downloaded.
2418
2419         * http.c (gethttp): Don't truncate a pre-existing file if `-c' was
2420         specified and the server doesn't support continued download.
2421         (gethttp): Don't start the download from scratch if `-c' was
2422         specified, but the file is already fully downloaded.
2423
2424 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2425
2426         (recursive_retrieve): Don't clear the hash tables at this point at
2427         all; it interferes with the normal operation of register_download.
2428
2429 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2430
2431         * recur.c (recursive_retrieve): Clear the hash tables only when
2432         they are defined.
2433
2434 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2435
2436         * http.c (gethttp): Make sure the socket is closed with
2437         CLOSE_INVALIDATE before we have drained the body.
2438
2439 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2440
2441         * retr.c (retrieve_url): Call register_download() for downloaded
2442         files and register_html() for downloaded HTML files.
2443
2444         * recur.c (register_download): New function; register here that a
2445         file has been downloaded, rather than in recursive_retrieve().
2446         (register_html): New function; enqueue the location of HTML files
2447         here rather than in recursive_retrieve().
2448
2449 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2450
2451         * main.c (print_help): Use multiple fputs instead of a single ugly
2452         printf().
2453         (main): Consistently assign numbers >128 to options without a
2454         corresponding character.
2455
2456 2001-03-09  Philipp Thomas  <pthomas@suse.de>
2457
2458         * safe-ctype.h: New file. Locale independent ctype.h replacement
2459         taken from libiberty.
2460
2461         * safe-ctype.c: New file. Tables for above.
2462
2463         * Makefile.in: Add safe-ctype$o to OBJS.  Add dependencies for
2464         safe-ctype$o.
2465
2466         * cmpt.c: Remove include of ctype.h. Use ISSPACE instead of
2467         isspace.
2468
2469         * ftp-basic.c: Don't include ctype.h.
2470
2471         * ftp-ls.c: Likewise.
2472
2473         * ftp.c: Likewise.
2474
2475         * headers.c: Likewise.
2476
2477         * host.c: Likewise.
2478
2479         * html-parse.c: Likewise.
2480
2481         * html-url.c: Likewise.
2482
2483         * http.c: Likewise.
2484
2485         * init.c: Likewise.
2486
2487         * main.c: Likewise. Set LC_CTYPE along with LC_MESSAGES.
2488
2489         * netrc.c: Likewise.
2490
2491         * recur.c: Likewise.
2492
2493         * retr.c: Likewise.
2494
2495         * snprintf.c: Replace ctype.h with safe-ctype.h. Use ISDIGIT
2496         instead of isdigit.
2497
2498         * sysdep.h: Remove defines of ctype macros as they aren't needed
2499         for safe-ctype-h.
2500
2501         * url.c: Don't include ctype.h.
2502
2503         * utils.c: Likewise.
2504
2505         * wget.h: Include safe-ctype.h.
2506
2507 2001-03-27  Dan Harkless  <wget@harkless.org>
2508
2509         * Makefile.in: Moved top_builddir out of "User configuration
2510         section" of top Makefile and analogous spot in this one.
2511
2512 2001-03-17  Dan Harkless  <wget@harkless.org>
2513
2514         * Makefile.in: Include @SSL_INCLUDES@ substition in INCLUDES.
2515         Define top_builddir.  Link wget with libtool so the user doesn't
2516         have to supply a bunch of custom environment variables to 
2517         correctly link with the OpenSSL shared libraries.
2518
2519 2001-03-06  Hack Kampbjorn  <hack@hackdata.com>
2520
2521         * http.c (gethttp): skip :port in host header if it is the
2522         DEFAULT_HTTPS_PORT when using SSL.
2523
2524         * url.c: move the #define of DEFAULT_HTTP_PORT, DEFAULT_FTP_PORT
2525         and DEFAULT_HTTPS_PORT to the header file so it can be use in the
2526         rest of the code. 
2527         * url.h: Ditto
2528
2529 2001-03-01  Jonas Jensen  <bones@huleboer.dk>
2530
2531         * retr.c (show_progress): Correctly calculate the number of bytes
2532         in the first line of the download that have been actually
2533         downloaded in this run.
2534
2535 2001-02-23  Dan Harkless  <wget@harkless.org>
2536
2537         * main.c (print_help): --help documentation for -N said it would
2538         re-download files if they had the _same_ timestamp on server.
2539         (print_help): -nr belongs in "FTP options" section of --help
2540         output, not "Recursive retrieval" section.  Alphabetized FTP
2541         options by long option name.
2542
2543 2001-02-16  Dan Harkless  <wget@harkless.org>
2544
2545         * init.c (commands): Hack Kampbjørn <hack@hackdata.com> discovered
2546         that "httpsproxy" had been inserted into commands[] out of
2547         alphabetical order, causing "BUG: unknown command `httpuser'".
2548
2549 2001-02-13  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2550
2551         * ftp-ls.c (ftp_parse_ls): Added support of ST_MACOS (Unix-like
2552         listing without correct permissons).
2553
2554         * ftp.h (stype): Added ST_MACOS to identify the NetPresenz MacOS
2555         FTP server. 
2556
2557         * ftp.c (ftp_retrieve_list): New mirroring logic: A remote file
2558         shall be donwloaded only when it's newer than the local copy or
2559         when it has the same timeestamp but its size is different. ST_VMS
2560         and ST_MACOS as special cases that lie about file size. 
2561
2562         * ftp-ls.c (ftp_parse_ls): Support for ST_MACOS.
2563
2564         * Makefile.in: Removed dependency on ftpparse library due to unclear
2565         copyright issues and absence of any feedback to our queries. 
2566
2567         * ftp-ls.c: Removed dependency on ftpparse library due to unclear
2568         copyright issues and absence of any feedback to our queries.   
2569         (ftp_parse_ls): Added a warning message when remote server system
2570         does not seem to be suported by wget. 
2571         (ftp_parse_vms_ls): New function for parsing VMS ftp
2572         server listing output.
2573         (clean_line): New function responsible for removing
2574         end-of-line characters from FTP listing texts.
2575
2576         * ftp.c (getftp): Global variables pwd and host_type are now
2577         member of the ccon structure under names ccon.id and ccon.rs. 
2578
2579         * ftp.h (struct ccon): Added formed global variables from ftp.c,
2580         enum stype rs (remote system identification) and char *id (initial
2581         working directory), as suggested by Hrvoje.
2582
2583         * url.c (parse_uname): Added support for passwords containing '@'
2584         characters.
2585         (skip_uname): Ditto.
2586
2587 2001-02-11  Hrvoje Niksic  <hniksic@arsdigita.com>
2588
2589         * ftp.c (ftp_loop): Reset con.
2590
2591 2001-01-06  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2592
2593         * url.c (parse_uname): Added support for passwords containing '@'
2594         characters.
2595         (skip_uname): Ditto.
2596
2597 2001-02-11  Hack Kampbjørn  <hack@hackdata.com>
2598
2599         * url.c (parseurl): Debug-print u->ftp_type.
2600
2601 2001-02-11  Hrvoje Niksic  <hniksic@arsdigita.com>
2602
2603         * ftp.c (ftp_loop_internal): Disable padding.
2604         (getftp): Ditto.
2605
2606         * http.c (http_loop): Disable padding.
2607
2608         * retr.c (show_progress): Use it to enable padding.
2609
2610         * retr.c (rate): Optional parameter PAD for padding the rate.
2611
2612 2001-02-10  Hrvoje Niksic  <hniksic@arsdigita.com>
2613
2614         * retr.c (show_progress): Make sure that the last output line
2615         includes progress.
2616
2617 2001-02-10  Jonas Jensen  <bones@huleboer.dk>
2618
2619         * retr.c (show_progress): Print the download rate along with the
2620         percentages.
2621         Along with Anders Thorsby <anders@thorsby.dk>.
2622
2623 2001-02-10  Tim Mooney  <mooney@dogbert.cc.ndsu.NoDak.edu>
2624
2625         * ftp.h: Rename enums `command' to `wget_ftp_command' and
2626         `fstatus' to `wget_ftp_status' because old names clash with Tru64
2627         net/if.h.
2628
2629 2001-02-08  Christian Fraenkel <christian.fraenkel@gmx.net>
2630
2631         * gen_sslfunc.c: verify_callback is now static
2632
2633         * gen_sslfunc.c (init_ssl): load certificate if specified
2634
2635         * gen_sslfunc.c (ssl_printerr): new function
2636
2637         * init.c: added new --sslcertfile and --sslcertkey switches
2638
2639         * main.c: ditto
2640
2641         * options.h: ditto
2642
2643         * http.c (gethttp): abort when init_ssl fails
2644
2645 2001-01-23  Herold Heiko  <Heiko.Herold@previnet.it>
2646
2647         * mswindows.h: Include <malloc.h>; it's needed for alloca().
2648
2649 2001-01-10  Dan Harkless  <wget@harkless.org>
2650
2651         * url.c (str_url): Clarified this function's comment header after
2652         Hrvoje answered my question on the list as to when hide != 1.
2653         Also Hrvoje pointed out I need to use xstrdup() on the string literal.
2654
2655 2001-01-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2656
2657         * connect.c (bindport): Declare addrlen as int.  Diagnosed by
2658         Drazen Kacar <dave@arsdigita.com>.
2659         (conaddr): Ditto.
2660
2661 2001-01-09  Dan Harkless  <wget@harkless.org>
2662
2663         * html-url.c: A bunch of fixup of `--page-requisites'-related
2664         comments to reflect Hrvoje's changes to my code when transplanting
2665         it into this new file, to fix spelling mistakes, to clarify, etc.
2666
2667         * url.c (write_backup_file): Clarified a comment.
2668         (str_url): Henrik van Ginhoven pointed out on the list that we
2669         shouldn't give away the number of characters in the password by
2670         replacing each character with a 'x'.  Use "<password>" instead.
2671
2672         * ftp.c (ftp_retrieve_dirs): The bug where recursion into FTP
2673         directories didn't work if logging in put you in a directory other
2674         than "/" is fixed now.  Removed the comment here warning of the bug.
2675
2676         * main.c (print_help): --continue's description was misleading.
2677         We don't "restart", we "resume".  Also, better to say
2678         "partially-downloaded file" rather than just "existing file".
2679
2680 2001-01-06  Dan Harkless  <wget@harkless.org>
2681
2682         * ChangeLog: The '[Not in 1.6 branch.]'s were decided not to be
2683         the best way to go about my aim.  Removed them in favor of:
2684
2685         * ChangeLog-branches/1.6_branch.ChangeLog: New file.
2686
2687 2001-01-04  Hrvoje Niksic  <hniksic@arsdigita.com>
2688
2689         * url.c (replace_attr): New function, to be used by both
2690         TO_COMPLETE and TO_RELATIVE case in convert_links.
2691         (find_fragment): New function for finding URL fragments.
2692         (replace_attr): Better handle the case where the original string
2693         is not quoted.  Use find_fragment.
2694         (convert_links): Use replace_attr().
2695
2696 2000-12-31  Dan Harkless  <wget@harkless.org>
2697
2698         * ChangeLog: Since this flat file doesn't have multiple branches,
2699         looking at the dates would make you think that things went into
2700         1.6 that actually just went into the 1.7-dev branch.  Added "[Not
2701         in 1.6 branch.]" where appropriate to clarify.
2702         
2703 2000-12-30  Dan Harkless  <wget@harkless.org>
2704
2705         * ftp.c, http.c:  Applied Hack Kampbjørn <hack@hackdata.com>'s
2706         patch to deal with h_errno not being defined in netdb.h under Cygwin.
2707
2708 2000-12-18  Csaba Raduly  <csaba.raduly@sophos.com>
2709
2710         * sysdep.h: Include <malloc.h> and <io.h> under Watcom.
2711
2712 2000-12-17  Igor Khristophorov  <igor@atdot.org>
2713
2714         * http.c (check_end): Fix test for '+' or '-'.
2715
2716 2000-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
2717
2718         * url.c (parseurl): Rename inner loop var from i to ind to avoid
2719         clash with the function top-level-declared variable i.
2720         (str_url): Likewise, rename inner-loop i to j.
2721
2722         * recur.c (parse_robots): Don't declare LEN at top of function.
2723         (robots_match): Renamed parameter FORBIDDEN to avoid hiding of
2724         global variable.
2725
2726         * main.c (main): Change erroneous use of bitwise and to logical.
2727
2728         * init.c (cmd_address): Don't heap-allocate `sin'; it can be on
2729         the stack because it will be copied to closure.
2730
2731         Thanks to Csaba Raduly's run of PC-LINT over the sources.
2732
2733 2000-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
2734
2735         * http.c (basic_authentication_encode): Use xmalloc(), not
2736         malloc().  Thanks to Csaba Raduly's run of PC-LINT over the
2737         sources.
2738
2739 2000-12-17  Csaba Raduly  <csaba.raduly@sophos.com>
2740
2741         * sysdep.h: Test for __EMX__ rather than for EMXOS2 for OS/2
2742         compilation.
2743
2744 2000-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
2745
2746         * mswindows.c: Include <errno.h>.
2747
2748         * gen_sslfunc.c: Include <errno.h>.
2749
2750         * ftp-basic.c: Don't attempt to declare errno or h_errno because
2751         they're not used.
2752
2753         * main.c: Include <errno.h> because errno is used.
2754
2755         * ftp.c: Ditto.
2756
2757         * http.c: Include <netdb.h> for h_errno.
2758
2759 2000-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2760
2761         * html-parse.c (advance_declaration): MSVC assert() chokes on
2762         '\"'.  Use '"' instead.
2763
2764 2000-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
2765
2766         * utils.c (xfree_real): Removed.
2767         (xfree_debug): Just call free().
2768
2769         * wget.h (xfree): Make it an alias for free.
2770
2771 2000-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
2772
2773         * http.c (http_loop): Furthermore, touch output_document only if
2774         it is known to be an existing regular file.
2775
2776 2000-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
2777
2778         * ftp.c (ftp_retrieve_list): Ditto.
2779
2780         * http.c (http_loop): Touch output_document if that is used for
2781         output.
2782
2783 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2784
2785         * http.c: Include gen_sslfunc.h after including Wget's headers.
2786         (persistent_available_p): Needed coma before `int ssl'.
2787
2788 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2789
2790         * ftp.c (ftp_loop_internal): Ditto.
2791
2792         * http.c (http_loop): Use it.
2793
2794         * retr.c (sleep_between_retrievals): New function that handles the
2795         logic of opt.wait and opt.waitretry.
2796
2797 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2798
2799         * rbuf.h: Implement only a single version of RBUF_READCHAR, using
2800         rbuf_read_bufferful when the buffer is depleted.
2801
2802         * rbuf.c (rbuf_read_bufferful): New function.
2803
2804 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2805
2806         * gen_sslfunc.h: Use ansi2knr style function declarations.
2807
2808         * gen_sslfunc.c: Reformat according to the GNU coding standards.
2809         More should be done.
2810
2811         * http.c (persistent_available_p): Place the cheap SSL test nearer
2812         the top of the function.
2813         (CLOSE_FINISH, CLOSE_INVALIDATE): Define only one version of each.
2814
2815 2000-12-05  Hrvoje Niksic  <hniksic@arsdigita.com>
2816
2817         * url.c (init_unsafe_char_table): Reinstate space as an unsafe
2818         char.
2819
2820 2000-12-03  Christian Fraenkel <christian.fraenkel@gmx.net>
2821
2822         * Makefile.in: added gen_sslfunc object
2823         * config.h.in: added HAVE_SSL define
2824         * connect.c: changed select_fd from static int to int
2825         * connect.h: ditto
2826         * gen_sslfunc.h: New file
2827         * gen_sslfunc.c: ditto
2828         * http.c: added HTTPS fuctionality
2829         * retrc.c: ditto
2830         * url.c: ditto
2831         * init.c: added opt.httpsproxy
2832         * options.h: ditto
2833         * rbuf.h: added alternate rbuf struct
2834         * wget.h: added CONSSLERR
2835         * rbuf.c: ditto
2836
2837         * http.c: Added HTTPS fuctionality.
2838
2839         * retrc.c: Ditto.
2840
2841         * url.c: Ditto.
2842
2843         * init.c: Added opt.httpsproxy.
2844
2845         * options.h: Ditto.
2846
2847         * rbuf.h: Added alternate rbuf struct.
2848
2849         * wget.h: Added CONSSLERR.
2850
2851         * rbuf.c: Ditto.
2852
2853 2000-11-30  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2854
2855         * ftp-ls.c (ftp_parse_unix_ls): Added second parameter
2856         "ignore_perms" to ignore file and directory permissions for
2857         Windows NT FTP server listings.
2858         (ftp_parse_winnt_ls): New function.
2859         (ftp_parse_ls): Parses UNIX and Windows NT listings
2860         separately. Simple heuristics for distinguishing between UNIX and
2861         MS-DOS-like FTP listing provided by Windows NT FTP service.
2862
2863 2000-11-18  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2864
2865         * ftpparse.c, ftpparse.h: New files.
2866
2867         * ftp-ls.c (ftp_parse_ls): Use ftp_parse_unix_ls for UNIX servers
2868         only. Use ftp_parse_nonunix_ls otherwise.
2869         (ftp_parse_nonunix_ls): Stub to the ftpparse library handling all
2870         exotic FTP servers.
2871
2872         * ftp.h (stype): New enum, distinguishes UNIX, VMS, and "other"
2873         FTP servers.
2874
2875         * ftp.c: New static wariables host_type, pwd, and pwd_len. 
2876         (getftp): Support for VMS. Support for FTP servers that do not
2877         place you in the root directory after login.
2878         (ftp_retrieve_list): VMS is silent about the real file size, issue
2879         a more appropriate message.
2880         (ftp_get_listing): Pass host_type to ftp_parse_ls.
2881
2882         * ftp-basic.c (ftp_pwd, ftp_syst): New functions.
2883
2884 2000-11-30  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2885
2886         * ftp-ls.c (ftp_parse_unix_ls): Added second parameter
2887         "ignore_perms" to ignore file and directory permissions for
2888         Windows NT FTP server listings.
2889         (ftp_parse_winnt_ls): New function.
2890         (ftp_parse_ls): Parses UNIX and Windows NT listings
2891         separately. Simple heuristics for distinguishing between UNIX
2892         and MS-DOS-like FTP listing provided by Windows NT FTP service.
2893
2894 2000-11-29  John Summerfield  <summer@OS2.ami.com.au>
2895
2896         * netrc.c (parse_netrc): Get rid of line ending.
2897
2898 2000-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2899
2900         * ftp.c (ftp_retrieve_list): Undo typo "fix" until resolution by
2901         Dan.
2902
2903 2000-11-24  Karl Eichwalder  <ke@suse.de>
2904
2905         * main.c (print_help): Untabify.
2906
2907 2000-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
2908
2909         * utils.c (xrealloc_debug): Do the unregister/register thing only
2910         if the pointer has actually changed.
2911         (xmalloc_real): Declare `static' in DEBUG_MALLOC builds.
2912         (xfree_real): Ditto.
2913         (xrealloc_real): Ditto.
2914         (xstrdup_real): Ditto.
2915
2916 2000-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
2917
2918         * ftp.c (getftp): ftp_getaddress() returns a malloc'ed copy of the
2919         string; no need to strdup() it.
2920         (getftp): Make pwd_len a local variable.
2921         (ftp_loop): Free PWD before returning.
2922
2923         * init.c (cleanup): Free opt.ftp_pass only if it's non-NULL.
2924
2925 2000-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
2926
2927         * all: Use xfree() instead of free.
2928
2929         * utils.c (xfree): New function.
2930
2931 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
2932
2933         * url.c (convert_links): HTML-quote the converted string.
2934
2935         * utils.c (html_quote_string): Move here from ftp-ls.c
2936         (html_quote_string): Make non-static; declare in utils.h.
2937         (html_quote_string): Convert SP to &#32;.
2938
2939 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
2940
2941         * ftp.c (getftp): Reformat Jan's code according to GNU coding
2942         standards; remove (debugging?) printf's; use '\0' for the ASCII
2943         zero character.  Use alloca() instead of malloc() for
2944         inter-function temporary allocations.
2945
2946 2000-11-18  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2947
2948         * ftpparse.c, ftpparse.h: New files.
2949
2950         * ftp-ls.c (ftp_parse_ls): Use ftp_parse_unix_ls for UNIX servers
2951         only. Use ftp_parse_nonunix_ls otherwise.
2952         (ftp_parse_nonunix_ls): Stub to the ftpparse library handling all
2953         exotic FTP servers.
2954
2955         * ftp.h (stype): New enum, distinguishes UNIX, VMS, and "other"
2956         FTP servers.
2957
2958         * ftp.c: New static wariables host_type, pwd, and pwd_len. 
2959         (getftp): Support for VMS. Support for FTP servers that do not
2960         place you in the root directory after login.
2961         (ftp_retrieve_list): VMS is silent about the real file size, issue
2962         a more appropriate message.
2963         (ftp_get_listing): Pass host_type to ftp_parse_ls.
2964
2965         * ftp-basic.c (ftp_pwd, ftp_syst): New functions.
2966
2967 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
2968
2969         * hash.c (hash_table_put): Don't overwrite deleted mappings.
2970
2971 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
2972
2973         * hash.c (find_mapping): New function.
2974         (hash_table_get): Use it.
2975         (hash_table_get_pair): Ditto.
2976         (hash_table_exists): Ditto.
2977         (hash_table_remove): Ditto.
2978         (hash_table_remove): Really delete the entry if the mapping
2979         following LOCATION is empty.
2980
2981         * utils.c (string_set_add): Check whether the element has existed
2982         before.
2983
2984         * hash.c (hash_table_get_pair): New function.
2985
2986 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
2987
2988         * http.c (http_process_type): Ignore trailing whitespace; use
2989         strdupdelim().
2990
2991         * recur.c (recursive_retrieve): Use the new `convert' field.
2992         (convert_all_links): Ditto.
2993         (convert_all_links): Don't respect meta_disallow_follow.
2994
2995         * html-url.c (handle_link): Fill out link_relative_p and
2996         link_complete_p.
2997
2998         * url.h (struct _urlpos): Make elements more readable.
2999
3000         * recur.c (recursive_retrieve): Call slist_prepend instead of
3001         slist_append.
3002         (convert_all_links): Call slist_nreverse before iterating through
3003         urls_html.
3004
3005         * utils.c (slist_prepend): New function.
3006         (slist_nreverse): Ditto.
3007
3008 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
3009
3010         * http.c (check_end): Constify.
3011
3012 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
3013
3014         * http.c (http_loop): If username and password are known, try the
3015         `Basic' authentication scheme by default.
3016
3017         * connect.h: Declare test_socket_open.
3018
3019 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
3020
3021         * version.c: Bump version from 1.5.3+dev to 1.7-dev.
3022
3023 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
3024
3025         * http.c (gethttp): Don't use the return value of sprintf().
3026         (gethttp): Inhibit keep-alive if opt.http_keep_alive is 0.
3027
3028 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
3029
3030         * recur.c (recursive_retrieve): Print the "so we don't load"
3031         debugging message only if we really don't load.
3032
3033         * http.c (gethttp): Inhibit keep-alive if proxy is being used.
3034         (gethttp): Don't request keep-alive if keep-alive is inhibited.
3035
3036 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
3037
3038         * http.c (gethttp): Make the HTTP persistent connections more
3039         robust.
3040
3041 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
3042
3043         * retr.c (get_contents): If use_expected, make sure that the
3044         appropriate amount of data is being read.
3045
3046         * http.c (gethttp): Check for both `Keep-Alive: ...' and
3047         `Connection: Keep-Alive'.
3048
3049         * wget.h (DEBUGP): Call debug_logprintf only if opt.debug is
3050         turned on.
3051
3052 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
3053
3054         * http.c (connection_available_p): Use it.
3055
3056         * connect.c (test_socket_open): New function.
3057
3058         * http.c (gethttp): Support persistent connections.  Based on the
3059         ideas, and partly on code, by Sam Horrocks <sam@daemoninc.com>.
3060         (register_persistent): New function.
3061         (connection_available_p): Ditto.
3062         (invalidate_connection): Ditto.
3063
3064 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
3065
3066         * url.c (convert_links): Handle UREL2ABS case.
3067
3068         * recur.c (recursive_retrieve): Instead of the list
3069         urls_downloaded, use hash tables dl_file_url_map and
3070         dl_url_file_map.
3071         (convert_all_links): Use them to retrieve data.
3072
3073         * host.c (clean_hosts): Free the hash tables.
3074
3075         * main.c (private_initialize): Call host_init().
3076
3077         * host.c (store_hostaddress): Use a saner, hash table-based data
3078         model.
3079         (realhost): Ditto.
3080         (host_init): Initialize the hash tables.
3081
3082 2000-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
3083
3084         * utils.c (slist_append): Eviscerate NOSORT.  Hash tables are now
3085         used for what the sorted slists used to be used for.
3086         (slist_contains): Don't rely on the list being sorted.
3087         (slist_append): Simplify the code.
3088
3089         * recur.c (recursive_cleanup): Use free_string_set.
3090
3091         * utils.c (string_set_add, string_set_exists, string_set_free):
3092         New functions for easier freeing of hash tables whose keys are
3093         strdup'ed strings.
3094
3095         * recur.c (recursive_retrieve): Use the hash table functions for
3096         storing undesirable URLs.
3097
3098         * hash.c: New file.
3099
3100 2000-11-17  Hrvoje Niksic  <hniksic@arsdigita.com>
3101
3102         * main.c (private_initialize): Call url_init.
3103         (main): Call private_initialize.
3104
3105         * url.c (unsafe_char_table): New table.
3106         (UNSAFE_CHAR): Use it.
3107         (init_unsafe_char_table): New function.
3108         (url_init): New function; call init_unsafe_char_table.
3109
3110 2000-11-16  Hrvoje Niksic  <hniksic@arsdigita.com>
3111
3112         * mswindows.h: Define snprintf and vsnprintf to _snprintf and
3113         _vsnprintf respectively.
3114
3115 2000-11-15  Hrvoje Niksic  <hniksic@arsdigita.com>
3116
3117         * config.h.in: Do the _XOPEN_SOURCE and _SVID_SOURCE things only
3118         on Linux.
3119
3120 2000-11-15  Hrvoje Niksic  <hniksic@arsdigita.com>
3121
3122         * html-url.c (handle_link): Handle HTML fragment identifiers.
3123
3124         * recur.c (recursive_retrieve): If norobot info is respected and
3125         the file is specified not to be followed by robots, respect that.
3126
3127         * html-url.c (collect_tags_mapper): Handle <meta name=robots
3128         content=X>.  For us the important cases are where X is NONE or
3129         where X contains NOFOLLOW.
3130         (get_urls_html): Propagate that information to the caller.
3131
3132 2000-11-13  Hrvoje Niksic  <hniksic@arsdigita.com>
3133
3134         * url.c (convert_links): Unlink the file we might be reading from
3135         before writing to it.
3136         (convert_links): Use alloca instead of malloc for
3137         filename_plus_orig_suffix.
3138
3139 2000-11-12  Hrvoje Niksic  <hniksic@arsdigita.com>
3140
3141         * host.c (realhost): Add HOST to the list with quality==0 only if
3142         it wasn't already there.
3143         Based on analysis by Lu Guohan <feng@public.bjnet.edu.cn>.
3144
3145 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
3146
3147         * url.c (get_urls_file): Ditto.
3148         (convert_links): Ditto.
3149
3150         * html-url.c (get_urls_html): Use read_file() instead of
3151         load_file().
3152
3153         * utils.c (read_file): New function, instead of the old
3154         load_file().
3155         (read_file_free): Ditto.
3156
3157         * url.c (findurl): Search only for the supported protocols.
3158         (convert_links): Use fwrite() when writing out a region of
3159         characters.
3160
3161 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
3162
3163         * ftp-ls.c: Move html_quote_string and ftp_index here.
3164
3165         * url.c: Remove get_urls_html, since that's now in html-url.c.
3166
3167         * html-url.c: New file.
3168
3169         * html-parse.c: New file.
3170
3171 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
3172
3173         * init.c (run_wgetrc): Don't bother killing off '\r' since
3174         pars_line() skips whitespace at end of line anyway.
3175         (parse_line): Oops, it didn't.  Now it does.
3176
3177         * recur.c (parse_robots): Ditto here.
3178
3179         * ftp-ls.c (ftp_parse_unix_ls): Kill off the newline character
3180         manually because read_whole_line no longer does.
3181
3182         * utils.c (read_whole_line): Rewrite to: a) use less memory
3183         (reallocates to needed size after work), b) work faster -->
3184         fgets() instead of getc, c) be more correct --> doesn't kill the
3185         newline character at the end of line.
3186
3187 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
3188
3189         * init.c (comind): Initialize MAX to array size - 1.
3190
3191 2000-11-08  Hrvoje Niksic  <hniksic@arsdigita.com>
3192
3193         * url.c (construct): Changed last_slash[-1] to *(last_slash - 1).
3194         Suggested by Edward J. Sabol.
3195
3196 2000-11-08  Hrvoje Niksic  <hniksic@arsdigita.com>
3197
3198         * url.c (construct): Handle the case where host name is not
3199         followed by a slash.
3200
3201 2000-11-06  Hrvoje Niksic  <hniksic@arsdigita.com>
3202
3203         * init.c: commands[] need to be sorted!  ("base" wasn't.)
3204
3205 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
3206
3207         * wget.h (DO_REALLOC_FROM_ALLOCA): Use braces to disambiguate
3208         `if'.
3209
3210 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
3211
3212         * url.c (construct): Insert unneeded initialization for the
3213         compiler to shut up.
3214
3215         * config.h.in: Define _XOPEN_SOURCE to 500 to get the prototype
3216         for strptime() (*duh*).  Define _SVID_SOURCE to get S_IFLNK which
3217         otherwise gets lost when you define _XOPEN_SOURCE.
3218
3219         * utils.c (touch): Include the file name in the error message.
3220         From Debian.
3221
3222 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
3223
3224         * log.c (logvprintf): Use vsnprintf() in all cases.  If necessary,
3225         resize the buffer to fit the formated message.  That way, messages
3226         of arbitrary size may be printed.
3227         (logvprintf): Use saved_append() to optionally log the last
3228         several lines of output.
3229         (logputs): Ditto.
3230         (log_close): Adapt to new data structures.
3231         (log_dump): Ditto.
3232         (redirect_output): Print messages to stderr, not to stdout.
3233
3234         * log.c (saved_append_1): New function.  Replaces the old logging
3235         system ("log all output until 10M characters") with a new, much
3236         more reasonable one ("log last screenful of text").
3237         (saved_append): New function; call saved_append_1.
3238         (free_log_line): New function.
3239
3240 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
3241
3242         * url.c (construct): Fix comment.
3243         (find_last_char): Document.
3244
3245 2000-11-04  Hrvoje Niksic  <hniksic@arsdigita.com>
3246
3247         * snprintf.c: New file.
3248
3249 2000-11-03  Hrvoje Niksic  <hniksic@arsdigita.com>
3250
3251         * wget.h: If HAVE_STDARG_H is not defined, don't declare argument
3252         types to logprintf() and debug_logprintf().
3253
3254 2000-11-02  Hrvoje Niksic  <hniksic@arsdigita.com>
3255
3256         * ftp.c (ftp_loop_internal): Hide the password from the URL when
3257         printing non-verbose.  Problem spotted by Dariusz Mlynarczyk
3258         <darekm@bydg.lomac.com.pl>.
3259
3260 2000-11-02  Junio Hamano  <junio@twinsun.com>
3261
3262         * ftp-basic.c (ftp_login): Make comparison case-insensitive.
3263
3264 2000-11-02  Tyler Riddle  <triddle@liquidmarket.com>
3265
3266         * http.c (known_authentication_scheme_p): Recognize NTML
3267         authentication.
3268         (create_authorization_line): Treat NTML the same as `Basic'.
3269
3270 2000-11-02  Hrvoje Niksic  <hniksic@arsdigita.com>
3271
3272         * retr.c (retrieve_url): Free url before returning.
3273         (retrieve_url): Free mynewloc before returning.
3274         Spotted by Mark A. Mankins <Mankins_Mark@prc.com>.
3275
3276 2000-11-02  Hrvoje Niksic  <hniksic@arsdigita.com>
3277
3278         * url.c (parseurl): Remove possible reading past the end of
3279         sup_protos[].  Spotted by Mark A. Mankins <Mankins_Mark@prc.com>.
3280
3281 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3282
3283         * main.c (main): In case of opt.downloaded overflowing, print
3284         <overflow> instead of a totally bogus random value.
3285
3286         * retr.c (retrieve_from_file): Ditto.
3287
3288         * recur.c (recursive_retrieve): Ditto.
3289
3290         * main.c (main): Ditto.
3291
3292         * http.c (http_loop): Ditto.
3293
3294         * ftp.c (ftp_loop_internal): Use downloaded_increase() instead of
3295         `+=', and downloaded_exceeds_quota() instead of the simple-minded
3296         check.
3297         (ftp_retrieve_list): Ditto.
3298         (ftp_retrieve_dirs): Ditto.
3299         (ftp_retrieve_glob): Ditto.
3300
3301         * retr.c (downloaded_increase): New function.  Notice overflows of
3302         opt.downloaded.
3303         (downloaded_exceeds_quota): Make sure that opt.downloaded is not
3304         used if it overflowed.
3305
3306         * options.h (struct options): New member downloaded_overflow.
3307
3308 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3309
3310         * wget.h (enum): Remove extra space after last enumeration.
3311
3312 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3313
3314         * main.c (main): Use legible_very_long() for printing
3315         opt.downloaded.
3316
3317         * utils.c (legible_1): New function that operates on strings and
3318         does the brunt of legible()'s work.
3319         (legible): Use legible_1().
3320         (legible_very_long): New function; dump the argument with
3321         sprintf(), and call legible_1().
3322
3323         * options.h (struct options): Use VERY_LONG_TYPE for
3324         opt.downloaded.
3325
3326         * sysdep.h (VERY_LONG_TYPE): Define it to have a 64-bit or greater
3327         type.
3328
3329         * config.h.in: Make sure that SIZEOF_LONG and SIZEOF_LONG_LONG get
3330         defined.  Define HAVE_LONG_LONG if long long is available.
3331
3332 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3333
3334         * utils.c (long_to_string): Update with a later, better version.
3335
3336 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3337
3338         * url.c (path_simplify_with_kludge): New function.
3339         (path_simplify_with_kludge): Disable it.  Instead...
3340         (parse_dir): ...make sure that at this point the right thing is
3341         done, i.e. that "query" part of the URL (?...) is always assigned
3342         to the file, never to the directory portion of the path.
3343
3344 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3345
3346         * retr.c (retrieve_url): Detect redirection cycles.
3347
3348 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3349
3350         * url.c (get_urls_html): Decode HTML entities using
3351         html_decode_entities.
3352
3353         * html.c (htmlfindurl): Don't count the `#' in numeric entities
3354         (&#NNN;) as an HTML fragemnt.
3355         (html_decode_entities): New function.
3356
3357 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3358
3359         * html.c (htmlfindurl): Fix recognition of # HTML fragments.
3360
3361 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3362
3363         * url.c (construct): Rewritten for clarity.  Avoids the
3364         unnecessary copying and stack-allocation the old version
3365         performed.
3366
3367 2000-10-31  Hrvoje Niksic  <hniksic@arsdigita.com>
3368
3369         * ftp.c (getftp): Ditto.
3370
3371         * http.c (gethttp): Rewind the stream when retrying from scratch.
3372
3373 2000-10-31  Hrvoje Niksic  <hniksic@arsdigita.com>
3374
3375         * retr.c (retrieve_url): Use url_concat() to handle relative
3376         redirections instead of /ad hoc/ code.
3377
3378         * url.c (url_concat): New function encapsulating weird
3379         construct().
3380         (urllen_http_hack): New function.
3381         (construct): When constructing new URLs, recognize that `?' does
3382         not form part of the file name in HTTP.
3383
3384 2000-10-13  Adrian Aichner  <adrian@xemacs.org>
3385
3386         * retr.c: Add msec timing support for WINDOWS.
3387         * retr.c (reset_timer): GetSystemTime() on WINDOWS.
3388         * retr.c (elapsed_time): Calculate delta time to msec on WINDOWS.
3389
3390 2000-10-27  Dan Harkless  <wget@harkless.org>
3391
3392         * retr.c (retrieve_url): Manually applied T. Bharath
3393         <TBharath@responsenetworks.com>'s patch to get wget to grok
3394         illegal relative URL redirects.  Reformatted and re-commented it.
3395
3396 2000-10-23  Dan Harkless  <wget@harkless.org>
3397
3398         * connect.c (make_connection and bindport): Manually applied Rob
3399         Mayoff <mayoff@dqd.com>'s 1.5.3 patch to add --bind-address,
3400         changing coding style to GNU's.
3401
3402         * ftp.c (ftp_loop_internal): --delete-after wasn't implemented for
3403         files downloaded via FTP.  Per a comment, .listing files were not
3404         counted towards number of bytes and files downloaded because they're 
3405         deleted anyway.  Well, they aren't under -nr, so count them then.
3406
3407         * init.c: Manually applied Rob Mayoff's 1.5.3 patch to add
3408         --bind-address, alphabetizing, changing coding style to GNU's,
3409         commenting, and renaming cmd_ip_address() to cmd_address() to
3410         imply hostnames also okay.
3411                 
3412         * main.c (main): --delete-after didn't delete the root of the
3413         tree.  Ignore --convert-links if --delete-after was specified.
3414         Manually applied Rob Mayoff's 1.5.3 patch to add --bind-address,
3415         fixing duplicate use of added-since-1.5.3 case value.
3416         (print_help): Clarified that --delete-after deletes local files.
3417         Rob forgot to add a line for his new --bind-address option.
3418                 
3419         * options.h (struct options): Manually applied Rob Mayoff's patch
3420         to add --bind-address (bind_address structure member).
3421                 
3422         * recur.c (recursive_retrieve): Improved comment; added DEBUGP().
3423         Ignore --convert-links if --delete-after was specified.
3424                 
3425         * retr.c (retrieve_from_file): Just added a DEBUGP().
3426                 
3427 2000-10-19  Dan Harkless  <wget@harkless.org>
3428
3429         * ftp.c (ftp_loop_internal): downloaded_file() enumerators changed.
3430         (getftp): Applied Piotr Sulecki <Piotr.Sulecki@ios.krakow.pl>'s
3431         patch to work around FTP servers that incorrectly respond to the
3432         "REST" command with the remaining size rather than the total file size.
3433                 
3434         * http.c (gethttp): Improved a comment and added code to tack on
3435         ".html" to text/html files without that extension when -E specified.
3436         (http_loop): Use new downloaded_file() enumerators and deal with
3437         the case of gethttp() called xrealloc() on u->local.
3438
3439         * init.c (commands): Added new "htmlextension" command.
3440         Also renamed John Daily's cmd_quad() to the more descriptive
3441         cmd_lockable_boolean(), alpha-sorted the CMD_DECLARE()s and
3442         removed duplicate cmd_boolean() declaration.
3443
3444         * main.c (print_help): Added my new -E / --html-extension option.
3445         (main): Undocumented --email-address option previously used -E synonym.
3446         Stole it away for the much more deserving --html-extension's use.
3447
3448         * options.h (struct options): Added html_extension field.
3449
3450         * url.c (convert_links): URL X that we saved as X.html locally due
3451         to -E needs to be backed up as X.orig, not X.html.orig.  Added comments.
3452         (downloaded_file): Now remembers if we added .html extension to a file.
3453
3454         * url.h (downloaded_file_t): Added extra enumerators to support above.
3455         (downloaded_file): Now takes and returns a downloaded_file_t.
3456
3457         * wget.h (unnamed "dt" enum): Added ADDED_HTML_EXTENSION enumerator.
3458         
3459 2000-10-09  Dan Harkless  <wget@harkless.org>
3460
3461         * html.c (htmlfindurl): Added unneeded initialization to quiet warning.
3462                 
3463         * main.c (print_help): Clarified what --retr-symlinks does.
3464         
3465 2000-09-15  John Daily  <jdaily@cyberdude.com>
3466
3467         * init.c: Add support for "always" and "never" values to allow
3468         .wgetrc to override commandline (useful e.g. with .pm files
3469         calling `wget --passive-ftp' when your firewall doesn't allow that).
3470
3471         * ftp.c (getftp): passive_ftp is first option to support always/never.
3472
3473 2000-08-30  Dan Harkless  <wget@harkless.org>
3474
3475         * ftp.c (ftp_retrieve_list): Use new INFINITE_RECURSION #define.
3476         
3477         * html.c: htmlfindurl() now takes final `dash_p_leaf_HTML' parameter.
3478         Wrapped some > 80-column lines.  When -p is specified and we're at a 
3479         leaf node, do not traverse <A>, <AREA>, or <LINK> tags other than 
3480         <LINK REL="stylesheet">.
3481         
3482         * html.h (htmlfindurl): Now takes final `dash_p_leaf_HTML' parameter.
3483         
3484         * init.c: Added new -p / --page-requisites / page_requisites option.
3485
3486         * main.c (print_help): Clarified that -l inf and -l 0 both allow
3487         infinite recursion.  Changed the unhelpful --mirrior description
3488         to simply give the options it's equivalent to.  Added new -p option.
3489         (main): Added some comments; handle new -p / --page-requisites.
3490         
3491         * options.h (struct options): Added new page_requisites field.
3492
3493         * recur.c: Changed "URL-s" to "URLs" and "HTML-s" to "HTMLs".
3494         Calculate and pass down new `dash_p_leaf_HTML' parameter to
3495         get_urls_html().  Use new INFINITE_RECURSION #define.
3496
3497         * retr.c: Changed "URL-s" to "URLs".  get_urls_html() now takes
3498         final `dash_p_leaf_HTML' parameter.
3499
3500         * url.c: get_urls_html() and htmlfindurl() now take final
3501         `dash_p_leaf_HTML' parameter.
3502
3503         * url.h (get_urls_html): Now takes final `dash_p_leaf_HTML' parameter.
3504
3505         * wget.h: Added some comments and new INFINITE_RECURSION #define.
3506         
3507 2000-08-23  Dan Harkless  <wget@harkless.org>
3508
3509         * main.c (print_help): -B / --base was not mentioned.
3510
3511 2000-08-22  Dan Harkless  <wget@harkless.org>
3512
3513         * main.c (print_help): Modified -nc description to mention that it
3514         also prevents the creation of multiple versions of the same file
3515         with ".<number>" suffixes.
3516
3517 2000-07-14  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
3518
3519         * retr.c (retrieve_url): Consistently strdup opt.referer when
3520         setting u->referer.
3521
3522 2000-06-09  Dan Harkless  <wget@harkless.org>
3523
3524         * main.c (print_help): --help output for --waitretry was over 80 cols.
3525
3526 2000-06-09  Hrvoje Niksic  <hniksic@iskon.hr>
3527
3528         * url.c (encode_string): Fix comment.
3529         Suggested by Herold Heiko <Heiko.Herold@previnet.it>.
3530
3531 2000-06-01  Const Kaplinsky  <const@ce.cctpu.edu.ru>
3532
3533         * ftp.c (ftp_retrieve_list): Change permissions only on plain
3534         files.
3535
3536 2000-06-01  Hrvoje Niksic  <hniksic@iskon.hr>
3537
3538         * url.c (str_url): Print the port number only if it's different
3539         from the default port number for that protocol.
3540
3541 2000-05-22  Dan Harkless  <wget@harkless.org>
3542
3543         * main.c (print_help): Added --help line for Damir Dzeko
3544         <ddzeko@zesoi.fer.hr>'s until-now-undocumented --referer option.
3545         Removed comments that --referer and --waitretry were undocumented.
3546         Changed "`.wgetrc' command" to "`.wgetrc'-style command" on --help
3547         line for --execute.
3548
3549 2000-05-18  Hrvoje Niksic  <hniksic@iskon.hr>
3550
3551         * ftp.c (getftp): Ditto.
3552
3553         * http.c (gethttp): Check for return value of fclose/fflush.
3554
3555 2000-04-12  Hrvoje Niksic  <hniksic@iskon.hr>
3556
3557         * host.c (store_hostaddress): Instead of shifting ADDR, start
3558         copying from the correct address.
3559
3560 2000-04-12  Hrvoje Niksic  <hniksic@iskon.hr>
3561
3562         * http.c (gethttp): Don't free REQUEST -- it was allocated with
3563         alloca().
3564         Pointed out by Gisle Vanem <gvanem@eunet.no>.
3565
3566 2000-04-04  Dan Harkless  <wget@harkless.org>
3567
3568         * host.c (store_hostaddress): R. K. Owen's patch introduces a
3569         "left shift count >= width of type" warning on 32-bit
3570         architectures.  Got rid of it by tricking the compiler w/ a variable.
3571         
3572         * url.c (UNSAFE_CHAR): The macro didn't include all the illegal
3573         characters per RFC1738, namely everything above '~'.  It also
3574         generated a warning on OSes where char =~ unsigned char.  Fixed.
3575         
3576 1998-10-17  Hrvoje Niksic  <hniksic@srce.hr>
3577
3578         * http.c (http_process_type): Removed needless strdup(), a memory
3579         leak.
3580
3581 1998-09-25  Hrvoje Niksic  <hniksic@srce.hr>
3582
3583         * html.c (htmlfindurl): Set PH to the first occurrence of `#'.
3584
3585 1998-09-25  Simon Munton  <simonm@m4data.co.uk>
3586
3587         * init.c (wgetrc_file_name): Don't free HOME under Windows.
3588
3589 1998-12-01  "R. K. Owen"  <rkowen@Nersc.GOV>
3590
3591         * host.c (store_hostaddress): Fix for big endian 64-bit machines.
3592
3593 1998-12-01  Hrvoje Niksic  <hniksic@srce.hr>
3594
3595         * url.c (UNSAFE_CHAR): New macro.
3596         (contains_unsafe): Use it.
3597         (encode_string): Ditto.
3598
3599 1998-12-01  Hrvoje Niksic  <hniksic@srce.hr>
3600
3601         * main.c (i18n_initialize): Use LC_MESSAGES only if available.
3602
3603 2000-03-31  Hrvoje Niksic  <hniksic@srce.hr>
3604
3605         * Use TOUPPER/TOLOWER.
3606
3607 1998-12-22  Alexander V. Lukyanov  <lav@yars.free.net>
3608
3609         * ftp-opie.c (btoe): Zero-terminate OSTORE.
3610
3611 2000-03-21  Hrvoje Niksic  <hniksic@iskon.hr>
3612
3613         * wget.h (DO_REALLOC_FROM_ALLOCA): Ditto.
3614
3615         * sysdep.h (ISALNUM): New macro.
3616         (TOLOWER): Ditto.
3617         (TOUPPER): Ditto.
3618
3619 2000-03-10  Dan Harkless  <wget@harkless.org>
3620
3621         * html.c (idmatch): Implemented checking of my new --follow-tags
3622         and --ignore-tags options.
3623         
3624         * init.c (commands): Added comment reminding people adding new
3625         entries doing allocation to add corresponding freeing in cleanup().
3626         (commands): Added new followtags and ignoretags commands.
3627         (cleanup): Free storage for new followtags and ignoretags.
3628         
3629         * main.c: Use of "comma-separated list" was random -- normalized
3630         it.  Did some alphabetization.  Added comments pointing out
3631         "Options without arguments" and "Options accepting an argument"
3632         sections of long_options[].  Added new options --follow-tags and
3633         -G / --ignore-tags.  Added comment that Damir's --referer is
3634         currently undocumented.  Added comment that Heiko's --waitretry is
3635         partially undocumented (mentioned in --help but not in
3636         wget.texi).  Moved improperly sorted 24, 129, and 'G' cases.
3637         
3638         * options.h (struct options): Added new fields follow_tags and
3639         ignore_tags. 
3640         
3641         * wget.h: Added "#define EQ 0" so we can say "strcmp(a, b) == EQ".
3642         
3643 2000-03-02  Dan Harkless  <wget@harkless.org>
3644
3645         * ftp.c (ftp_loop_internal): Heiko introduced "suggest explicit
3646         braces to avoid ambiguous `else'" warnings.  Eliminated them.
3647         
3648         * http.c (gethttp): Dan Berger's query string patch is totally
3649         bogus.  If you have two different URLs, gen_page.cgi?page1 and
3650         get_page.cgi?page2, they'll both be saved as get_page.cgi and the
3651         second will overwrite the first.  Also, parameters to implicit
3652         CGIs, like "http://www.host.com/db/?2000-03-02" cause the URLs to
3653         be printed with trailing garbage characters, and could seg fault.
3654         Backing out the patch, which Dan B. informed me by email was just
3655         a kludge to download StarOffice from Sun made necessary due to
3656         wget's unconditional escaping of certain characters (room for an
3657         option there?).
3658         (http_loop): Heiko introduced "suggest explicit braces to avoid
3659         ambiguous `else'" warnings.  Eliminated them.
3660         
3661         * main.c: Heiko's --wait / --waitretry backwards compatibility
3662         code looks to have been totally untested -- automatic variable
3663         'wr' was used without being initialized, and a long int was passed
3664         into setval()'s char* val parameter.
3665         
3666         * recur.c (parse_robots): Applied Edward J. Sabol
3667         <sabol@alderaan.gsfc.nasa.gov>'s patch for Guan Yang's reported
3668         problem with "User-agent:<space>*<space>" lines in robots.txt.
3669         
3670         * url.c (parseurl, str_url): Removing Dan Berger's code (see
3671         http.c above for explanation).
3672         
3673 1999-08-25  Heiko Herold  <Heiko.Herold@previnet.it>
3674
3675         * ftp.c: Respect new option waitretry.
3676
3677 2000-01-30  Damir Dzeko  <ddzeko@zesoi.fer.hr>
3678
3679         * http.c (gethttp): Send custom Referer, if required.
3680
3681 1999-09-24  Charles G Waldman  <cgw@fnal.gov>
3682
3683         * netrc.c (parse_netrc): Allow passwords to contain spaces.
3684
3685         * netrc.c (parse_netrc): New function.
3686
3687 1999-09-17  Dan Berger  <dberger@ix.netcom.com>
3688
3689         * http.c (gethttp): Send it.
3690
3691         * url.c (parseurl): Detect query string in HTTP URL-s.
3692         (str_url): Print it.
3693
3694 2000-03-02  HIROSE Masaaki  <hirose31@t3.rim.or.jp>
3695
3696         * html.c (html_allow): Add <link href=...> and <script src=...>.
3697
3698 1999-05-02  andrew deryabin  <djsf@softhome.net>
3699
3700         * http.c (gethttp): Specify port in `Host' header only if it's
3701         different from 80.
3702
3703 1998-11-03  Edward J. Sabol  <sabol@alderaan.gsfc.nasa.gov>
3704
3705         * recur.c (recursive_retrieve): If a finite maximum depth is
3706         specified, and we're are already at that depth, don't download the
3707         HTML file for parsing.
3708
3709 2000-03-01  Dan Harkless  <wget@harkless.org>
3710
3711         * ftp.c (ftp_loop_internal): Call new downloaded_file() function,
3712         even though we don't do conversion on HTML files retrieved via
3713         FTP, so _current_ usage of downloaded_file() makes this call unneeded. 
3714         (ftp_retrieve_list): Added a comment saying where we need to
3715         stat() a .orig file if FTP'd HTML file conversion is ever implemented.
3716         (ftp_retrieve_list): "Local file '%s' is more recent," is sometimes
3717         a lie -- reworded as "Server file no newer than local file '%s' --".
3718         
3719         * http.c (http_loop): Fixed a typo and clarified a comment.
3720         (http_loop): When -K and -N are specified together, compare size
3721         and timestamp of server file X against local file X.orig (if
3722         extant) rather than converted local file X.
3723         (http_loop): "Local file '%s' is more recent," is sometimes a lie
3724         -- reworded as "Server file no newer than local file '%s' --".
3725         (http_loop): Call new downloaded_file() function to prevent
3726         wrongful overwriting of .orig file when -N is specified.
3727         
3728         * url.c (convert_links): When -K specified, only rename X to
3729         X.orig if downloaded_file() returns TRUE.  Otherwise when we skip
3730         file X due to -N, we clobber an X.orig from a previous invocation.
3731         (convert_links): Call the failsafe xstrdup(), not the real strdup().
3732         (convert_links): Added a note asking anyone who understands how
3733         multiple URLs can correspond to a single file to comment it.
3734         (downloaded_file): Added this new function.
3735         
3736         * url.h (downloaded_file): Added prototype for this new function
3737         as well as its downloaded_file_t enum type.
3738
3739         * wget.h (boolean): Added this new typedef and TRUE and FALSE #defines.
3740
3741 2000-02-29  Dan Harkless  <wget@harkless.org>
3742
3743         * version.c: Upped version to developer-only "1.5.3+dev".
3744
3745 2000-02-18  Dan Harkless  <wget@harkless.org>
3746
3747         * init.c (backup_converted): Added this new option.
3748
3749         * main.c (-K / --backup-converted): Added this new option.
3750
3751         * options.h (backup_converted): Added this new option.
3752
3753         * url.c (convert_links): When backup_converted is specified, save
3754         file X as X.orig before converting.
3755
3756         * url.h (urlpos): Fixed typo -- said "Rekative" instead of "Relative".
3757
3758 1998-09-21  Hrvoje Niksic  <hniksic@srce.hr>
3759
3760         * version.c: Wget 1.5.3 is released.
3761
3762 1998-09-21  Hrvoje Niksic  <hniksic@srce.hr>
3763
3764         * host.c (ftp_getaddress): Don't warn when reverse-lookup of local 
3765         address doesn't yield FQDN.
3766
3767 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3768
3769         * cmpt.c (strerror): Fix declaration of sys_errlist.
3770
3771 1998-09-11  Hrvoje Niksic  <hniksic@srce.hr>
3772
3773         * main.c (main): Don't use an array subscript as the first
3774         argument to STRDUP_ALLOCA.
3775         From Kaveh R. Ghazi.
3776
3777 1998-09-11  Szakacsits Szabolcs  <szaka@sienet.hu>
3778
3779         * html.c (htmlfindurl): Download table background.
3780
3781 1998-09-11  Hans Grobler  <grobh@conde.ee.sun.ac.za>
3782
3783         * init.c (parse_line): Would free *com before allocating it.
3784         (parse_line): Would free com instead of *com.
3785
3786 1998-09-10  Howard Gayle  <howard@fjst.com>
3787
3788         * url.c (get_urls_html): Would drop the last character of the
3789         link.
3790
3791 1998-09-10  Hrvoje Niksic  <hniksic@srce.hr>
3792
3793         * http.c (http_loop): Don't print status code if quiet.
3794
3795 1998-09-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3796
3797         * log.c: Use <stdarg.h> only when __STDC__.
3798
3799 1998-09-10  Adam D. Moss  <adam@foxbox.org>
3800
3801         * html.c (htmlfindurl): Download <layer src=...>.
3802
3803 1998-09-10  Howard Gayle  <howard@fjst.com>
3804
3805         * ftp.c (ftp_retrieve_list): Don't update the time stamp of a file 
3806         not retrieved.
3807
3808 1998-06-27  Hrvoje Niksic  <hniksic@srce.hr>
3809
3810         * utils.c: Include <libc.h> on NeXT.
3811
3812 1998-06-26  Heinz Salzmann  <heinz.salzmann@intermetall.de>
3813
3814         * url.c (get_urls_html): Fix calculation of URL position.
3815
3816 1998-06-23  Hrvoje Niksic  <hniksic@srce.hr>
3817
3818         * version.c: Wget 1.5.2 is released.
3819
3820 1998-06-23  Dave Love  <d.love@dl.ac.uk>
3821
3822         * ftp.c, init.c, netrc.c: Include errno.h.
3823
3824         * http.c: Include errno.h and time header.
3825
3826         * Makefile.in (exext): Define.
3827         (install.bin, uninstall.bin): Use it.
3828
3829 1998-06-21  Hrvoje Niksic  <hniksic@srce.hr>
3830
3831         * http.c (http_loop): Don't attempt to compare local and remote
3832         sizes if the remote size is unknown.
3833
3834 1998-06-16  Hrvoje Niksic  <hniksic@srce.hr>
3835
3836         * url.c (get_urls_html): Use malloc() instead of alloca in the
3837         loop.
3838
3839 1998-06-13  Hrvoje Niksic  <hniksic@srce.hr>
3840
3841         * version.c: Wget 1.5.2-b4 is released.
3842
3843 1998-06-13  Hrvoje Niksic  <hniksic@srce.hr>
3844
3845         * url.c (get_urls_html): Ignore spaces before and after the URI.
3846
3847 1998-06-08  Wanderlei Antonio Cavassin  <cavassin@conectiva.com.br>
3848
3849         * ftp.c (getftp): Translate `done'.
3850
3851 1998-06-06  Hrvoje Niksic  <hniksic@srce.hr>
3852
3853         * version.c: Wget 1.5.2-b3 is released.
3854
3855 1998-06-06  Alexander Kourakos  <awk@bnt.com>
3856
3857         * init.c (cleanup): Close dfp, don't free it.
3858
3859 1998-06-06  Hrvoje Niksic  <hniksic@srce.hr>
3860
3861         * utils.c (make_directory): Twiddle.
3862
3863         * config.h.in: Added template for access().
3864
3865 1998-06-05  Mathieu Guillaume  <mat@cythere.com>
3866
3867         * html.c (htmlfindurl): Download <input src=...>
3868
3869 1998-06-03  Hrvoje Niksic  <hniksic@srce.hr>
3870
3871         * utils.c (file_exists_p): Use access() with two arguments.
3872
3873 1998-05-27  Martin Kraemer  <Martin.Kraemer@mch.sni.de>
3874
3875         * netrc.c (parse_netrc): Correct logic.
3876
3877 1998-05-27  Hrvoje Niksic  <hniksic@srce.hr>
3878
3879         * ftp.c (getftp): Added `break'; suggested by Lin Zhe Min
3880         <ljm@ljm.wownet.net>.
3881
3882 1998-05-24  Hrvoje Niksic  <hniksic@srce.hr>
3883
3884         * version.c: Wget 1.5.2-b2 is released.
3885
3886 1998-05-18  Juan Jose Rodriguez  <jcnsoft@jal1.telmex.net.mx>
3887
3888         * mswindows.h: Don't translate mkdir to _mkdir under Borland.
3889
3890 1998-05-17  Hrvoje Niksic  <hniksic@srce.hr>
3891
3892         * retr.c (elapsed_time): Return correct value when
3893         HAVE_GETTIMEOFDAY is undefined.
3894
3895 1998-05-13  Hrvoje Niksic  <hniksic@srce.hr>
3896
3897         * version.c: Wget 1.5.2-b1 is released.
3898
3899 1998-05-08  Hrvoje Niksic  <hniksic@srce.hr>
3900
3901         * getopt.c (_getopt_internal): Use exec_name instead of argv[0].
3902         (_getopt_internal): Don't translate `#if 0'-ed strings.
3903
3904 1998-05-06  Douglas E. Wegscheid  <wegscd@whirlpool.com>
3905
3906         * mswindows.c (ws_handler): Use fork_to_background().
3907
3908 1998-05-05  Hrvoje Niksic  <hniksic@srce.hr>
3909
3910         * version.c: Wget 1.5.1 is released.
3911
3912 1998-05-05  Hrvoje Niksic  <hniksic@srce.hr>
3913
3914         * http.c (parse_http_status_line): Avoid `minor' and `major'
3915         names.
3916
3917 1998-05-02  Hrvoje Niksic  <hniksic@srce.hr>
3918
3919         * utils.c (mkdirhier): Renamed to make_directory.
3920
3921 1998-05-01  Hrvoje Niksic  <hniksic@srce.hr>
3922
3923         * mswindows.c (fork_to_background): Define under Windows.
3924
3925         * utils.c (fork_to_background): New function.
3926
3927         * html.c (htmlfindurl): Removed rerdundant casts.
3928
3929 1998-05-01  Douglas E. Wegscheid  <wegscd@whirlpool.com>
3930
3931         * mswindows.c (ws_mypath): Cache the path.
3932
3933 1998-04-30  Douglas E. Wegscheid  <wegscd@whirlpool.com>
3934
3935         * ftp.h: Prefix enum ftype members with FT_.
3936
3937         * ftp-ls.c, ftp.c, html.h: Adjust accordingly.
3938
3939         * mswindows.h: Use stat under Borland, _stat under MSVC.
3940
3941 1998-04-28  Hrvoje Niksic  <hniksic@srce.hr>
3942
3943         * http.c (known_authentication_scheme_p): New function.
3944         (gethttp): Handle authorization more correctly.
3945
3946         * ftp-basic.h: Removed.
3947
3948         * cmpt.h: Removed.
3949
3950         * utils.c: Include <unistd.h> before <pwd.h>; needed under SunOS
3951         with gcc 2.8.
3952         (numdigit): Use `while' loop.
3953
3954         * http.c (create_authorization_line): Detect authentication
3955         schemes case-insensitively.
3956
3957         * http.c (extract_header_attr): Use strdupdelim().
3958         (digest_authentication_encode): Move declaration of local
3959         variables to smaller scope.
3960         (digest_authentication_encode): Reset REALM, OPAQUE and NONCE.
3961         (create_authorization_line): Detect authentication schemes
3962         case-insensitively.
3963
3964         * utils.c (touch): Constify.
3965
3966         * http.c (gethttp): Report a nicer error when no data is received.
3967
3968         * rbuf.h (RBUF_READCHAR): Ditto.
3969
3970         * ftp-basic.c (ftp_response): Use sizeof.
3971
3972 1998-04-27  Hrvoje Niksic  <hniksic@srce.hr>
3973
3974         * retr.c (print_percentage): EXPECTED is long, not int.
3975         (print_percentage): Use floating-point arithmetic to avoid
3976         overflow with large files' sizes multiplied with 100.
3977
3978 1998-04-27  Gregor Hoffleit  <flight@mathi.uni-heidelberg.de>
3979
3980         * config.h.in: Added pid_t stub.
3981
3982         * sysdep.h (S_ISREG): Moved here from mswindows.h (NeXT doesn't
3983         define it).
3984
3985 1998-04-20  Hrvoje Niksic  <hniksic@srce.hr>
3986
3987         * version.c: Wget 1.5.0 is released.
3988
3989 1998-04-18  Hrvoje Niksic  <hniksic@srce.hr>
3990
3991         * url.c (str_url): Ditto.
3992
3993         * ftp-basic.c (ftp_rest): Use new name.
3994
3995         * utils.c (long_to_string): Renamed from prnum().
3996
3997 1998-04-16  Hrvoje Niksic  <hniksic@srce.hr>
3998
3999         * version.c: Wget 1.5-b17 is released.
4000
4001 1998-04-08  Hrvoje Niksic  <hniksic@srce.hr>
4002
4003         * headers.c (header_get): New argument FLAGS.
4004
4005         * http.c (gethttp): If request is malformed, bail out of the
4006         header loop.
4007         (gethttp): Check for empty header *after* the status line checks.
4008         (gethttp): Disallow continuations for status line.
4009
4010 1998-04-08  Hrvoje Niksic  <hniksic@srce.hr>
4011
4012         * version.c: Wget 1.5-b16 is released.
4013
4014 1998-04-08  Hrvoje Niksic  <hniksic@srce.hr>
4015
4016         * init.c (commands): Renamed `always_rest' to `continue'.
4017
4018 1998-04-05  Hrvoje Niksic  <hniksic@srce.hr>
4019
4020         * all: Use it.
4021
4022         * log.c (logputs): New argument.
4023         (logvprintf): Ditto.
4024         (logprintf): Ditto.
4025
4026 1998-04-04  Hrvoje Niksic  <hniksic@srce.hr>
4027
4028         * http.c (http_atotm): Update comment.
4029
4030         * main.c (i18n_initialize): Set LC_MESSAGES, not LC_ALL.
4031
4032         * wget.h: Renamed ENABLED_NLS to HAVE_NLS.
4033
4034         * main.c (i18n_initialize): New function.
4035         (main): Use it.
4036
4037         * log.c: Include <unistd.h>.
4038
4039         * retr.c (show_progress): Cast alloca to char *.
4040
4041 1998-04-04  Hrvoje Niksic  <hniksic@srce.hr>
4042
4043         * version.c: Wget 1.5-b15 is released.
4044
4045 1998-04-04  Hrvoje Niksic  <hniksic@srce.hr>
4046
4047         * utils.h: Declare file_non_directory_p().
4048
4049 1998-04-03  Hrvoje Niksic  <hniksic@srce.hr>
4050
4051         * main.c (main): It's `tries', not `numtries' now.
4052
4053 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
4054
4055         * init.c (getperms): Removed.
4056
4057 1998-04-01  Tim Charron  <tcharron@interlog.com>
4058
4059         * log.c (logvprintf): Don't use ARGS twice.
4060
4061 1998-04-01  John  <john@futuresguide.com>
4062
4063         * mswindows.c: Cleaned up.
4064
4065 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
4066
4067         * version.c: Wget 1.5-b14 is released.
4068
4069 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
4070
4071         * ftp-opie.c (STRLEN4): New macro.
4072         (btoe): Use it.
4073
4074 1998-04-01  Junio Hamano  <junio@twinsun.com>
4075
4076         * http.c: Document all the Digest functions.
4077
4078 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
4079
4080         * utils.c (file_non_directory_p): Renamed from isfile().
4081
4082         * mswindows.h (S_ISREG): New macro, suggested by Tim Adam.
4083
4084 1998-03-31  Hrvoje Niksic  <hniksic@srce.hr>
4085
4086         * utils.c (mkdirhier): Use 0777 instead of opt.dirmode.
4087
4088         * init.c (cmd_spec_dotstyle): Use 48 dots per line for binary
4089         style.
4090         (cmd_permissions): Removed.
4091
4092         * config.h.in: Add template for WORDS_BIGENDIAN.
4093
4094 1998-03-31  Junio Hamano  <junio@twinsun.com>
4095
4096         * http.c (HEXD2asc): New macro.
4097         (dump_hash): Use it.
4098
4099 1998-03-31  Hrvoje Niksic  <hniksic@srce.hr>
4100
4101         * version.c: Wget 1.5-b13 is released.
4102
4103 1998-03-31  Hrvoje Niksic  <hniksic@srce.hr>
4104
4105         * main.c (main): Don't try to use `com'.
4106
4107 1998-03-30  Hrvoje Niksic  <hniksic@srce.hr>
4108
4109         * init.c (cmd_permissions): New function.
4110
4111 1998-03-30  Hrvoje Niksic  <hniksic@srce.hr>
4112
4113         * version.c: Wget 1.5-b12 is released.
4114
4115 1998-03-30  Hrvoje Niksic  <hniksic@srce.hr>
4116
4117         * init.c (commands): Renamed `numtries' to `tries'.
4118         (cmd_spec_debug): Removed.
4119         (home_dir): Under Windows, return `C:\' if HOME is undefined.
4120
4121 1998-03-29  Hrvoje Niksic  <hniksic@srce.hr>
4122
4123         * config.h.in: Define _XOPEN_SOURCE.
4124
4125         * init.c (check_user_specified_header): New function.
4126         (cmd_spec_header): Use it.
4127         (cmd_spec_useragent): New function.
4128
4129 1998-03-29  Hrvoje Niksic  <hniksic@srce.hr>
4130
4131         * version.c: Wget 1.5-b11 is released.
4132
4133 1998-03-28  Hrvoje Niksic  <hniksic@srce.hr>
4134
4135         * wget.h: Include <libintl.h> only if NLS is enabled.
4136
4137 1998-03-26  Hrvoje Niksic  <hniksic@srce.hr>
4138
4139         * options.h (struct options): Made `wait' a long.
4140         (struct options): Ditto for `timeout'.
4141
4142 1998-03-19  Hrvoje Niksic  <hniksic@srce.hr>
4143
4144         * utils.c (exists): Renamed to file_exists_p.
4145         (file_exists_p): Use access() if available.
4146
4147 1998-03-17  Hrvoje Niksic  <hniksic@srce.hr>
4148
4149         * utils.c (memfatal): Set save_log_p to 0 to avoid potential
4150         infloop.
4151
4152         * log.c: do_logging -> save_log_p.
4153
4154         * config.h.in: Added template for HAVE_VSNPRINTF.
4155
4156 1998-03-16  Hrvoje Niksic  <hniksic@srce.hr>
4157
4158         * init.c: Ditto.
4159
4160         * http.c: Protect declaration against non-ANSI compiler.
4161
4162         * log.c (logvprintf): Use vsnprintf() if available.
4163
4164         * getopt.c (main): Don't translate test stuff.
4165
4166 1998-03-16  Hrvoje Niksic  <hniksic@srce.hr>
4167
4168         * version.c: Wget 1.5-b10 is released.
4169
4170 1998-03-11  Hrvoje Niksic  <hniksic@srce.hr>
4171
4172         * ftp.c (getftp): Don't translate "CWD %s".
4173
4174         * wget.h (GCC_FORMAT_ATTR): Renamed from FORMAT_ATTR.
4175
4176 1998-03-07  Hrvoje Niksic  <hniksic@srce.hr>
4177
4178         * ftp-opie.c (btoe): Use memcpy() instead of strncat().
4179
4180         * log.c (logputs): New function.
4181         (logvprintf): Renamed from vlogmsg; use logputs().
4182
4183         * retr.c (show_progress): Print `[100%]' when the retrieval is
4184         finished.
4185
4186         * init.c (run_wgetrc): Use FILE, not PATH.
4187         (wgetrc_file_name): Ditto.
4188
4189 1998-03-07  Tim Adam  <tma@osa.com.au>
4190
4191         * recur.c (parse_robots): Correctly reset `entries' on empty
4192         disallow.
4193
4194 1998-03-07  Hrvoje Niksic  <hniksic@srce.hr>
4195
4196         * init.c (cmd_spec_debug): Use cmd_boolean().
4197
4198 1998-02-23  Hrvoje Niksic  <hniksic@srce.hr>
4199
4200         * http.c (gethttp): Create proxy-authorization correctly.
4201
4202 1998-02-22  Hrvoje Niksic  <hniksic@srce.hr>
4203
4204         * md5.c: Ditto.
4205
4206         * getopt.c: Use ANSI function definitions.
4207
4208         * ftp-opie.c: New file.
4209
4210         * options.h: Don't redefine EXTERN.
4211
4212         * init.c: Sort it correctly.
4213
4214 1998-02-22  Hrvoje Niksic  <hniksic@srce.hr>
4215
4216         * version.c: Wget 1.5-b9 is released.
4217
4218 1998-02-22  Hrvoje Niksic  <hniksic@srce.hr>
4219
4220         * recur.c (recursive_retrieve): Reset `first_time'.
4221
4222         * ftp.c (getftp): Added `default' clause to switches of uerr_t.
4223
4224         * rbuf.c (rbuf_peek): Simplified.
4225         (rbuf_flush): Use MINVAL.
4226
4227         * wget.h (MINVAL): Moved from url.h.
4228
4229         * rbuf.h (RBUF_FD): New macro.
4230
4231         * url.c (add_url): Add to the head of the list.
4232
4233         * ftp.c (ftp_retrieve_list): Set the permissions to downloaded
4234         file.
4235         (getftp): Set the default permissions to 0600.
4236
4237 1998-02-21  Hrvoje Niksic  <hniksic@srce.hr>
4238
4239         * url.c (get_urls_html): Ditto.
4240         (convert_links): Ditto.
4241
4242         * recur.c (parse_robots): Ditto.
4243
4244         * html.c (ftp_index): Ditto.
4245
4246         * ftp-ls.c (ftp_parse_unix_ls): Open file as binary.
4247
4248         * init.c (defaults): Initialize `opt' to zero via memset.
4249
4250         * http.c (digest_authentication_encode): goto considered harmful.
4251
4252 1998-02-19  Hrvoje Niksic  <hniksic@srce.hr>
4253
4254         * ftp.c (delelement): Simplify and fix leak.
4255
4256 1998-02-18  Hrvoje Niksic  <hniksic@srce.hr>
4257
4258         * http.c (dump_hash): Use HEXD2ASC instead of home-grown stuff.
4259
4260         * url.h (HEXD2ASC): Removed warning.
4261
4262         * init.c (comind): Use binary search.
4263         (commands): Reorganized.
4264         (setval): Ditto.
4265         (cmd_boolean): New function.
4266         (cmd_number): Ditto.
4267         (cmd_number_inf): Ditto.
4268         (cmd_string): Ditto.
4269         (cmd_vector): Ditto.
4270         (cmd_directory_vector): Ditto.
4271         (cmd_bytes): Ditto.
4272         (cmd_time): Ditto.
4273         (cmd_spec_debug): Ditto.
4274         (cmd_spec_dirmode): Ditto.
4275         (cmd_spec_dirstruct): Ditto.
4276         (cmd_spec_dotstyle): Ditto.
4277         (cmd_spec_header): Ditto.
4278         (cmd_spec_htmlify): Ditto.
4279         (cmd_spec_mirror): Ditto.
4280         (cmd_spec_outputdocument): Ditto.
4281         (cmd_spec_recursive): Ditto.
4282         (settime): Merged with cmd_time().
4283         (setbytes): Merged with cmd_bytes().
4284         (setonoff): Merged with cmd_boolean().
4285         (onoff): Ditto.
4286
4287 1998-02-17  Hrvoje Niksic  <hniksic@srce.hr>
4288
4289         * Makefile.in (distclean): Remove `config.h'.
4290
4291 1998-02-17  Hrvoje Niksic  <hniksic@srce.hr>
4292
4293         * version.c: Wget 1.5-b8 is released.
4294
4295 1998-02-17  Hrvoje Niksic  <hniksic@srce.hr>
4296
4297         * http.c (digest_authentication_encode): New function.
4298         (create_authorization_line): Use it.
4299         (dump_hash): New function.
4300         (digest_authentication_encode): Use it.
4301
4302         * fnmatch.c: Renamed from `mtch.c'.
4303
4304 1998-02-15  Karl Eichwalder  <ke@suse.de>
4305
4306         * main.c (main): Tag "Written by..." string as translatable.
4307
4308 1998-02-15  Hrvoje Niksic  <hniksic@srce.hr>
4309
4310         * wget.h (FREE_MAYBE): New macro.
4311
4312         * http.c (create_authorization_line): Don't use ANSI C string
4313         concatenation feature.
4314         (basic_authentication_encode): Use alloca() for temporary
4315         variables.
4316
4317         * recur.h: Ditto.
4318
4319         * http.c: Ditto.
4320
4321         * headers.h: Ditto.
4322
4323         * ftp-basic.c: Protect declaration against non-ANSI compiler.
4324
4325         * http.c (create_authorization_line): Cast `unsigned char *' to
4326         `char *' for sprintf, to shut up the noisy Digital Unix cc.
4327
4328 1998-02-15  Hrvoje Niksic  <hniksic@srce.hr>
4329
4330         * version.c: Wget 1.5-b7 is released.
4331
4332 1998-02-15  Hrvoje Niksic  <hniksic@srce.hr>
4333
4334         * cmpt.c (strstr): Synched with glibc-2.0.6.
4335
4336         * ftp-basic.c (calculate_skey_response): Ditto.
4337         (calculate_skey_response): Use alloca().
4338
4339         * http.c (create_authorization_line): Work with FSF's version of
4340         md5.c.
4341
4342         * md5.c: New file, from GNU libc.
4343
4344 1998-02-14  Hrvoje Niksic  <hniksic@srce.hr>
4345
4346         * url.h (URL_CLEANSE): Name the temporary variable more carefully.
4347
4348 1998-02-13  Hrvoje Niksic  <hniksic@srce.hr>
4349
4350         * http.c (basic_authentication_encode): New function, instead of
4351         the macro.
4352
4353 1998-02-13  Junio Hamano  <junio@twinsun.com>
4354
4355         * http.c: Add HTTP-DA support.
4356         * ftp-basic.c: Add Opie/S-key support.
4357         * config.h.in, Makefile.in: Add HTTP-DA and Opie/S-key support.
4358         * md5.c, md5.h: New files.
4359
4360 1998-02-13  Hrvoje Niksic  <hniksic@srce.hr>
4361
4362         * http.c (http_process_range): Renamed from hprocrange().
4363         (http_process_range): Parse the whole header.
4364
4365         * headers.c: New file.
4366         (header_process): New function.
4367         (header_get): Renamed from fetch_next_header.
4368
4369         * all: Include utils.h only where necessary.
4370
4371         * wget.h: Declare xmalloc(), xrealloc() and xstrdup() here.
4372
4373         * wget.h: Add provisions for dmalloc.
4374
4375 1998-02-12  Hrvoje Niksic  <hniksic@srce.hr>
4376
4377         * version.c: Wget 1.5-b6 is released.
4378
4379 1998-02-12  Hrvoje Niksic  <hniksic@srce.hr>
4380
4381         * ftp.c (ftp_loop): Determine `filename' more precisely.
4382
4383         * init.c (setval): Don't set `opt.quiet' if output-document is
4384         `-'.
4385
4386         * log.c (log_init): Print to STDERR instead of STDOUT.
4387         (vlogmsg): Use STDERR by default.
4388         (logflush): Ditto.
4389
4390 1998-02-11  Simon Josefsson  <jas@pdc.kth.se>
4391
4392         * host.c: Use addr_in again.
4393
4394 1998-02-08  Karl Eichwalder  <karl@suse.de>
4395
4396         * http.c (gethttp): Fixed typo.
4397
4398 1998-02-08  Hrvoje Niksic  <hniksic@srce.hr>
4399
4400         * version.c: Wget 1.5-b5 is released.
4401
4402 1998-02-08  Hrvoje Niksic  <hniksic@srce.hr>
4403
4404         * retr.c (show_progress): Use it.
4405
4406         * log.c (logflush): New function.
4407
4408         * wget.h: Utilize __attribute__ if on gcc.
4409
4410 1998-02-07  Hrvoje Niksic  <hniksic@srce.hr>
4411
4412         * http.c (base64_encode_line): New argument LENGTH.
4413         (BASIC_AUTHENTICATION_ENCODE): Use it.
4414         (BASIC_AUTHENTICATION_ENCODE): Take length of HEADER into account.
4415
4416         * main.c (main): Fixed fprintf() format mismatch.
4417
4418 1998-02-06  Hrvoje Niksic  <hniksic@srce.hr>
4419
4420         * version.c: Wget 1.5-b4 is released.
4421
4422 1998-02-03  Simon Josefsson  <jas@pdc.kth.se>
4423
4424         * host.c: use sockaddr_in instead of addr_in.
4425
4426 1998-02-04  Hrvoje Niksic  <hniksic@srce.hr>
4427
4428         * init.c (cleanup): Use it.
4429
4430         * recur.c (recursive_cleanup): New function.
4431
4432         * retr.c (retrieve_from_file): Ditto.
4433
4434         * main.c (main): Use it.
4435
4436         * recur.c (recursive_reset): New function.
4437
4438         * retr.c (retrieve_from_file): Ditto.
4439
4440         * main.c (main): Simplify call to recursive_retrieve().
4441
4442         * recur.c (recursive_retrieve): Removed FLAGS argument.
4443
4444         * http.c (gethttp): Changed call to iwrite().
4445
4446 1998-02-03  Hrvoje Niksic  <hniksic@srce.hr>
4447
4448         * url.c (get_urls_html): Ditto.
4449         (free_urlpos): Ditto.
4450         (mkstruct): Ditto.
4451         (construct): Ditto.
4452
4453         * retr.c (retrieve_url): Move declaration of local variables to
4454         smaller scope.
4455
4456         * url.c (urlproto): Use it.
4457         (parseurl): Ditto.
4458         (str_url): Ditto.
4459         (get_urls_html): Ditto.
4460
4461         * utils.h (ARRAY_SIZE): New macro.
4462
4463         * url.c (proto): Moved from url.h.
4464
4465         * url.h (URL_CLEANSE): Reformatted.
4466         (USE_PROXY_P): Renamed from USE_PROXY.
4467
4468         * ftp-basic.c: Adjust to the new interface of iwrite().
4469
4470         * ftp-basic.c (ftp_port): Use alloca().
4471
4472 1998-02-03  Hrvoje Niksic  <hniksic@srce.hr>
4473
4474         * version.c: Wget 1.5-b3 is released.
4475
4476         * host.c (ftp_getaddress): Don't print to stderr directly.
4477
4478         * init.c (setbytes): Support `g' for gigabytes.
4479         (cmdtype): New specification CTIME.
4480         (setval): Use it with settime().
4481         (commands): Use it for WAIT and TIMEOUT.
4482
4483 1998-02-02  Hrvoje Niksic  <hniksic@srce.hr>
4484
4485         * http.c (BASIC_AUTHENTICATION_ENCODE): New macro.
4486         (gethttp): Use it.
4487
4488         * utils.c (unique_name_1): Moved from url.c.
4489         (unique_name): Ditto.
4490
4491         * url.c (url_filename): Ditto.
4492
4493         * log.c (redirect_output): Changed call to unique_name().
4494
4495         * url.c (unique_name_1): Renamed from unique_name().
4496         (unique_name): Changed interface.
4497
4498         * init.c (enum cmdid): Moved from init.h.
4499         (cmdtype): Ditto.
4500         (struct cmd): Ditto.
4501
4502         * main.c (main): Use it.
4503         (main): Moved `--backups' to not have a short option.
4504
4505         * options.h (struct options): New member BACKGROUND.
4506
4507         * main.c (print_help): Rearranged.
4508         (main): New long options for -n* short options: --no-directories,
4509         --no-host-directories, --non-verbose, --no-host-lookup and
4510         --dont-remove-listing.
4511
4512 1998-02-01  Hrvoje Niksic  <hniksic@srce.hr>
4513
4514         * main.c (main): Use log_close().
4515
4516         * log.c: New variable LOGFP.
4517         (vlogmsg): Use it.
4518         (redirect_output): Don't open /dev/null; set LOGFP to stdin
4519         instead.
4520         (log_close): New function.
4521
4522         * options.h (struct options): Removed LFILE.
4523
4524         * log.c (log_enable): Removed.
4525
4526         * main.c (main): Use it.
4527
4528         * log.c (log_init): New function.
4529
4530         * url.c (get_urls_html): Removed needless assignment to BASE.
4531
4532         * host.c (add_hlist): Don't set CMP needlessly.
4533
4534         * utils.c (match_backwards): Ditto.
4535         (in_acclist): Ditto.
4536
4537         * url.c (findurl): Ditto.
4538
4539         * netrc.c (parse_netrc): Ditto.
4540
4541         * log.c (log_dump): Ditto.
4542
4543         * html.c (html_quote_string): Ditto.
4544
4545         * ftp-basic.c (ftp_request): Made static.
4546
4547         * connect.c: Made global variables static.
4548
4549         * url.c (construct): Ditto.
4550
4551         * init.c (init_path): Avoid assignment inside `if'-condition.
4552
4553         * ftp.c: Don't include in.h or winsock.h.
4554
4555         * ftp.c (ftp_loop): Use SZ.
4556
4557         * connect.c (bindport): Cast &addrlen to int *.
4558         (conaddr): Ditto.
4559
4560         * init.c (initialize): Don't use SYSTEM_WGETRC unconditionally.
4561
4562 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
4563
4564         * ftp.c (getftp): Initialize opt.ftp_pass here.
4565         (ftp_retrieve_dirs): Use alloca().
4566
4567         * init.c (defaults): Don't initialize opt.ftp_pass.
4568
4569         * sysdep.h (S_ISLNK): Declare for OS/2; ditto for lstat.
4570         From Ivan F. Martinez <ivanfm@ecodigit.com.br>.
4571
4572 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
4573
4574         * recur.c (parse_robots): Check for comments more correctly.
4575
4576         * host.c (ftp_getaddress): Use STRDUP_ALLOCA.
4577         (ftp_getaddress): Add diagnostics when reverse-lookup yields only
4578         hostname.
4579
4580 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
4581
4582         * version.c: Wget 1.5-b2 is released.
4583
4584         * netrc.c (NETRC_FILE_NAME): Moved from netrc.h.
4585
4586         * utils.c (proclist): Pass FNM_PATHNAME to fnmatch().
4587
4588         * ftp-basic.c (ftp_pasv): Avoid unnecessary casting to unsigned
4589         char.
4590
4591         * log.c: Don't attempt to hide arguments from ansi2knr.
4592
4593         * cmpt.c: Synched strptime() and mktime() with glibc-2.0.6.
4594
4595         * ansi2knr.c: Use a later version, from fileutils-3.16l alpha.
4596
4597         * ftp.c (getftp): Ditto.
4598
4599         * http.c (gethttp): Use it.
4600
4601         * retr.c (get_contents): New argument EXPECTED; pass it to
4602         show_progress().
4603         (show_progress): New argument EXPECTED; use it to display
4604         percentages.
4605
4606         * init.c (setval): Ditto.
4607
4608         * http.c (gethttp): Ditto.
4609         (http_loop): Ditto.
4610
4611         * ftp.c (getftp): Ditto.
4612         (ftp_loop_internal): Ditto.
4613
4614         * ftp-ls.c (ftp_parse_unix_ls): Use abort() instead of assert(0).
4615
4616         * sysdep.h (CLOSE): Simplify; use DEBUGP.
4617
4618         * netrc.c (search_netrc): Use alloca().
4619
4620         * init.c (defaults): Initialize no_flush.
4621
4622         * log.c (vlogmsg): Don't flush if no_flush.
4623
4624         * options.h (struct options): New variable no_flush.
4625
4626         * main.c (main): Don't play games with buffering.
4627
4628         * log.c (vlogmsg): Flush the output after every message.
4629
4630 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
4631
4632         * init.c (parse_line): Ditto.
4633
4634         * url.c (get_urls_html): Ditto.
4635
4636         * main.c (main): Don't cast to unsigned char.
4637
4638         * init.c (run_wgetrc): Don't cast to unsigned char.
4639         (parse_line): Accept char instead of unsigned char.
4640
4641         * html.c (htmlfindurl): Use char instead of unsigned char.
4642
4643         * all: Use them.
4644
4645         * sysdep.h: Add wrappers to ctype macros to make them
4646         eight-bit-clean:
4647
4648 1998-01-30  Hrvoje Niksic  <hniksic@srce.hr>
4649
4650         * html.c (htmlfindurl): Download <img lowsrc=...>
4651
4652         * main.c (main): Ignore SIGPIPE.
4653
4654         * connect.c (select_fd): New argument WRITEP.
4655         (iwrite): Call select_fd().
4656
4657 1997-02-27  Fila Kolodny <fila@ibi.com>
4658
4659         * ftp.c (ftp_retrieve_list): If retrieving symlink and the proper
4660         one already exists, just skip it.
4661
4662 1998-01-30  Hrvoje Niksic  <hniksic@srce.hr>
4663
4664         * http.c (gethttp): Cosmetic changes.
4665
4666         * http.c (check_end): Allow `+D...' instead of `GMT'.
4667         From Fabrizio Pollastri <pollastri@cstv.to.cnr.it>.
4668
4669         * url.c (process_ftp_type): New function.
4670         (parseurl): Use it.
4671
4672         * connect.c (iwrite): Allow writing in a few chunks.
4673         (bindport): Made SRV static, so addr can point to it.
4674         (select_fd): Removed HPUX kludge.
4675
4676         * host.c (free_hlist): Incorporated into clean_hosts().
4677
4678 1998-01-29  Hrvoje Niksic  <hniksic@srce.hr>
4679
4680         * host.c (hlist): Made static.
4681         (search_address): Cosmetic change.
4682
4683 1998-01-29  Hrvoje Niksic  <hniksic@srce.hr>
4684
4685         * version.c: Wget v1.5-b1 is released.
4686
4687         * http.c (hgetlen): Use sizeof() to get the header length.
4688         (hgetrange): Ditto.
4689         (hgettype): Ditto.
4690         (hgetlocation): Ditto.
4691         (hgetmodified): Ditto.
4692         (haccepts_none): Ditto.
4693
4694         * main.c (main): Updated `--version' and `--help' output, as per
4695         Francois Pinard's suggestions.
4696
4697         * main.c: Include locale.h; call setlocale(), bindtextdomain() and 
4698         textdomain().
4699
4700         * config.h.in: Define stubs for I18N3.
4701
4702         * wget.h: Include libintl.h.
4703
4704 1998-01-28  Hrvoje Niksic  <hniksic@srce.hr>
4705
4706         * url.c (mkstruct): Check for opt.cut_dirs.
4707         (mkstruct): alloca()-te more, xmalloc() less.
4708
4709         * utils.c (load_file): Check for ferror().
4710
4711         * url.c (get_urls_file): Close only the files we opened.
4712         (get_urls_html): Ditto.
4713         (count_slashes): New function.
4714
4715         * http.h: Removed.
4716
4717         * http.c (gethttp): Respect username and password provided by
4718         proxy URL.
4719         (base64_encode_line): Write into an existing buffer instead of
4720         malloc-ing a new one.
4721         (struct http_stat): Moved from http.h
4722
4723         * retr.c (retrieve_url): Free SUF.
4724
4725         * all: Removed lots of unnecessary .h dependencies.
4726
4727         * html.c (global_state): Made static.
4728
4729         * utils.h (ALLOCA_ARRAY): New macro.
4730
4731         * main.c (main): New option `--cut-dirs'.
4732
4733         * url.c (construct): Use alloca() for T.
4734
4735         * utils.c (mkdirhier): Use STRDUP_ALLOCA.
4736
4737         * host.c (_host_t): Moved from host.h.
4738         (struct host): Renamed from _host_t.
4739         (store_hostaddress): Use STRDUP_ALLOCA for INET_S.
4740         (realhost): Ditto.
4741
4742         * host.h: Don't include url.h.
4743
4744         * ftp.c (LIST_FILENAME): Moved from ftp.h.
4745
4746         * init.c (DEFAULT_FTP_ACCT): Moved from ftp.h.
4747
4748         * main.c (main): Enable log if the output goes to a TTY.
4749
4750         * connect.h: Removed unused constant `BACKLOG'.
4751
4752         * config.h.in: Check for isatty().
4753
4754         * Makefile.in (LINK): Use CFLAGS when linking.
4755
4756 1998-01-27  Hrvoje Niksic  <hniksic@srce.hr>
4757
4758         * mswindows.c (ws_hangup): Use redirect_output().
4759
4760         * main.c (redirect_output_signal): New function; use
4761         redirect_output().
4762
4763         * log.c (redirect_output): New function, based on hangup(), which
4764         is deleted.
4765
4766         * log.c (vlogmsg): New function.
4767
4768         * wget.h (DEBUGP): Use debug_logmsg().
4769
4770         * main.c (hangup): Use it.
4771
4772         * log.c (log_dump): New function.
4773
4774         * utils.h (DO_REALLOC): Use `long' for various sizes.
4775
4776         * http.c (hskip_lws): Use `while', for clarity.
4777         (HTTP_DYNAMIC_LINE_BUFFER): New constant.
4778         (fetch_next_header): Use it instead of DYNAMIC_LINE_BUFFER.
4779
4780         * ftp-basic.c (FTP_DYNAMIC_LINE_BUFFER): New constant.
4781         (ftp_response): Use it instead of DYNAMIC_LINE_BUFFER.
4782
4783         * utils.c (DYNAMIC_LINE_BUFFER): Moved from utils.c.
4784         (LEGIBLE_SEPARATOR): Ditto.
4785         (FILE_BUFFER_SIZE): Ditto.
4786
4787         * retr.c (BUFFER_SIZE): Moved from retr.h.
4788
4789         * log.c: New file.
4790         (logmsg): Moved from utils.c.
4791         (debug_logmsg): New function.
4792
4793         * mswindows.h: Include it here.
4794
4795         * init.c: Ditto.
4796
4797         * utils.c: Don't include <windows.h>.
4798
4799 1998-01-25  Hrvoje Niksic  <hniksic@srce.hr>
4800
4801         * host.c (ftp_getaddress): Ditto.
4802
4803         * main.c (main): Use it.
4804
4805         * utils.h (STRDUP_ALLOCA): New macro.
4806
4807         * init.c: Prepend `wget: ' to error messages printed on stderr.
4808
4809         * utils.c (mkdirhier): Renamed from mymkdir.
4810         (touch): Renamed from my_touch.
4811         (pwd_cuserid): Renamed from my_cuserid().
4812
4813 1998-01-24  Andy Eskilsson  <andy.eskilsson@telelogic.se>
4814
4815         * utils.c (accdir): Process wildcards.
4816         (proclist): New function.
4817         (accdir): Use it to avoid code repetition.
4818
4819 1998-01-24  Hrvoje Niksic  <hniksic@srce.hr>
4820
4821         * recur.c (parse_robots): Respect opt.useragent; use alloca().
4822
4823         * http.c (gethttp): Construct useragent accordingly.
4824
4825         * version.c: Changed version string to numbers-only.
4826
4827         * main.c (print_help): List all the options.
4828
4829         * mswindows.c (windows_main_junk): Initialize argv0 here.
4830
4831 1998-01-24  Karl Heuer  <kwzh@gnu.org>
4832
4833         * netrc.c (search_netrc): Initialize `l' only after processing
4834         netrc.
4835
4836         * main.c (main): Don't trap SIGHUP if it's being ignored.
4837
4838 1998-01-24  Hrvoje Niksic  <hniksic@srce.hr>
4839
4840         * all: Use logmsg().
4841
4842         * utils.c (time_str): Moved from retr.c.
4843         (logmsg): New function.
4844         (logmsg_noflush): Ditto.
4845
4846         * rbuf.c: New file, moved buf_* functions here.
4847
4848         * ftp.c (ftp_expected_bytes): Moved from ftp-basic.c.
4849
4850         * ftp-basic.c (ftp_rest): Use prnum().
4851
4852         * ftp-basic.c: Ditto.
4853
4854         * ftp.c: Use the new reading functions and macros.
4855
4856         * retr.c (buf_initialize): New function.
4857         (buf_initialized_p): Ditto.
4858         (buf_uninitialize): Ditto.
4859         (buf_fd): Ditto.
4860
4861         * http.c (fetch_next_header): Use the BUF_READCHAR macro for
4862         efficiency.
4863         (gethttp): Use alloca() where appropriate.
4864
4865         * retr.c (buf_readchar): Use it.
4866         (buf_peek): Use rstreams.
4867
4868         * retr.h (BUF_READCHAR): New macro.
4869
4870         * init.c (home_dir): Rewritten for clarity.
4871         (init_path): Ditto.
4872
4873         * mswindows.c (ws_backgnd): Made static.
4874         (read_registry): Ditto.
4875         (ws_cleanup): Ditto.
4876         (ws_handler): Ditto.
4877
4878 1998-01-23  Hrvoje Niksic  <hniksic@srce.hr>
4879
4880         * alloca.c: New file.
4881
4882         * Makefile.in (ALLOCA): Define.
4883
4884         * mswindows.c (ws_help): Constify.
4885         (ws_help): Use alloca.
4886
4887         * mswindows.c: Reformat.
4888
4889         * all: Added _(...) annotations for I18N snarfing and translation.
4890
4891         * host.c (ftp_getaddress): Nuke SYSINFO.
4892         (ftp_getaddress): Don't use getdomainname().
4893         (ftp_getaddress): Use uname(), where available.
4894
4895         * http.c (gethttp): Protect a stray fprintf().
4896
4897         * init.c (settime): New function.
4898         (setval): Treat WAIT specially, allowing suffixes like `m' for
4899         minutes, etc.
4900
4901 1998-01-21  Hrvoje Niksic  <hniksic@srce.hr>
4902
4903         * url.c (get_urls_html): Use alloca() for TEMP.
4904
4905 1998-01-21  Jordan Mendelson  <jordy@wserv.com>
4906
4907         * url.c (rotate_backups): New function.
4908
4909         * http.c (gethttp): Ditto.
4910
4911         * ftp.c (getftp): Rotate backups.
4912
4913 1997-12-18  Hrvoje Niksic  <hniksic@srce.hr>
4914
4915         * all: Renamed nmalloc(), nrealloc() and nstrdup() to xmalloc(),
4916         xrealloc() and xstrdup().  Use the new functions.
4917
4918         * url.c (decode_string): Made static.
4919         (has_proto): Ditto.
4920         (parse_dir): Ditto.
4921         (parse_uname): Ditto.
4922         (mkstruct): Ditto.
4923         (construct): Ditto.
4924         (construct_relative): Ditto.
4925
4926         * retr.c (show_progress): Made static.
4927
4928         * recur.c (robots_url): Made static.
4929         (retrieve_robots): Ditto.
4930         (parse_robots): Ditto.
4931         (robots_match): Ditto.
4932
4933         * main.h: Removed.
4934
4935         * main.c (printhelp): Made static.
4936         (hangup): Ditto.
4937
4938         * init.c (comind): Made static.
4939         (defaults): Ditto.
4940         (init_path): Ditto.
4941         (run_wgetrc): Ditto.
4942         (onoff): Ditto.
4943         (setonoff): Ditto.
4944         (setnum): Ditto.
4945         (myatoi): Ditto.
4946         (getperms): Ditto.
4947         (setbytes): Ditto.
4948
4949         * http.c (fetch_next_header): Made static.
4950         (hparsestatline): Ditto.
4951         (hskip_lws): Ditto.
4952         (hgetlen): Ditto.
4953         (hgetrange): Ditto.
4954         (hgettype): Ditto.
4955         (hgetlocation): Ditto.
4956         (hgetmodified): Ditto.
4957         (haccepts_none): Ditto.
4958         (gethttp): Ditto.
4959         (base64_encode_line): Ditto.
4960         (mktime_from_utc): Ditto.
4961         (http_atotm): Ditto.
4962
4963         * html.c (idmatch): Made static.
4964
4965         * host.c (search_host): Made static.
4966         (search_address): Ditto.
4967         (free_hlist): Ditto.
4968
4969         * ftp.c (getftp): Made static.
4970         (ftp_loop_internal): Ditto.
4971         (ftp_get_listing): Ditto.
4972         (ftp_retrieve_list): Ditto.
4973         (ftp_retrieve_dirs): Ditto.
4974         (ftp_retrieve_glob): Ditto.
4975         (freefileinfo): Ditto.
4976         (delelement): Ditto.
4977
4978         * ftp-ls.c (symperms): Made static.
4979         (ftp_parse_unix_ls): Ditto.
4980
4981         * connect.c (select_fd): Made static.
4982
4983         * utils.c (xmalloc): Renamed from nmalloc.
4984         (xrealloc): Renamed from nrealloc.
4985         (xstrdup): Renamed from nstrdup.
4986
4987         * getopt.c (exchange): Use alloca.
4988
4989         * mswindows.c (mycuserid): Use strncpy.
4990
4991         * New files mswindows.c, mswindows.h, sysdep.h.  winjunk.c,
4992         systhings.h, windecl.h and winjunk.h removed.
4993
4994         * mswindows.c (sleep): New function.
4995
4996         * utils.c: Include <windows.h> under Windows.
4997
4998 1997-06-12  Darko Budor  <dbudor@zesoi.fer.hr>
4999
5000         * url.h (URL_UNSAFE): Change default under Windows.
5001
5002         * retr.c (retrieve_from_file): Respect opt.delete_after.
5003
5004         * main.c (main): Call ws_help on Windows.
5005
5006         * winjunk.c (windows_main_junk): New function.
5007
5008         * main.c (main): Junk-process argv[0].
5009
5010         * http.c (mktime_from_utc): Return -1 if mktime failed.
5011
5012         * http.c (http_loop): Ditto.
5013
5014         * ftp.c (ftp_loop_internal): Change title on Windows when using a
5015         new URL.
5016
5017         * winjunk.c (getdomainname): Lots of functions.
5018
5019 1997-06-12  Hrvoje Niksic  <hniksic@srce.hr>
5020
5021         * cmpt.c (strptime_internal): Handle years more correctly for
5022         `%y'.
5023
5024 1997-06-09  Mike Thomas <mthomas@reality.ctron.com>
5025
5026         * http.c (gethttp): Allocate enough space for
5027         `Proxy-Authorization' header.
5028
5029 1997-05-10  Hrvoje Niksic  <hniksic@srce.hr>
5030
5031         * version.c: Wget/1.4.5 is released.
5032
5033 1997-05-10  Hrvoje Niksic  <hniksic@srce.hr>
5034
5035         * retr.c (get_contents): Check return value of fwrite more
5036         carefully.
5037
5038 1997-03-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5039
5040         * cmpt.c (strptime_internal) [case 'Y']: Always subtract 1900 from
5041         year, regardless of century.
5042
5043 1997-03-30  Hrvoje Niksic  <hniksic@srce.hr>
5044
5045         * utils.c (isfile): Use `lstat' instead of `stat'.
5046
5047 1997-03-29  Hrvoje Niksic  <hniksic@srce.hr>
5048
5049         * utils.c (numdigit): Use explicit test.
5050
5051 1997-03-21  Hrvoje Niksic  <hniksic@srce.hr>
5052
5053         * http.c (http_loop): Always use `url_filename' to get u->local.
5054
5055 1997-03-20  Hrvoje Niksic  <hniksic@srce.hr>
5056
5057         * url.c: Recognize https.
5058
5059 1997-03-13  Hrvoje Niksic  <hniksic@srce.hr>
5060
5061         * recur.c (recursive_retrieve): Lowercase just the host name.
5062
5063 1997-03-09  Hrvoje Niksic  <hniksic@srce.hr>
5064
5065         * url.c (get_urls_file): Use the correct test.
5066         (get_urls_html): Ditto.
5067
5068 1997-03-07  Hrvoje Niksic  <hniksic@srce.hr>
5069
5070         * connect.c: Reverted addrlen to int.
5071
5072         * init.c (parse_line): Check for -1 instead of NONE.
5073
5074         * version.c: Changed version to 1.4.5.
5075
5076 1997-02-17  Hrvoje Niksic  <hniksic@srce.hr>
5077
5078         * init.c: New option netrc.
5079         (initialize): Don't parse .netrc.
5080
5081         * cmpt.c (recursive): Return rp.
5082         (strptime_internal): Match the long strings first, the abbreviated
5083         second.
5084
5085 1997-02-16  Hrvoje Niksic  <hniksic@srce.hr>
5086
5087         * http.c (check_end): New function.
5088         (http_atotm): Use it.
5089  
5090 1997-02-13  gilles Cedoc  <gilles@cedocar.fr>
5091
5092         * http.c (gethttp): Use them.
5093
5094         * init.c: New options proxy_user and proxy_passwd.
5095
5096 1997-02-14  Hrvoje Niksic  <hniksic@srce.hr>
5097
5098         * ftp.c (ftp_retrieve_list): Create links even if not relative.
5099
5100 1997-02-10  Hrvoje Niksic  <hniksic@srce.hr>
5101
5102         * recur.c (recursive_retrieve): Lowercase the host name, if the
5103         URL is not "optimized".
5104
5105         * host.c (realhost): Return l->hostname, even if it matches with
5106         host.
5107
5108 1997-02-10  Marin Purgar  <pmc@asgard.hr>
5109
5110         * connect.c: Make addrlen size_t instead of int.
5111         (conaddr): Ditto.
5112
5113 1997-02-09  Gregor Hoffleit  <flight@mathi.uni-heidelberg.DE>
5114
5115         * systhings.h: Define S_ISLNK on NeXT too.
5116
5117 1997-02-09  Hrvoje Niksic  <hniksic@srce.hr>
5118
5119         * version.c: Released 1.4.3.
5120
5121         * url.c: Futher update to list of protostrings.
5122         (skip_proto): Skip `//' correctly for FTP and HTTP.
5123
5124         * url.c (get_urls_html): Handle bogus `http:' things a little
5125         different.
5126
5127         * main.c (main): Removed `follow-ftp' from `f'.
5128         (main): Dumped the `prefix-files' and `file-prefix' options and
5129         features; old and bogus.
5130         (main): Exit on failed setval() in `-e'.
5131
5132         * http.c (fetch_next_header): Use it to detect header continuation
5133         correctly.
5134
5135         * retr.c (buf_peek): New function.
5136
5137 1997-02-08  Hrvoje Niksic  <hniksic@srce.hr>
5138
5139         * wget.h: Include time.h and stuff.
5140
5141 1997-02-08  Roger Beeman  <beeman@cisco.com>
5142
5143         * ftp.c: Include <time.h>
5144
5145 1997-02-07  Hrvoje Niksic  <hniksic@srce.hr>
5146
5147         * url.c (findurl): Would read over buffer limits.
5148
5149 1997-02-06  Hrvoje Niksic  <hniksic@srce.hr>
5150
5151         * ftp-ls.c (ftp_parse_unix_ls): Allow spaces in file names.
5152
5153 1997-02-05  Hrvoje Niksic  <hniksic@srce.hr>
5154
5155         * http.c (http_atotm): Initialize tm.is_dst.
5156
5157 1997-02-02  Hrvoje Niksic  <hniksic@srce.hr>
5158
5159         * http.c (gethttp): Don't print the number of retrieved headers.
5160
5161         * main.c (main): New option `--no-clobber', alias for `-nc'.
5162
5163         * url.c: Recognize `https://'.
5164
5165 1997-02-01  Hrvoje Niksic  <hniksic@srce.hr>
5166
5167         * host.c (herrmsg): Don't use h_errno.
5168
5169 1997-01-30  Hrvoje Niksic  <hniksic@srce.hr>
5170
5171         * host.c (accept_domain): Use it.
5172
5173         * main.c (main): New option `--exclude-domains'.
5174
5175         * retr.c (retrieve_url): Use it.
5176         (retrieve_url): Bail out when an URL is redirecting to itself.
5177
5178         * url.c (url_equal): New function.
5179
5180 1997-01-29  Hrvoje Niksic  <hniksic@srce.hr>
5181
5182         * connect.c: Include arpa/inet.h instead of arpa/nameser.h.
5183
5184         * http.c (mk_utc_time): New function.
5185         (http_atotm): Use it; handle time zones correctly.
5186
5187 1997-01-28  Hrvoje Niksic  <hniksic@srce.hr>
5188
5189         * http.c: Ditto.
5190
5191         * ftp-basic.c: Use it instead of WRITE.
5192
5193         * connect.c (iwrite): New function.
5194
5195 1997-01-27  Hrvoje Niksic  <hniksic@srce.hr>
5196
5197         * cmpt.c (mktime): New function.
5198
5199         * netrc.c: Include <sys/types.h>.
5200
5201         * main.c (main): Wouldn't recognize --spider.
5202
5203         * retr.c (rate): Use `B', `KB' and `MB'.
5204         (reset_timer,elapsed_time): Moved from utils.c.
5205
5206         * ftp.c (ftp_retrieve_list): Ditto.
5207
5208         * http.c (http_loop): Don't touch the file if opt.dfp.
5209
5210 1997-01-24  Hrvoje Niksic  <hniksic@srce.hr>
5211
5212         * cmpt.c: New file.
5213
5214         * ftp.c (ftp_retrieve_glob): New argument semantics.
5215         (ftp_retrieve_dirs): Use it.
5216         (ftp_loop): Ditto.
5217
5218         * html.c (htmlfindurl): Recognize `'' as the quote char.
5219
5220 1997-01-23  Hrvoje Niksic  <hniksic@srce.hr>
5221
5222         * ftp.c (ftp_loop_internal): Use it.
5223
5224         * utils.c (remove_link): New function.
5225
5226 1997-01-22  Hrvoje Niksic  <hniksic@srce.hr>
5227
5228         * retr.c (retrieve_url): Require STRICT redirection URL.
5229
5230         * url.c (parseurl): New argument STRICT.
5231
5232         * http.c (hparsestatline): Be a little-bit less strict about
5233         status line format.
5234
5235 1997-01-21  Hrvoje Niksic  <hniksic@srce.hr>
5236
5237         * http.c (gethttp): Use it.
5238
5239         * main.c (main): Don't use '<digit>' as options.
5240
5241         * init.c: New option ignore_length.
5242
5243         * http.c (gethttp): Ditto.
5244         (http_loop): Check for redirection without Location:.
5245         (gethttp): Don't print Length unless RETROKF.
5246
5247         * ftp.c (getftp): Use it.
5248
5249         * url.c (mkalldirs): New function.
5250
5251         * utils.c (mymkdir): Don't check for existing non-directory.
5252
5253         * url.c (mkstruct): Don't create the directory.
5254
5255 1997-01-20  Hrvoje Niksic  <hniksic@srce.hr>
5256
5257         * init.c (setval): Removed NO_RECURSION checks.
5258
5259 1997-01-19  Hrvoje Niksic  <hniksic@srce.hr>
5260
5261         * version.c: "Released" 1.4.3-pre2.
5262
5263         * recur.c (recursive_retrieve): Bypass host checking only if URL
5264         is ftp AND parent URL is not ftp.
5265
5266         * ftp-basic.c (ftp_request): Print out Turtle Power.
5267
5268         * ftp.c (ftp_loop): Call ftp_retrieve_glob with 0 if there's no
5269         wildcard.
5270         (ftp_retrieve_glob): Call ftp_loop_internal even on empty list, if
5271         not glob.
5272
5273         * http.c (gethttp): Be a little bit smarter about status codes.
5274
5275         * recur.c (recursive_retrieve): Always reset opt.recursive when
5276         dealing with FTP.
5277
5278 1997-01-18  Hrvoje Niksic  <hniksic@srce.hr>
5279
5280         * retr.c (retrieve_url): New variable location_changed; use it for
5281         tests instead of mynewloc.
5282         (retrieve_url): Allow heuristic adding of html.
5283
5284         * url.c (url_filename): Don't use the `%' in Windows file names.
5285
5286         * http.c (http_loop): Always time-stamp the local file.
5287
5288         * http.c (http_loop): Ditto.
5289
5290         * ftp.c (ftp_retrieve_list): Use it.
5291
5292         * utils.c (my_touch): New function.
5293
5294         * ftp.c (ftp_retrieve_list): Use #ifdef HAVE_STRUCT_UTIMBUF
5295         instead of #ifndef NeXT.
5296
5297         * utils.c (strptime): New version, by Ulrich Drepper.
5298
5299 1997-01-17  Hrvoje Niksic  <hniksic@srce.hr>
5300
5301         * http.c (haccepts_none): Renamed from `haccepts_bytes'.
5302         (gethttp): If haccepts_none(), disable ACCEPTRANGES.
5303         (http_loop): Would remove ACCEPTRANGES.
5304
5305         * ftp.c (getftp): Call ftp_list with NULL.
5306
5307 1997-01-15  Hrvoje Niksic  <hniksic@srce.hr>
5308
5309         * html.c (ftp_index): Don't print minutes and seconds if we don't
5310         know them; beautify the output.
5311
5312         * ftp.c (getftp): Don't close the socket on FTPNSFOD.
5313
5314 1997-01-14  Hrvoje Niksic  <hniksic@srce.hr>
5315
5316         * utils.c (strptime): New function.
5317         (strptime): Don't use get_alt_number.
5318         (strptime): Don't use locale.
5319         (match_string): Made it a function.
5320
5321 1997-01-12  Hrvoje Niksic  <hniksic@srce.hr>
5322
5323         * http.c (http_atotm): New function.
5324         (http_loop): Use it.
5325
5326         * atotm.c: Removed from the distribution.
5327
5328         * http.c (base64_encode_line): Rewrite.
5329
5330 1997-01-09  Hrvoje Niksic  <hniksic@srce.hr>
5331
5332         * ftp.c (getftp): Use ftp_expected_bytes; print size.
5333
5334         * ftp-basic.c (ftp_response): Use ftp_last_respline.
5335         (ftp_expected_bytes): New function.
5336
5337         * ftp.c (getftp): Print the unauthoritative file length.
5338
5339         * ftp-ls.c: Renamed from ftp-unix.c.
5340         (ftp_parse_ls): Moved from ftp.c.
5341         (ftp_parse_unix_ls): Recognize seconds in time spec.
5342         (ftp_parse_unix_ls): Recognize year-less dates of the previous
5343         year.
5344
5345 1997-01-08  Hrvoje Niksic  <hniksic@srce.hr>
5346
5347         * ftp-basic.c: Don't declare errno if #defined.
5348
5349         * host.c (ftp_getaddress): Check for sysinfo legally.
5350
5351 1997-01-08  Darko Budor  <dbudor@diana.zems.fer.hr>
5352
5353         * connect.c (iread): Use READ.
5354
5355 1996-12-23  Hrvoje Niksic  <hniksic@srce.hr>
5356
5357         * url.c: Recognize finger, rlogin, tn3270, mid and cid as valid
5358         schemes.
5359
5360 1996-12-22  Hrvoje Niksic  <hniksic@srce.hr>
5361
5362         * host.c (ftp_getaddress): Allow `.' in hostname.
5363
5364 1996-12-26  Darko Budor <dbudor@zems.fer.hr>
5365
5366         * wget.h: READ and WRITE macros for use instead of read and write
5367         on sockets, grep READ *.c, grep WRITE *.c
5368
5369         * wsstartup.c: new file - startup for winsock
5370
5371         * wsstartup.h: new file
5372
5373         * win32decl.h: new file - fixup for <errno.h> and winsock trouble
5374
5375         * configure.bat: Configure utility for MSVC
5376
5377         * src/Makefile.ms,config.h.ms: new files for use with MSVC 4.x
5378
5379 1996-12-22  Hrvoje Niksic  <hniksic@srce.hr>
5380
5381         * version.c: Released 1.4.3-pre.
5382
5383         * utils.c (prnum): Accept long.
5384         (legible): Use prnum().
5385
5386         * connect.c (make_connection): Accept port as short.
5387         (bindport): Ditto.
5388
5389         * http.c (gethttp): Use search_netrc.
5390
5391 1996-12-21  Hrvoje Niksic  <hniksic@srce.hr>
5392
5393         * ftp.c (getftp): Use search_netrc.
5394
5395         * netrc.c (free_netrc): New function.
5396
5397         * init.c (home_dir): New function.
5398
5399         * url.c (convert_links): Allow REL2ABS changes.
5400
5401 1996-12-21  Gordon Matzigkeit  <gord@gnu.ai.mit.edu>
5402
5403         * netrc.c: New file.
5404         (parse_netrc, maybe_add_to_list): New functions.
5405
5406 1996-12-17  Hrvoje Niksic  <hniksic@srce.hr>
5407
5408         * retr.c (retrieve_url): Reset opt.recursion before calling
5409         ftp_loop if it is reached through newloc.
5410
5411         * init.c (run_wgetrc): Print the wgetrc path too, when reporting
5412         error; don't use "Syntax error", since we don't know if it is
5413         really a syntax error.
5414
5415 1996-12-16  Hrvoje Niksic  <hniksic@srce.hr>
5416
5417         * utils.c (acceptable): Extract the filename part of the path.
5418
5419         * recur.c (recursive_retrieve): Call acceptable() with the right
5420         argument; would bug out on wildcards.
5421
5422         * init.c (parse_line): Likewise.
5423
5424         * html.c (htmlfindurl): Cast to char * when calling stuff.
5425
5426 1996-12-15  Hrvoje Niksic  <hniksic@srce.hr>
5427
5428         * ftp.c (getftp): Use ftp_pasv.
5429
5430         * ftp-basic.c (ftp_request): Accept NULL value.
5431         (ftp_pasv): New function.
5432
5433         * options.h (struct options): Add passive FTP option.
5434
5435 1996-12-15  Hrvoje Niksic  <hniksic@srce.hr>
5436
5437         * url.c (parseurl): Debug output.
5438
5439         * utils.c (path_simplify): New one, adapted from bash's
5440         canonicalize_pathname().
5441
5442 1996-12-14  Hrvoje Niksic  <hniksic@srce.hr>
5443
5444         * ftp.c (getftp): Don't discard the buffer.
5445
5446         * retr.c (get_contents): New parameter nobuf.
5447
5448 1996-12-13  Shawn McHorse  <riffraff@txdirect.net>
5449
5450         * html.c (htmlfindurl): Recognize <meta contents="d; URL=...".
5451
5452         * init.c (setval): Strip the trailing slashes on CVECDIR.
5453
5454 1996-12-13  Hrvoje Niksic  <hniksic@srce.hr>
5455
5456         * init.c: Make excludes and includes under CVECDIR instead of
5457         CVEC.
5458
5459 1996-12-13  Shawn McHorse  <riffraff@txdirect.net>
5460
5461         * url.c (get_urls_html): Skip "http:".
5462
5463 1996-12-13  Hrvoje Niksic  <hniksic@srce.hr>
5464
5465         * utils.c (strcasecmp): From glibc.
5466         (strncasecmp): Also.
5467         (strstr): Also.
5468
5469         * url.c: Added javascript: to the list of URLs prefixes.
5470
5471 1996-12-12  Shawn McHorse  <riffraff@txdirect.net>
5472
5473         * recur.c (retrieve_robots): Print the warning message only if
5474         verbose.
5475
5476 1996-12-12  Gregor Hoffleit  <flight@mathi.uni-heidelberg.DE>
5477
5478         * ftp.c (ftp_retrieve_list): Use NeXT old utime interface.
5479
5480 1996-12-12  Hrvoje Niksic  <hniksic@srce.hr>
5481
5482         * systhings.h: New file.
5483
5484         * ../configure.in: Check for utime.h
5485
5486         * ftp.c: Check whether we have unistd.h.
5487
5488 1996-11-27  Hrvoje Niksic  <hniksic@srce.hr>
5489
5490         * recur.c (recursive_retrieve): Send the canonical URL as referer.
5491         (recursive_retrieve): Call get_urls_html with the canonical URL.
5492
5493 1996-12-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5494
5495         * (configure.in, config.h.in, src/Makefile.in, src/*.[ch]): Add
5496         ansi2knr support for compilers which don't support ANSI style
5497         function prototypes and signatures.
5498
5499         * (aclocal.m4, src/ansi2knr.c, src/ansi2knr.1): New files.
5500
5501 1996-11-26  Hrvoje Niksic  <hniksic@srce.hr>
5502
5503         * url.c: Use it; Recognize paths ending with "." and ".." as
5504         directories.
5505         (url_filename): Append .n whenever file exists and could be a
5506         directory.
5507
5508         * url.h (ISDDOT): New macro.
5509
5510         * init.c (parse_line): Use unsigned char.
5511
5512         * url.c (get_urls_html): Cast to unsigned char * when calling
5513         htmlfindurl.
5514
5515         * html.c (htmlfindurl): Use unsigned char.
5516
5517         * version.c: Changed version to 1.4.3.
5518
5519 1996-11-25  Hrvoje Niksic  <hniksic@srce.hr>
5520
5521         * version.c: Released 1.4.2.
5522
5523         * ftp.c (getftp): Simplified assertion.
5524         (ftp_loop_internal): Remove symlink before downloading.
5525         (ftp_retrieve_list): Unlink the symlink name before attempting to
5526         create a symlink!
5527
5528         * options.h (struct options): Renamed print_server_response to
5529         server_response.
5530
5531         * ftp.c (rel_constr): Removed.
5532         (ftp_retrieve_list): Don't use it.
5533         (ftp_retrieve_list): Use opt.retr_symlinks.
5534
5535 1996-11-24  Hrvoje Niksic  <hniksic@srce.hr>
5536
5537         * main.c (main): New option retr_symlinks.
5538
5539         * url.c (convert_links): Print verbose message.
5540
5541 1996-11-24  Hrvoje Niksic  <hniksic@srce.hr>
5542
5543         * http.c (http_loop): Reset newloc in the beginning of function;
5544         would cause FMR in retrieve_url.
5545
5546 1996-11-23  Hrvoje Niksic  <hniksic@srce.hr>
5547
5548         * recur.c (convert_all_links): Find the URL of each HTML document,
5549         and feed it to get_urls_html; would bug out.
5550         (convert_all_links): Check for l2 instead of dl; removed dl.
5551
5552         * url.c (convert_links): Don't refer to freed newname.
5553
5554         * recur.c (recursive_retrieve): Add this_url to urls_downloaded.
5555
5556         * main.c (main): Print the OS_TYPE in the debug output, too.
5557
5558         * recur.c (recursive_retrieve): Check for opt.delete_after.
5559
5560         * main.c (main): New option delete-after.
5561
5562         * init.c (setval): Cleaned up.
5563
5564 1996-11-21  Hrvoje Niksic  <hniksic@srce.hr>
5565
5566         * Makefile.in (wget): Make `wget' the default target.
5567
5568         * ftp.c (ftp_loop_internal): Move noclobber checking out of the
5569         loop.
5570         (ftp_retrieve_list): Warn about non-matching sizes.
5571
5572         * http.c (http_loop): Made -nc non-dependent on opt.recursive.
5573
5574         * init.c (setnum): Renamed from setnuminf; New argument flags.
5575         (setval): Use it.
5576
5577         * main.c (main): Sorted the options.
5578         (main): New option --wait.
5579
5580 1996-11-21  Shawn McHorse  <riffraff@txdirect.net>
5581
5582         * html.c (htmlfindurl): Reset s->in_quote after getting out of
5583         quotes.
5584
5585 1996-11-20  Hrvoje Niksic  <hniksic@srce.hr>
5586
5587         * version.c: Changed version to 1.4.2.
5588
5589 1996-11-20  Hrvoje Niksic  <hniksic@srce.hr>
5590
5591         * version.c: Released 1.4.1.
5592
5593         * html.c (html_quote_string): New function.
5594         (ftp_index): Use it.
5595         (htmlfindurl): A more gentle ending debug message.
5596
5597         * ftp.c (ftp_loop): Check for opt.htmlify.
5598
5599         * init.c: New command htmlify.
5600
5601         * ftp.c (getftp): Nicer error messages, with `'-encapsulated
5602         strings.
5603         (ftp_loop): Print size of index.html.
5604
5605         * init.c (setval): Implement "styles".
5606
5607         * main.c (main): New option dotstyle.
5608
5609 1996-11-19  Hrvoje Niksic  <hniksic@srce.hr>
5610
5611         * ftp.c (getftp): Close the master socket in case of errors, after
5612         bindport().
5613
5614         * connect.c (bindport): Initialize msock to -1.
5615
5616         * ftp.c (getftp): Initialize dtsock to -1.
5617
5618         * connect.c (closeport): Don't close sock if sock == -1.
5619
5620 1996-11-18  Hrvoje Niksic  <hniksic@srce.hr>
5621
5622         * init.c (setnuminf): Nuked default value -- just leave unchanged.
5623         (setval): Don't send default values.
5624         (defaults): Use DEFAULT_TIMEOUT -- aaargh.
5625
5626         * options.h (struct options): Use long for dot_bytes.
5627
5628         * init.c (setquota): Renamed to setbytes.
5629         (setval): Use setbytes on DOTBYTES.
5630
5631 1996-11-17  Hrvoje Niksic  <hniksic@srce.hr>
5632
5633         * ftp.c (getftp): Initialize con->dltime.
5634
5635         * recur.c (recursive_retrieve): Use same_host instead of
5636         try_robots; simply load robots_txt whenever the host is changed.
5637         (recursive_retrieve): Free forbidden before calling parse_robots.
5638
5639 1996-11-16  Hrvoje Niksic  <hniksic@srce.hr>
5640
5641         * retr.c (show_progress): Use them.
5642
5643         * options.h (struct options): New options dot_bytes, dots_on_line
5644         and dot_spacing.
5645
5646 1996-11-16  Mark Boyns  <boyns@sdsu.edu>
5647
5648         * recur.c (recursive_retrieve): Retrieve directories regardless of
5649         acc/rej rules; check for empty u->file.
5650
5651 1996-11-14  Hrvoje Niksic  <hniksic@srce.hr>
5652
5653         * init.c (setval): Use it.
5654
5655         * utils.c (merge_vecs): New function.
5656
5657         * init.c (setval): Reset the list-type functions when encountering
5658         "".
5659
5660 1996-11-14  Shawn McHorse  <riffraff@txdirect.net>
5661
5662         * recur.c (recursive_retrieve): Use base_url instead of this_url
5663         for no_parent.
5664
5665 1996-11-14  Shawn McHorse  <riffraff@txdirect.net>
5666
5667         * html.c (htmlfindurl): Reset s->in_quote after exiting the quote.
5668
5669 1996-11-13  Hrvoje Niksic  <hniksic@srce.hr>
5670
5671         * utils.c (sepstring): Rewrote; don't use strtok.
5672
5673         * recur.c (recursive_retrieve): Enter assorted this_url to slist
5674         when running the first time.
5675         (retrieve_robots): Warn to ignore errors when robots are loaded.
5676
5677         * utils.c (load_file): Moved from url.c.
5678
5679         * http.c: Made static variables const too in h* functions.
5680
5681         * main.c (main): Renamed --continue-ftp to --continue.
5682
5683         * recur.c (recursive_retrieve): Use it.
5684
5685         * utils.c (frontcmp): New function.
5686
5687         * url.c (accdir): New function.
5688
5689         * html.c (htmlfindurl): Recognize <area href=...>.
5690
5691         * ftp.c (ftp_retrieve_dirs): Implemented opt.includes.
5692
5693         * init.c (setval): Free the existing opt.excludes and
5694         opt.includes, if available.
5695
5696         * main.c (main): New option -I.
5697
5698 1996-11-12  Hrvoje Niksic  <hniksic@srce.hr>
5699
5700         * ftp.c (ftp_retrieve_glob): Do not weed out directories.
5701
5702         * version.c: Changed version to 1.4.1.
5703
5704 1996-11-11  Hrvoje Niksic  <hniksic@srce.hr>
5705
5706         * version.c: Released 1.4.0.
5707
5708 1996-11-10  Hrvoje Niksic  <hniksic@srce.hr>
5709
5710         * main.c (main): Free com and val after parse_line.
5711         (printhelp): Reorder the listing.
5712
5713         * http.c: More robust header parsing.
5714
5715         * http.c: Allow any number of spaces, or no spaces, precede ':'.
5716         (hskip_lws): New function.
5717         (haccepts_bytes): New function.
5718         (gethttp): Use it.
5719
5720         * init.c (setval): Check header sanity.
5721         (setval): Allow resetting of headers.
5722
5723 1996-11-10  Hrvoje Niksic  <hniksic@srce.hr>
5724
5725         * http.c (http_loop): Don't use has_wildcards.
5726
5727         * http.c (gethttp): Free all_headers -- would leak.
5728
5729         * recur.c (recursive_retrieve): Initialize depth to 1 instead of
5730         0 -- this fixes a long-standing bug in -rl.
5731
5732 1996-11-09  Hrvoje Niksic  <hniksic@srce.hr>
5733
5734         * ftp.c: Use -1 as "impossible" value for con->fd.
5735
5736         * url.h (URL_SEPARATOR): Don't treat `*' and `+' as separators.
5737
5738         * init.c (parse_line): Use isalpha.
5739
5740         * ftp-unix.c: Use HAVE_UNISTD_H.
5741
5742         * mtch.c (has_wildcards): Don't match \.
5743
5744         * http.c (http_loop): Warn on HTTP wildcard usage.
5745
5746 1996-11-08  Hrvoje Niksic  <hniksic@srce.hr>
5747
5748         * url.c (url_filename): Do not create numbered suffixes if
5749         opt.noclobber -- would bug out on -nc.
5750
5751 1996-11-07  Hrvoje Niksic  <hniksic@srce.hr>
5752
5753         * recur.c (parse_robots): Don't chuck out the commands without
5754         arguments (`Disallow:<empty>' didn't work).
5755         (parse_robots): Compare versions lowercase.
5756         (parse_robots): Match on base_version, not version_string!
5757         (parse_robots): Handle comments properly.
5758         (parse_robots): Match versions in a sane way.
5759
5760         * init.c: Print nicer error messages.
5761
5762         * version.c: Changed version to 1.4.0.
5763
5764 1996-11-06  Hrvoje Niksic  <hniksic@srce.hr>
5765
5766         * version.c: Released 1.4.0-test2.
5767
5768         * init.c (run_wgetrc): Close fp.
5769
5770         * ftp.c (ftp_retrieve_dirs): Allocate the correct length for
5771         u->dir.
5772
5773 1996-11-06  Hrvoje Niksic  <hniksic@srce.hr>
5774
5775         * init.c (setquota): Allow inf as quota specification.
5776
5777 1996-11-05  Hrvoje Niksic  <hniksic@srce.hr>
5778
5779         * ftp.c (ftp_retrieve_dirs): Return QUOTEXC if quota exceeded.
5780         (ftp_retrieve_glob): Return QUOTEXC on quota exceeded.
5781
5782         * main.c (main): Check for quota by comparison with downloaded
5783         stuff, not from status.
5784
5785         * connect.c (select_fd): Should compile on HPUX without warnings now.
5786
5787         * ftp.c (ftp_get_listing): Check whether ftp_loop_internal
5788         returned RETROK.
5789
5790 1996-11-04  Hrvoje Niksic  <hniksic@srce.hr>
5791
5792         * ftp.c (ftp_retrieve_glob): Print the pattern nicely.
5793         (getftp): Return FTPRETRINT on control connection error.
5794
5795         * html.c (htmlfindurl): Recognize <embed src=...> and
5796         <bgsound src=...>.
5797         (ftp_index): Handle username and password correctly.
5798
5799         * main.c (main): Made `-np' a synonim for --no-parent.
5800
5801 1996-11-02  Hrvoje Niksic  <hniksic@srce.hr>
5802
5803         * ftp.c (ftp_loop): Check for opt.ftp_glob too before calling
5804         ftp_retrieve_glob.
5805
5806         * version.c: Changed version to 1.4.0-test2.
5807
5808 1996-11-02  Hrvoje Niksic  <hniksic@srce.hr>
5809
5810         * version.c: Released 1.4.0-test1.
5811
5812         * url.c (str_url): Don't use sprintf when creating %2F-prefixed
5813         directory.
5814         (convert_links): Removed definition of make_backup.
5815
5816         * http.h: Removed definition of MAX_ERROR_LENGTH.
5817
5818         * host.c (ftp_getaddress): Check for "(none)" domains.
5819
5820         * ftp.c (ftp_retrieve_dirs): Docfix.
5821
5822         * http.c (gethttp): Use ou->referer instead of u->referer.
5823
5824         * retr.c (retrieve_url): Reset u to avoid freeing pointers twice;
5825         this was known to cause coredumps on Linux.
5826
5827         * html.c (ftp_index): Cast the argument to local_time to time_t *.
5828
5829 1996-11-01  Hrvoje Niksic  <hniksic@srce.hr>
5830
5831         * connect.c (select_fd): Use exceptfds -- once and for all.
5832
5833         * retr.c (retrieve_from_file): Free filename after
5834         recursive_retrieve.
5835         (retrieve_from_file): Send RFIRST_TIME to recursive_retrieve on
5836         first-time retrieval.
5837         (retrieve_from_file): Return uerr_t; new argument, count.
5838         (retrieve_from_file): Break on QUOTEXC.
5839
5840         * init.c (setquota): Fixed a bug that caused rejection of
5841         non-postfixed values..
5842
5843 1996-10-30  Hrvoje Niksic  <hniksic@srce.hr>
5844
5845         * version.c: Changed name to wget.
5846
5847         * connect.c (iread): Smarter use of select.
5848         (select_fd): Set errno on timeout.  If not timeout, return 1
5849         instead of 0.
5850
5851 1996-10-29  Hrvoje Niksic  <hniksic@srce.hr>
5852
5853         * ftp.c (ftp_loop_internal): Don't use con->cmd before
5854         establishing it.
5855
5856 1996-10-26  Hrvoje Niksic  <hniksic@srce.hr>
5857
5858         * http.c (gethttp): Send correct referer when using proxy.
5859         (gethttp): Use struct urlinfo ou to access the relevant data; send
5860         correct authorization in all cases.
5861
5862         * host.c (same_host): Use skip_uname to skip username and
5863         password.
5864
5865         * url.c (skip_uname): New function.
5866         (parseurl): Use it.
5867
5868         * host.c (same_host): Do not assume HTTP -- same_host should now
5869         be totally foolproof.
5870
5871         * url.c (skip_proto): New function.
5872         (parse_uname): Use it.
5873
5874         * http.c (gethttp): Create local user and passwd from what is
5875         given.
5876
5877         * url.c (parseurl): Check for HTTP username and password too.
5878
5879 1996-10-25  Hrvoje Niksic  <hniksic@srce.hr>
5880
5881         * config.h.in: Removed #define gethostbyname R...
5882
5883 1996-10-22  Hrvoje Niksic  <hniksic@srce.hr>
5884
5885         * version.c: Changed version to 1.4.0-test1.
5886
5887 1996-10-21  Hrvoje Niksic  <hniksic@srce.hr>
5888
5889         * version.c: "Released" 1.4b29.
5890
5891         * recur.c (recursive_retrieve): Check for no_parent.
5892
5893         * init.c (setval): Option update.
5894
5895         * main.c (main): New option no-parent.
5896
5897         * options.h (struct options): New variable no_parent.
5898
5899         * recur.c (recursive_retrieve): Only files are checked for
5900         opt.accepts and opt.rejects.
5901         (recursive_retrieve): Check directories for opt.excludes.
5902         (recursive_retrieve): Make the dir absolute when checking
5903         opt.excludes.
5904
5905         * html.c (htmlfindurl): Recognize <applet code=...> and <script
5906         src=...>
5907
5908 1996-10-18  Hrvoje Niksic  <hniksic@srce.hr>
5909
5910         * ftp.c (getftp): Do not line-break assert entries at all.
5911         (ftp_retrieve_dirs): docfix.
5912
5913         * connect.c (select_fd): Use fd + 1 as nfds.
5914
5915         * version.c: Changed version to 1.4b29.
5916
5917 1996-10-18  Hrvoje Niksic  <hniksic@srce.hr>
5918
5919         * version.c: "Released" 1.4b28.
5920
5921         * ftp.c (ftp_loop_internal): Check whether f->size == len and
5922         don't continue the loop if it is.
5923         (ftp_get_listing): Remove list_filename on unsuccesful loop.
5924
5925 1996-10-17  Hrvoje Niksic  <hniksic@srce.hr>
5926
5927         * ftp.c (ftp_loop_internal): Use strcpy to initialize tmp.
5928         (getftp): Do not use multiline assert.
5929
5930         * http.c (hparsestatline): Use mjr and mnr instead of major and
5931         minor, which don't compile on Ultrix.
5932         (http_loop): Use strcpy() to initialize tmp.
5933
5934         * all: Geturl -> Fetch
5935
5936 1996-10-17  Hrvoje Niksic  <hniksic@srce.hr>
5937
5938         * recur.c (parse_robots): Fixed an off-by-one bug when looking for
5939         ':'.
5940
5941         * html.c (htmlfindurl): Fixed several possible off-by-one bugs by
5942         moving `bufsize &&' to the beginning of each check in for-loops.
5943
5944         * recur.c (parse_robots): Close fp on exit.
5945
5946         * url.c (mymkdir): Check for each directory before creating.
5947
5948 1996-10-16  Hrvoje Niksic  <hniksic@srce.hr>
5949
5950         * version.c: Changed version to 1.4b28.
5951
5952 1996-10-16  Hrvoje Niksic  <hniksic@srce.hr>
5953
5954         * version.c: "Released" 1.4b27.
5955
5956         * init.c (parse_line): Use isspace.
5957         (parse_line): Free *com on all errors.
5958
5959         * ftp.c (ftp_loop): Change FTPOK to RETROK before exiting.
5960         (delelement): Use next instead of f->next and prev instead of
5961         f->prev.
5962         (delelement): Free the members of the deleted element.
5963
5964         * http.c (http_loop): Do not return RETROK on code != 20x.
5965
5966         * init.c (cleanup): Free opt.user_header.
5967         (cleanup): Free opt.domains.
5968
5969         * url.c (freelists): Moved to cleanup().
5970
5971         * http.c (hparsestatline): Docfix.
5972
5973         * main.c (main): Return with error status on unsuccesful
5974         retrieval.
5975
5976         * init.c (setval): Do not remove listing when mirroring.
5977
5978         * url.c (url_filename): Use opt.fileprefix.
5979
5980         * ftp.c (ftp_get_listing): Use url_filename to get filename for
5981         .listing.
5982
5983         * main.c (main): New option: -rn.
5984
5985 1996-10-15  Hrvoje Niksic  <hniksic@srce.hr>
5986
5987         * Makefile.in (RM): Added RM = rm -f.
5988
5989         * host.c (clean_hosts): New function.
5990         (free_hlist): Just free the list, no reset.
5991
5992         * version.c: Changed version to 1.4b27.
5993
5994 1996-10-13  Hrvoje Niksic  <hniksic@srce.hr>
5995
5996         * version.c: "Released" 1.4b26.
5997
5998         * retr.c (retrieve_from_file): If call get_urls_html with
5999         opt.spider to make it silent in spider mode.
6000
6001         * url.c (str_url): Use CLEANDUP instead of URL_CLEANSE.
6002
6003         * url.h (CLEANDUP): New macro.
6004
6005         * http.c (gethttp): Fixed a bug that freed location only when it
6006         was NULL.
6007
6008         * retr.c (retrieve_url): Free url if it will not be stored,
6009         i.e. newloc is NULL.
6010
6011         * html.c (htmlfindurl): Handle exiting from quotes correctly; the
6012         old version would bug out on <a href="x#a"href="y">.
6013
6014         * html.h (state_t): New member in_quote.
6015
6016         * html.c (htmlfindurl): Free s->attr at the beginning of
6017         attr-loop.
6018
6019         * recur.c (recursive_retrieve): Recognize RCLEANUP.
6020         (tried_robots): Make hosts a global variable.
6021         (recursive_retrieve): Free constr after URL host optimization.
6022         (tried_robots): Free urlinfo before exiting.
6023
6024         * utils.c (free_slist): New function.
6025
6026         * recur.c (recursive_retrieve): Use flags to add cleanup
6027         possibility.
6028
6029         * main.c (main): Free filename after recursive_retrieve.
6030
6031         * http.c (gethttp): Store successful responses too.
6032
6033 1996-10-12  Hrvoje Niksic  <hniksic@srce.hr>
6034
6035         * all: Constified the whole source.  This required some minor
6036         changes in many functions in url.c, possibly introducing bugs -- I
6037         hope not.
6038
6039         * ftp-basic.c: Removed last_respline.
6040
6041         * http.c (gethttp): Free type.
6042
6043         * host.c (same_host): Free real1 and real2.
6044
6045         * main.c (main): New option --spider.
6046
6047         * retr.c (get_contents): Don't reset errno.
6048
6049         * main.c (main): Sorted the options.
6050
6051         * connect.c (iread): Set errno to ETIMEDOUT only if it was left
6052         uninitialized by select().
6053
6054         * http.c (http_loop): Print the time when the connection is
6055         closed.
6056         (gethttp): Debug-print the HTTP request.
6057
6058 1996-10-11  Hrvoje Niksic  <hniksic@srce.hr>
6059
6060         * connect.c (iread): Do not try reading after timeout.
6061
6062         * main.c (main): Would bug out on -T.
6063
6064         * connect.c (select_fd): Do not use exceptfds.
6065         (iread): Set ETIMEDOUT on select_fd <= 0.
6066
6067         * version.c: Changed version to 1.4b26.
6068
6069 1996-10-10  Hrvoje Niksic  <hniksic@srce.hr>
6070
6071         * version.c: "Released" 1.4b25.
6072
6073         * ftp-unix.c (ftp_parse_unix_ls): Ignore lines without file name
6074         or link name.
6075
6076         * http.c (gethttp): Add errcode to struct hstat.
6077         (http_loop): Use it.
6078
6079         * url.c (no_proxy_match): Simplify using char** for no_proxy.
6080
6081         * options.h (struct options): Make opt.no_proxy a vector.
6082
6083         * utils.c (sepstring): Use !*s instead of !strlen(s).
6084
6085         * init.c (setval): Set opt.maxreclevel to 0 on --mirror.
6086         (getperms): Use ISODIGIT instead of isdigit.
6087
6088         * ftp.c (getftp): Print time.
6089
6090         * main.c (main): Use legible output of downloaded quantity.
6091
6092         * ftp.c (getftp): Use elapsed_time().
6093         (ftp_loop_internal): Use rate().
6094
6095         * http.c (http_loop): Add download ratio output; Use rate().
6096
6097         * utils.c (rate): New function.
6098
6099 1996-10-09  Hrvoje Niksic  <hniksic@srce.hr>
6100
6101         * http.c (http_loop): Use timer.
6102
6103         * ftp.c: Split to ftp-basic.c and ftp.c
6104
6105         * utils.c (reset_timer): New function.
6106         (elapsed_time): New function.
6107
6108         * retr.c (show_progress): Make bytes_in_line and offs long; should
6109         work on 16-bit machines.
6110
6111 1996-10-08  Hrvoje Niksic  <hniksic@srce.hr>
6112
6113         * url.c (in_acclist): New argument backward.
6114
6115         * ftp.c (ftp_retrieve_glob): Use acceptable() to determine whether
6116         a file should be retrieved according to suffix.
6117         (ftp_get_listing): Check the return value of unlink; Do not call
6118         ftp_retrieve_dirs if depth reached maxreclevel.
6119         (ftp_retrieve_dirs): Check whether the directory is in
6120         exclude-list.
6121
6122         * main.c (main): Print the version number at the beginning of
6123         DEBUG output.
6124         (main): Use strrchr when creating exec_name.
6125
6126         * ftp.c (ftp_retrieve_glob): Do not close control connection.
6127
6128         * version.c: Changed version to 1.4b25.
6129
6130 1996-10-07  Hrvoje Niksic  <hniksic@srce.hr>
6131
6132         * version.c: "Released" 1.4b24.
6133
6134         * Makefile.in: Rewrite.
6135
6136         * ftp.c (ftp_loop_internal): Likewise.
6137
6138         * retr.c (time_str): Check for failed time().
6139
6140         * html.c (htmlfindurl): Recognize <fig src> and <overlay src> from
6141         HTML3.0.
6142
6143         * retr.c (time_str): Return time_t *.
6144
6145         * connect.c (bindport): Close msock on unsuccesful bind.
6146         (bindport): The same for getsockname and listen.
6147
6148         * retr.c (retrieve_url): Allow any number of retries on
6149         proxy.
6150
6151         * http.c (gethttp): Do not treat errno == 0 as timeout.
6152         (http_loop): Likewise.
6153         (http_loop): Cosmetic changes.
6154
6155         * connect.c (iread): Set errno to ETIMEDOUT in case of timeout.
6156
6157         * retr.c (get_contents): Reset errno.
6158
6159         * ftp.c (getftp): Minor fixes.
6160
6161 1996-10-06  Hrvoje Niksic  <hniksic@srce.hr>
6162
6163         * http.c: Do not use backups.
6164
6165         * geturl.1 (WARNING): Warn that man-page could be obsolete.
6166
6167         * getopt.c (getopt_long): Moved to getopt.c
6168
6169         * geturl.texi: Enhanced.
6170
6171         * main.c (main): Use it.
6172
6173         * recur.c (convert_all_links): New function.
6174
6175         * utils.c (add_slist): New argument flags.
6176
6177         * recur.c (recursive_retrieve): Update a list of downloaded URLs.
6178         (parse_robots): Do not chuck out empty value fields.
6179         (parse_robots): Make yourself welcome on empty Disallow.
6180
6181         * version.c: Changed version to 1.4b24.
6182
6183 1996-10-06  Hrvoje Niksic  <hniksic@srce.hr>
6184
6185         * version.c: "Released" 1.4b23.
6186
6187         * ftp.c (ftp_loop_internal): Get the time after getftp.
6188
6189         * Makefile.in (install.info): New target.
6190         (install): Use it.
6191
6192         * http.c (http_loop): Fix output when doing -O.
6193
6194 1996-10-05  Hrvoje Niksic  <hniksic@srce.hr>
6195
6196         * geturl.texi: New file.
6197
6198         * main.c (main): Do not print the warnings and download summary if
6199         opt.quiet is set.
6200
6201         * version.c: Changed version to 1.4b23.
6202
6203 1996-10-05  Hrvoje Niksic  <hniksic@srce.hr>
6204
6205         * "Released" 1.4b22.
6206
6207         * atotm.c (atotm): Use True and False instead of TRUE and FALSE,
6208         to avoid redefinition warnings.
6209
6210         * host.c (store_hostaddress): Use memcpy() to copy the address
6211         returned by inet_addr.
6212
6213         * version.c: Changed version to 1.4b22.
6214
6215 1996-10-04  Hrvoje Niksic  <hniksic@srce.hr>
6216
6217         * version.c: "Released" 1.4b21.
6218
6219         * ftp-unix.c (ftp_parse_ls): Renamed to ftp_parse_unix_ls.
6220
6221         * ftp.c (ftp_port): Use conaddr.
6222         (getftp): Print the file length.
6223         (ftp_retrieve_list): Check the stamps of plain files only.
6224
6225         * connect.c (closeport): Do not call shutdown().
6226         (conaddr): New function.
6227
6228         * html.c (ftp_index): Made it dfp-aware.
6229
6230         * init.c (cleanup): New name of freemem. Close opt.dfp.
6231
6232         * ftp.c (getftp): Use opt.dfp if it is set.
6233
6234         * ftp-unix.c (ftp_parse_ls): Recognize time in h:mm format.
6235
6236         * ftp.c (ftp_retrieve_dirs): Fixed a bug that caused incorrect
6237         CWDs to be sent with recursive FTP retrievals.
6238
6239 1996-10-03  Hrvoje Niksic  <hniksic@srce.hr>
6240
6241         * recur.c (parse_robots): Made it more compliant with "official"
6242         specifications.
6243
6244         * http.c: New function.
6245
6246         * ftp-unix.c (ftp_parse_ls): Added better debug output.
6247
6248         * ftp.c (getftp): Print out the LIST in case of
6249         opt.print_server_response.
6250
6251         * version.c: Changed version to 1.4b21.
6252
6253 1996-10-01  Hrvoje Niksic  <hniksic@srce.hr>
6254
6255         * version.c: "Released" 1.4b20.
6256
6257         * README: Update.
6258
6259         * http.c (gethttp): Preset lengths of various headers instead of
6260         calculating them dynamically.
6261         (gethttp): Check for 206 partial contents.
6262
6263 1996-09-30  Hrvoje Niksic  <hniksic@srce.hr>
6264
6265         * configure.in: Set SYSTEM_GETURLRC to $libdir/geturlrc
6266
6267         * http.c (gethttp): Send the port number in the Host: header.
6268
6269 1996-09-29  Hrvoje Niksic  <hniksic@srce.hr>
6270
6271         * http.c (gethttp): Send host: header.
6272         (gethttp): Add the possibility of user-defined headers.
6273         (gethttp): Move decision about pragma: no-cache to http_loop,
6274         where it belongs.
6275         (gethttp): Pass a struct instead of enormous argument list.
6276         (http_loop): Use a new, fancier display format.
6277         (ftp_loop): Likewise.
6278
6279         * main.c: (hangup): Turn off buffering of the new log file.
6280
6281         * install-sh: Likewise.
6282
6283         * config.sub: Replace with the one in autoconf-2.10
6284
6285         * geturl.1: Update.
6286
6287         * init.c: New options httpuser and httppasswd.
6288
6289         * http.c: (base64_encode_line): New function.
6290         (gethttp): Send authentication.
6291
6292         * connect.c (make_connection): Use store_hostaddress.
6293
6294 1996-09-28  Hrvoje Niksic  <hniksic@srce.hr>
6295
6296         * host.c (store_hostaddress): New function.
6297
6298         * NEWS: Update.
6299
6300         * http.c (hgetrange): New function.
6301         (gethttp): Use ranges.
6302
6303         * utils.c (numdigit): Accept long instead of int.
6304
6305         * http.c (http_loop): Add restart capabilities.
6306
6307         * ftp.c (ftp_retrieve_glob): Fixed a bug that could cause matchres
6308         being used uninitialized.
6309         (ftp_retrieve_list): Similar fix.
6310
6311         * host.c (add_hlist): Fixed a bug that could cause cmp being used
6312         uninitialized.
6313
6314         * url.c (construct_relative): New function.
6315
6316         * recur.c (recursive_retrieve): Use it.
6317
6318         * retr.c (convert_links): New function.
6319
6320 1996-09-27  Hrvoje Niksic  <hniksic@srce.hr>
6321
6322         * url.c (free_urlpos): New function.
6323
6324         * recur.c (recursive_retrieve): Adapt.
6325
6326         * url.c (get_urls_html): Return a linked list instead of a vector.
6327
6328         * url.c (get_urls_file): Return a linked list instead of a vector.
6329
6330         * geturl.1: Update.
6331
6332         * http.c (gethttp): Implement it.
6333
6334         * init.c (setval): New option: SAVEHEADERS
6335
6336         * ftp.c (ftp_loop_internal): Do not set restval if listing is to
6337         be retrieved. Lack of this test caused bugs when the connection
6338         was lost during listing.
6339
6340         * retr.c (retrieve_url): Fixed a bug that caused
6341         coredumps. *newloc is now reset by default.
6342         (retrieve_url): Lift the twenty-tries limit on proxies.
6343
6344         * version.c: Changed version to 1.4b20.
6345
6346 1996-09-20  Hrvoje Niksic  <hniksic@srce.hr>
6347
6348         * version.c: "Released" 1.4b19.
6349
6350 1996-09-19  Hrvoje Niksic  <hniksic@srce.hr>
6351
6352         * ftp.c (ftp_loop_internal): Renamed from ftp_1fl_loop.
6353         (getftp): Changed prototype to accept ccon *.
6354
6355 1996-09-17  Hrvoje Niksic  <hniksic@srce.hr>
6356
6357         * ftp.c (ftp_retrieve_list): Fixed a bug that caused setting
6358         incorrect values to files pointed to by symbolic links.
6359         (ftp_1fl_loop): Do not count listings among the downloaded URL-s.
6360
6361 1996-09-16  Hrvoje Niksic  <hniksic@srce.hr>
6362
6363         * url.c (mkstruct): Do not prepend "./" in front of a pathname.
6364
6365         * main.c (main): New option: --user-agent.
6366
6367         * geturl.1: Ditto.
6368
6369         * init.h: Ditto.
6370
6371         * init.c (setval): Ditto.
6372
6373         * main.c (main): Rename "server-headers" to "server-response".
6374
6375         * ftp-unix.c (ftp_parse_ls): Check for asterisks at the end of
6376         executables in 'ls -F' listings.
6377
6378 1996-09-15  Hrvoje Niksic  <hniksic@srce.hr>
6379
6380         * url.c (parseurl): Remove realloc() and sprintf().
6381         (str_url): Get rid of sprintf().
6382
6383         * recur.c (recursive_retrieve): Enable FTP recursion through proxy
6384         servers.
6385
6386         * url.h (URL_CLEANSE): Made it else-resistant.
6387         (USE_PROXY): New macro.
6388
6389 1996-09-14  Hrvoje Niksic  <hniksic@srce.hr>
6390
6391         * NEWS: Update.
6392
6393         * version.c: Changed version to 1.4b19.
6394
6395 1996-09-14  Hrvoje Niksic  <hniksic@srce.hr>
6396
6397         * version.c: "Released" 1.4b18.
6398
6399         * url.c: Made it reallocate space exponentially.
6400
6401 1996-09-14  Drazen Kacar  <dave@fly.cc.fer.hr>
6402
6403         * html.c (htmlfindurl): Added <frame src> and <iframe src> among
6404         the list of stuff to fetch.
6405
6406 1996-09-13  Hrvoje Niksic  <hniksic@srce.hr>
6407
6408         * url.c (get_urls_html): Fixed a bug that caused SIGSEGV's with
6409         -Fi.
6410
6411         * html.c (htmlfindurl): Rewrite.
6412
6413         * http.c (gethttp): Use opt.proxy_cache.
6414
6415         * main.c (main): Added --cache option.
6416
6417         * ftp.c (ftp_response): Print server response if opt.print_server
6418         response is set.
6419         (getftp): Print newlines after each request if the server response
6420         is to be printed.
6421         (ftp_response): Copy the last response line to last_respline.
6422
6423         * http.c (gethttp): Add Pragma: nocache for retried
6424         proxy-retrievals.
6425
6426         * ftp.c (getftp): Use it.
6427
6428         * retr.c (buf_discard): New function.
6429
6430         * ftp.c (ftp_response): Use buf_readchar().
6431         (getftp): Flush the control connection buffer before calling
6432         get_contents().
6433
6434         * retr.c (buf_readchar): New function.
6435         (buf_flush): New function.
6436         (get_contents): Use buf_readchar() instead of read(x, x, 1).
6437         (get_contents): Use buf_flush.
6438
6439 1996-09-12  Hrvoje Niksic  <hniksic@srce.hr>
6440
6441         * ftp.c: Incorporate changes to ftp_response.
6442
6443         * ftp.c (ftp_response): Allocate the server response dynamically,
6444         as in read_whole_line and fetch_next_header.
6445
6446         * utils.c (read_whole_line): Fixed a bug that prevented reading
6447         the last line if it is not \n-terminated. Also fixed a possible
6448         memory overflow.
6449
6450         * http.c (fetch_next_header): Return malloc-ed string as large as
6451         needed.
6452         (gethttp): Use new fetch_next_header.
6453
6454 1996-09-12  Hrvoje Niksic  <hniksic@srce.hr>
6455
6456         * http.c (hgetlen): Compute the header length the first time only.
6457         (hgettype): Ditto.
6458         (hgetlocation): Ditto.
6459         (hgetmodified): Ditto.
6460
6461 1996-09-11  Hrvoje Niksic  <hniksic@srce.hr>
6462
6463         * sample.geturlrc: Update.
6464
6465 1996-09-10  Hrvoje Niksic  <hniksic@srce.hr>
6466
6467         * http.c (http_loop): Ditto.
6468
6469         * ftp.c (getftp): Open the output file as binary.
6470
6471         * version.c: Changed version to 1.4b18.
6472
6473 1996-09-10  Hrvoje Niksic  <hniksic@srce.hr>
6474
6475         * version.c: "Released" 1.4b17.
6476
6477         * ftp-unix.c (ftp_parse_ls): If unable to open file, return NULL
6478         instead of failed assertion.
6479
6480 1996-09-09  Hrvoje Niksic  <hniksic@srce.hr>
6481
6482         * ftp.c (ftp_get_listing): Add a numbered suffix to LIST_FILENAME
6483         if a file of that name already exists.
6484
6485 1996-09-05  Hrvoje Niksic  <hniksic@srce.hr>
6486
6487         * ftp.c (ftp_1fl_loop): Handler FTPPORTERR and FOPENERR correctly.
6488
6489         * config.h.in: Define gethostbyname as Rgethostbyname when using
6490         Socks.
6491
6492         * configure.in: Check for -lresolv if using Socks.
6493
6494         * version.c: Changed version to 1.4b17.
6495
6496 1996-07-15  Hrvoje Niksic  <hniksic@srce.hr>
6497
6498         * version.c: "Released" 1.4b16.
6499
6500         * http.c (gethttp): More intelligent check for first line of HTTP
6501         response.
6502         (gethttp): Would bug out on time-stamping.
6503
6504         * version.c: Changed version to 1.4b16.
6505
6506 1996-07-11  Hrvoje Niksic  <hniksic@srce.hr>
6507
6508         * version.c: Released 1.4b15.
6509
6510         * http.c (http_loop): Print \n after the loop entry, not before.
6511
6512         * url.c (url_filename): Use ISDOT.
6513
6514         * url.h (ISDOT): New macro.
6515
6516         * recur.c (recursive_retrieve): Change only opt.recursive for
6517         following FTP.
6518
6519 1996-07-11  Antonio Rosella <antonio.rosella@agip.it>
6520
6521         * socks/geturl.cgi: Fixed version No.
6522
6523         * socks/download-netscape.html: Ditto.
6524
6525         * socks/download.html: Changed socks.html to download.html.
6526
6527 1996-07-11  Hrvoje Niksic  <hniksic@srce.hr>
6528
6529         * url.c (url_filename): Check for opt.dirstruct instead for
6530         opt.recursive && opt.dirstruct.
6531
6532         * init.c (defaults): Ditto.
6533         (defaults): Reset dirstruct by default.
6534         (setval): Set opt.dirstruct whenever setting recursive.
6535
6536         * init.h: Removed FORCEDIRHIER.
6537
6538         * INSTALL: Added -L to socks-description.
6539
6540         * version.c: Changed version to 1.4b15.
6541
6542 1996-07-10  Hrvoje Niksic  <hniksic@srce.hr>
6543
6544         * version.c: "Released" 1.4b14.
6545
6546         * geturl.1: Update AUTHOR to include Rosella as contributor.
6547
6548         * NEWS: Update.
6549
6550         * socks/geturl.cgi: Simplified command creation, nuked <blink>.
6551
6552         * socks/geturl.cgi: Wrap nutscape extensions within if $netscape.
6553         (cal_time): Fix == to eq.
6554
6555         * socks/geturl.cgi: GPL-ized with permission of A. Rosella.
6556
6557         * geturl.1 (hostname): Moved URL CONVENTIONS to the beginning.
6558
6559         * Makefile.in: Use @VERSION@.
6560
6561         * configure.in: Check version from version.c.
6562
6563         * socks/geturl.cgi: Changed /pub/bin/perl to /usr/bin/perl.
6564
6565         * socks/download.html: Created from download-netscape.html, made
6566         HTML-2.0 compliant.
6567
6568         * recur.c (recursive_retrieve): Set opt.force_dir_hier when
6569         following FTP links from recursions.
6570
6571 1996-07-09  Hrvoje Niksic  <hniksic@srce.hr>
6572
6573         * url.c (mymkdir): Fixed a bug that prevented mymkdir() to create
6574         absolute directories correctly.
6575
6576         * version.c: Changed version to 1.4b14.
6577
6578 1996-07-09  Hrvoje Niksic  <hniksic@srce.hr>
6579
6580         * version.c: "Released" 1.4b13.
6581
6582         * url.c (make_backup): New function.
6583
6584         * http.c (http_loop): Make a backup copy of the local file (using
6585         rename(2)) before opening it.
6586
6587         * main.c (main): Added --backups.
6588
6589         * host.c (ftp_getaddress): Bail out on failed mycuserid().
6590         (ftp_getaddress): Check for leading dot on MY_DOMAIN.
6591         (ftp_getaddress): Check for empty, null or (null) domain.
6592
6593         * url.c (get_urls_html): If this_url is NULL, the base must have a
6594         protocol.
6595         (parseurl): Use has_proto.
6596
6597         * retr.c (retrieve_url): Warn when proxy is used with more than 20
6598         retries.
6599
6600         * url.c (mkstruct): Create the directory (calling mymkdir()) only
6601         if it is not already there.
6602         (has_proto): New function.
6603         (get_urls_html): Eliminate the remaining call to findurl -- use
6604         has_proto.
6605
6606         * geturl.1: Ditto.
6607
6608         * main.c: Change -X to -x.
6609
6610         * url.c (url_filename): Simplify creation of filename if
6611         prefix_files is set.
6612         (url_filename): Simplify everything. And I do mean *everything*.
6613         (mkstruct): Add dir_prefix before hostname.
6614         (path_simplify): Fixed a bug that caused writing outside the path
6615         string in case of "." and ".." path strings.
6616
6617 1996-07-06  Hrvoje Niksic  <hniksic@srce.hr>
6618
6619         * init.c: Added --mirror.
6620
6621         * main.c (main): Added -X to force saving of directory hierarchy.
6622
6623         * ftp.c (ftp_retrieve_list): Added recursion depth counter.
6624         (ftp_retrieve_list): Check whether quota is exceeded.
6625
6626         * url.c (get_urls_html): Skip leading blanks for absolute URIs.
6627
6628         * http.c (gethttp): Use referer if present.
6629
6630         * recur.c (recursive_retrieve): Set u->referer before calling
6631         retrieve_url.
6632
6633         * url.c (newurl): Use memset to nullify the struct members.
6634         (freeurl): Free the referer field too.
6635
6636         * url.h: Added referer to urlinfo.
6637
6638         * geturl.1: Updated the manual to document some of the new features.
6639
6640         * utils.c (numdigit): Moved from url.c.
6641
6642         * README: Rewritten.
6643
6644         * config.h.in: Add the support for socks.
6645
6646         * configure.in: Add the support for socks.
6647
6648         * url.c (url_filename): If the dir_prefix is ".", work with just
6649         the file name.
6650         (url_filename): Do not look for .n extensions if timestamping if
6651         turned on.
6652
6653         * retr.c (show_progress): Skip the over-abundant restval data, and
6654         print the rest of it with ',' instead of '.'.
6655
6656 1996-07-05  Hrvoje Niksic  <hniksic@srce.hr>
6657
6658         * retr.c (show_progress): Changed second arg. to long (as it
6659         should be).
6660         (show_progress): Moved to retr.c.
6661         (get_contents): Moved to retr.c.
6662
6663         * version.c: Change version to 1.4b13.
6664
6665 1996-07-05  Hrvoje Lacko <hlacko@fly.cc.fer.hr>
6666
6667         * url.c (in_acclist): Would return after the first suffix.
6668
6669 1996-07-04  Hrvoje Niksic  <hniksic@srce.hr>
6670
6671         * version.c: "Released" 1.4b12.
6672
6673         * url.c (path_simplify): More kludgifications.
6674         (get_urls_html): Use new parameters for htmlfindurl.
6675
6676         * html.c: Removed memorizing "parser states", since the new
6677         organization does not require them.
6678
6679         * init.c (run_geturlrc): Use read_whole_line.
6680
6681         * ftp-unix.c (ftp_parse_ls): Use read_whole_line.
6682
6683         * recur.c (parse_robots): Use read_whole_line.
6684
6685         * utils.c (read_whole_line): New function.
6686
6687         * recur.c (tried_robots): Use add_slist/in_slist, *much* cleaner.
6688
6689         * host.c (ngethostbyname): Call inet_addr just once. Yet to be
6690         tested on OSF and Ultrix.
6691         (add_hlist): New function.
6692         (free_hlist): New function.
6693         (search_host): New function.
6694         (search_address): New function.
6695         (realhost): Use search_host, search_address and add_hlist.
6696         (same_host): Replaced realloc() with strdupdelim(), made
6697         case-insensitive, fixed a memory leak.
6698
6699         * html.c (ftp_index): Fixed tm_min and tm_sec to be tm_hour and
6700         tm_min, like intended.
6701
6702         * version.c: Change user agent information to
6703         Geturl/version.
6704
6705 1996-07-03  Hrvoje Niksic  <hniksic@srce.hr>
6706
6707         * utils.c: Renamed nmalloc.c to utils.c, .h likewise.
6708
6709         * url.c (acceptable): Always accept directories.
6710
6711         * ftp-unix.c (ftp_parse_ls): Support brain-damaged "ls -F"-loving
6712         servers by stripping trailing @ from symlinks and trailing / from
6713         directories.
6714
6715         * ftp.c (ftp_loop): Debugged the "enhanced" heuristics. :-)
6716
6717         * url.c (skip_url): Use toupper instead of UCASE.
6718
6719         * host.c (sufmatch): Made it case-insensitive.
6720
6721         * url.c (match_backwards_or_pattern): Fixed i == -1 to j == -1.
6722         (match_backwards): New function, instead of
6723         match_backwards_or_pattern.
6724
6725         * recur.c (recursive_retrieve): Increased performance by
6726         introducing inl, which reduces number of calls to in_slist to only
6727         one.
6728
6729         * ftp.c (ftp_loop): Enhanced the heuristics that decides which
6730         routine to use.
6731
6732         * main.c (printhelp): Removed the warranty stuff.
6733
6734 1996-07-02  Hrvoje Niksic  <hniksic@srce.hr>
6735
6736         * url.c (add_slist): Simplify.
6737         (match_backwards_or_pattern): New function.
6738         (in_acclist): Use match_backwards_or_pattern.
6739         (matches): Remove.
6740
6741 1996-06-30  Hrvoje Niksic  <hniksic@srce.hr>
6742
6743         * ftp.c (ftp_loop): Call ftp_index on empty file names, if not
6744         recursive.
6745
6746         * html.c (ftp_index): Fixed to work. Beautified the output.
6747
6748         * ftp.c (ftp_retrieve_glob): Another argument to control whether
6749         globbing is to be used.
6750         (ftp_retrieve_list): Compare the time-stamps of local and remote
6751         files to determine whether to download.
6752
6753 1996-06-29  Hrvoje Niksic  <hniksic@srce.hr>
6754
6755         * ftp.c (rel_constr): New function.
6756
6757         * retr.c (retrieve_from_file): Check for text/html before
6758         retrieving recursively.
6759
6760         * main.c (main): Check whether the file is HTML before going into
6761         recursive HTML retrieving.
6762
6763         * ftp.c (ftp_retrieve_list): Manage directories.
6764         (ftp_retrieve_glob): Pass all the file-types to ftp_retrieve_list.
6765         (ftp_1fl_loop): Fixed a bug that caused con->com to be incorrectly
6766         initialized, causing bugchecks in getftp to fail.
6767
6768         * configure.in: Check for symlink.
6769
6770         * ftp.c (ftp_retrieve_list): Added support for symlinks.
6771
6772         * version.c: "Released" 1.4b10.
6773
6774         * atotm.c (atotm): Redeclared as time_t.
6775
6776         * init.c: New variable "timestamping".
6777
6778         * main.c (main): New option 'N'.
6779
6780         * http.c (hgetlocation): Case-insensitive match.
6781         (hgetmodified): New function.
6782         (http_loop): Implement time-stamping.
6783
6784 1996-06-28  Hrvoje Niksic  <hniksic@srce.hr>
6785
6786         * version.c: Changed version to 1.4b10
6787
6788         * atotm.c: New file, from phttpd.
6789
6790         * options.h (struct options): New parameter timestamping.
6791
6792         * version.c: 1.4b9 "released".
6793
6794         * recur.c (recursive_retrieve): Used linked list (ulist) for
6795         faster storing of URLs.
6796
6797         * url.c (get_urls_html): Removed the old kludge with comparing the
6798         outputs of htmlfindurl and findurl.
6799         (get_urls_html): Added better protocol support here.
6800         (create_hash): Removed, as well as add_hash and in_hash.
6801         (addslist): New function.
6802         (in_slist): ditto
6803
6804         * version.c: Released 1.4b8, changed version to b9.
6805
6806 1996-06-27  Hrvoje Niksic  <hniksic@srce.hr>
6807
6808         * ftp.c (freefileinfo): New function.
6809         (delelement): New function.
6810
6811         * everywhere: GPL!
6812
6813         * ftp.c (ftp_loop): Use ccon.
6814         (ftp_retrieve_glob): Likewise.
6815
6816         * ftp.h: Define ccon, to define status of control connection.
6817
6818         * ftp.c (ftp_get_listing): New function.
6819         (ftp_retrieve_more): New function.
6820         (ftp_retrieve_glob): New function.
6821
6822 1996-06-25  Hrvoje Niksic  <hniksic@srce.hr>
6823
6824         * configure.in: Removed the search for cuserid().
6825
6826         * init.c (getmode): Renamed to getperms.
6827
6828 1996-06-24  Hrvoje Niksic  <hniksic@srce.hr>
6829
6830         * version.c: New version.
6831
6832         * main.c (hangup): New function, that handles hangup. Hangup
6833         signal now causes geturl to stop writing on stdout, and to write
6834         to a log file.
6835
6836         * ftp.c (getftp): "Released" 1.4b7.
6837
6838         * html.c (htmlfindurl): Ignore everything inside <head>...</head>.
6839         (ftp_index): Use fileinfo/urlinfo.
6840
6841         * ftp-unix.c (ftp_parse_ls): New function.
6842         (symperms): New function.
6843
6844         * ftp.c (ftp_1fl_loop): New function, to handle 1-file loops.
6845
6846         * retr.c (retrieve_url): Added FTP support.
6847
6848 1996-06-23  Hrvoje Niksic  <hniksic@srce.hr>
6849
6850         * geturl.h: Removed NOTFTP2HTML enum.
6851         Added DO_LOGIN, DO_CWD and DO_LIST. LIST_ONLY is obsolete.
6852
6853         * ftp.c (getftp): Resynched with urlinfo.
6854         (getftp): Removed HMTL-ization of index.html from getftp.
6855
6856         * version.c: 1.4b6 "released".
6857
6858         * options.h (options): New struct, to keep options in.
6859
6860         * http.c (http_loop,gethttp): Synched with proxy.
6861
6862         * retr.c (retrieve_url): Implemented proxy retrieval.
6863
6864         * main.c (main): Use retrieve_from_file.
6865
6866 1996-06-22  Hrvoje Niksic  <hniksic@srce.hr>
6867
6868         * retr.c (retrieve_from_file): New function.
6869
6870         * url.c (parseurl): Modified to return URLOK if all OK. Protocol
6871         can be found in u->proto.
6872
6873         * ftp.c (ftp_response): Fixed to accept multi-line responses as
6874         per RFC 959.
6875
6876         * recr.c (recursive_retrieve): Take newloc from retrieve_url.
6877
6878         * url.c (mymkdir): Removed the file of the same name, if one
6879         exists.
6880         (isfile): New function.
6881         (mkstruct): Fixed the '/' glitches.
6882         (path_simplify): Hacked to treat something/.. correctly.
6883
6884 1996-06-21  Hrvoje Niksic  <hniksic@srce.hr>
6885
6886         * http.c (gethttp): Close the socket after error in headers.
6887         (http_loop): HEOF no longer a fatal header.
6888
6889         * loop.c (retrieve_url): When dt is NULL, do not modify it. This
6890         simplifies the syntax of calling retrieve_url.
6891
6892         * recr.c (recursive_retrieve): Modified to use get_urls_html.
6893
6894         * url.c (get_urls_file): New function.
6895         (get_urls_html): New function.
6896
6897         * recr.c (recursive_retrieve): Patched up to conform to the
6898         standards.
6899
6900         * http.c (gethttp): Synched with the rest...
6901         (gethttp): Treat only CONREFUSED specially, with connection
6902         errors.
6903
6904         * init.c,geturl.1,http.c (http_loop): Removed kill_error.
6905
6906 1996-06-20  Hrvoje Niksic  <hniksic@srce.hr>
6907
6908         * http.c (http_loop): New function.
6909
6910         * loop.c: Removed *lots* of stuff from retrieve_url.
6911
6912         * url.c (parseurl): Changed to work with urlinfo. Integrated
6913         username finding and path parsing.
6914         (newurl): New function.
6915         (freeurl): New function.
6916         (mkstruct): Removed the old bogosities, made it urlinfo-compliant.
6917         (url_filename): Likewise.
6918         (path_simplify): Accept relative paths too.
6919         (opt_url): Made urlinfo-compliant, removed bogosities.
6920         (path_simplify): Expanded to accept relative paths.
6921         (str_url): A replacement for hide_url
6922         (decode_string): Fixed a bug that caused malfunctioning when
6923         encountering an illegal %.. combination.
6924         (opt_url): Removed the argument. Dot-optimizations are now default.
6925
6926         * nmalloc.c (strdupdelim): New function.
6927
6928         * url.h: Added the urlinfo structure
6929
6930 1996-06-19  Hrvoje Niksic  <hniksic@srce.hr>
6931
6932         * url.c (hide_url): Thrown out the protocol assertion. Do not
6933         change the URL if the protocol if not recognized.
6934         (findurl): Put continue instead of break.
6935
6936 1996-06-18  Hrvoje Niksic  <hniksic@srce.hr>
6937
6938         * sample.geturlrc: Changed the defaults to be commented out and
6939         harmless (previous defaults caused pains if copied to
6940         ~/.geturlrc).
6941
6942         * http.c (gethttp): Print the HTTP request in debug mode.
6943
6944         * connect.c (iread): Added EINTR check loop to select-ing
6945         too. EINTR is now correctly handled with select().
6946
6947         * TODO: new file
6948
6949 1996-05-07  Hrvoje Niksic  <hniksic@srce.hr>
6950
6951         * host.c (same_host): Made the function a little bit more
6952         intelligent regarding diversified URL syntaxes.
6953
6954         * url.c (skip_url): Spaces are now skipped after URL:
6955
6956         * Released 1.3.1 with the patch to prevent crashing when sending
6957         NULL to robot* functions and the patch to compile "out of the box"
6958         on AIX.
6959
6960         * recr.c (recursive_retrieve): Added checking whether this_url is
6961         NULL when calling the robot functions.
6962
6963         * ChangeLog: New file.