]> sjero.net Git - wget/blob - src/ChangeLog
[svn] Applied Hack Kampbjorn's patch to print FTP type in debug output.
[wget] / src / ChangeLog
1 2001-02-11  Hack Kampbj\e-Aørn  <hack@hackdata.com>\e-B
2
3         * url.c (parseurl): Debug-print u->ftp_type.
4
5 2001-02-11  Hrvoje Niksic  <hniksic@arsdigita.com>
6
7         * ftp.c (ftp_loop_internal): Disable padding.
8         (getftp): Ditto.
9
10         * http.c (http_loop): Disable padding.
11
12         * retr.c (show_progress): Use it to enable padding.
13
14         * retr.c (rate): Optional parameter PAD for padding the rate.
15
16 2001-02-10  Hrvoje Niksic  <hniksic@arsdigita.com>
17
18         * retr.c (show_progress): Make sure that the last output line
19         includes progress.
20
21 2001-02-10  Jonas Jensen  <bones@huleboer.dk>
22
23         * retr.c (show_progress): Print the download rate along with the
24         percentages.
25
26 2001-02-10  Tim Mooney  <mooney@dogbert.cc.ndsu.NoDak.edu>
27
28         * ftp.h: Rename enums `command' to `wget_ftp_command' and
29         `fstatus' to `wget_ftp_status' because old names clash with Tru64
30         net/if.h.
31
32 2001-02-08  Christian Fraenkel <christian.fraenkel@gmx.net>
33
34         * gen_sslfunc.c: verify_callback is now static
35
36         * gen_sslfunc.c (init_ssl): load certificate if specified
37
38         * gen_sslfunc.c (ssl_printerr): new function
39
40         * init.c: added new --sslcertfile and --sslcertkey switches
41
42         * main.c: ditto
43
44         * options.h: ditto
45
46         * http.c (gethttp): abort when init_ssl fails
47
48 2001-01-23  Herold Heiko  <Heiko.Herold@previnet.it>
49
50         * mswindows.h: Include <malloc.h>; it's needed for alloca().
51
52 2001-01-10  Dan Harkless  <wget@harkless.org>
53
54         * url.c (str_url): Clarified this function's comment header after
55         Hrvoje answered my question on the list as to when hide != 1.
56         Also Hrvoje pointed out I need to use xstrdup() on the string literal.
57
58 2001-01-06  Hrvoje Niksic  <hniksic@arsdigita.com>
59
60         * connect.c (bindport): Declare addrlen as int.  Diagnosed by
61         Drazen Kacar <dave@arsdigita.com>.
62         (conaddr): Ditto.
63
64 2001-01-09  Dan Harkless  <wget@harkless.org>
65
66         * html-url.c: A bunch of fixup of `--page-requisites'-related
67         comments to reflect Hrvoje's changes to my code when transplanting
68         it into this new file, to fix spelling mistakes, to clarify, etc.
69
70         * url.c (write_backup_file): Clarified a comment.
71         (str_url): Henrik van Ginhoven pointed out on the list that we
72         shouldn't give away the number of characters in the password by
73         replacing each character with a 'x'.  Use "<password>" instead.
74
75         * ftp.c (ftp_retrieve_dirs): The bug where recursion into FTP
76         directories didn't work if logging in put you in a directory other
77         than "/" is fixed now.  Removed the comment here warning of the bug.
78
79         * main.c (print_help): --continue's description was misleading.
80         We don't "restart", we "resume".  Also, better to say
81         "partially-downloaded file" rather than just "existing file".
82
83 2001-01-06  Dan Harkless  <wget@harkless.org>
84
85         * ChangeLog: The '[Not in 1.6 branch.]'s were decided not to be
86         the best way to go about my aim.  Removed them in favor of:
87
88         * ChangeLog-branches/1.6_branch.ChangeLog: New file.
89
90 2001-01-04  Hrvoje Niksic  <hniksic@arsdigita.com>
91
92         * url.c (replace_attr): New function, to be used by both
93         TO_COMPLETE and TO_RELATIVE case in convert_links.
94         (find_fragment): New function for finding URL fragments.
95         (replace_attr): Better handle the case where the original string
96         is not quoted.  Use find_fragment.
97         (convert_links): Use replace_attr().
98
99 2000-12-18  Csaba Raduly  <csaba.raduly@sophos.com>
100
101         * sysdep.h: Include <malloc.h> and <io.h> under Watcom.
102
103 2000-12-31  Dan Harkless  <wget@harkless.org>
104
105         * ChangeLog: Since this flat file doesn't have multiple branches,
106         looking at the dates would make you think that things went into
107         1.6 that actually just went into the 1.7-dev branch.  Added "[Not
108         in 1.6 branch.]" where appropriate to clarify.
109         
110 2000-12-30  Dan Harkless  <wget@harkless.org>
111
112         * ftp.c, http.c:  Applied Hack Kampbjørn <hack@hackdata.com>'s
113         patch to deal with h_errno not being defined in netdb.h under Cygwin.
114
115 2000-12-17  Igor Khristophorov  <igor@atdot.org>
116
117         * http.c (check_end): Fix test for '+' or '-'.
118
119 2000-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
120
121         * url.c (parseurl): Rename inner loop var from i to ind to avoid
122         clash with the function top-level-declared variable i.
123         (str_url): Likewise, rename inner-loop i to j.
124
125         * recur.c (parse_robots): Don't declare LEN at top of function.
126         (robots_match): Renamed parameter FORBIDDEN to avoid hiding of
127         global variable.
128
129         * main.c (main): Change erroneous use of bitwise and to logical.
130
131         * init.c (cmd_address): Don't heap-allocate `sin'; it can be on
132         the stack because it will be copied to closure.
133
134         Thanks to Csaba Raduly's run of PC-LINT over the sources.
135
136 2000-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
137
138         * http.c (basic_authentication_encode): Use xmalloc(), not
139         malloc().  Thanks to Csaba Raduly's run of PC-LINT over the
140         sources.
141
142 2000-12-17  Csaba Raduly  <csaba.raduly@sophos.com>
143
144         * sysdep.h: Test for __EMX__ rather than for EMXOS2 for OS/2
145         compilation.
146
147 2000-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
148
149         * mswindows.c: Include <errno.h>.
150
151         * gen_sslfunc.c: Include <errno.h>.
152
153         * ftp-basic.c: Don't attempt to declare errno or h_errno because
154         they're not used.
155
156         * main.c: Include <errno.h> because errno is used.
157
158         * ftp.c: Ditto.
159
160         * http.c: Include <netdb.h> for h_errno.
161
162 2000-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
163
164         * html-parse.c (advance_declaration): MSVC assert() chokes on
165         '\"'.  Use '"' instead.
166
167 2000-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
168
169         * utils.c (xfree_real): Removed.
170         (xfree_debug): Just call free().
171
172         * wget.h (xfree): Make it an alias for free.
173
174 2000-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
175
176         * http.c (http_loop): Furthermore, touch output_document only if
177         it is known to be an existing regular file.
178
179 2000-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
180
181         * ftp.c (ftp_retrieve_list): Ditto.
182
183         * http.c (http_loop): Touch output_document if that is used for
184         output.
185
186 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
187
188         * http.c: Include gen_sslfunc.h after including Wget's headers.
189         (persistent_available_p): Needed coma before `int ssl'.
190
191 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
192
193         * ftp.c (ftp_loop_internal): Ditto.
194
195         * http.c (http_loop): Use it.
196
197         * retr.c (sleep_between_retrievals): New function that handles the
198         logic of opt.wait and opt.waitretry.
199
200 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
201
202         * rbuf.h: Implement only a single version of RBUF_READCHAR, using
203         rbuf_read_bufferful when the buffer is depleted.
204
205         * rbuf.c (rbuf_read_bufferful): New function.
206
207 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
208
209         * gen_sslfunc.h: Use ansi2knr style function declarations.
210
211         * gen_sslfunc.c: Reformat according to the GNU coding standards.
212         More should be done.
213
214         * http.c (persistent_available_p): Place the cheap SSL test nearer
215         the top of the function.
216         (CLOSE_FINISH, CLOSE_INVALIDATE): Define only one version of each.
217
218 2000-12-03  Christian Fraenkel <christian.fraenkel@gmx.net>
219
220         * Makefile.in: added gen_sslfunc object
221         * config.h.in: added HAVE_SSL define
222         * connect.c: changed select_fd from static int to int
223         * connect.h: ditto
224         * gen_sslfunc.h: New file
225         * gen_sslfunc.c: ditto
226         * http.c: added HTTPS fuctionality
227         * retrc.c: ditto
228         * url.c: ditto
229         * init.c: added opt.httpsproxy
230         * options.h: ditto
231         * rbuf.h: added alternate rbuf struct
232         * wget.h: added CONSSLERR
233         * rbuf.c: ditto
234
235         * http.c: Added HTTPS fuctionality.
236
237         * retrc.c: Ditto.
238
239         * url.c: Ditto.
240
241         * init.c: Added opt.httpsproxy.
242
243         * options.h: Ditto.
244
245         * rbuf.h: Added alternate rbuf struct.
246
247         * wget.h: Added CONSSLERR.
248
249         * rbuf.c: Ditto.
250
251 2000-11-30  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
252
253         * ftp-ls.c (ftp_parse_unix_ls): Added second parameter
254         "ignore_perms" to ignore file and directory permissions for
255         Windows NT FTP server listings.
256         (ftp_parse_winnt_ls): New function.
257         (ftp_parse_ls): Parses UNIX and Windows NT listings
258         separately. Simple heuristics for distinguishing between UNIX
259         and MS-DOS-like FTP listing provided by Windows NT FTP service.
260
261 2000-12-05  Hrvoje Niksic  <hniksic@arsdigita.com>
262
263         * url.c (init_unsafe_char_table): Reinstate space as an unsafe
264         char.
265
266 2000-11-29  John Summerfield  <summer@OS2.ami.com.au>
267
268         * netrc.c (parse_netrc): Get rid of line ending.
269
270 2000-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
271
272         * ftp.c (ftp_retrieve_list): Undo typo "fix" until resolution by
273         Dan.
274
275 2000-11-24  Karl Eichwalder  <ke@suse.de>
276
277         * main.c (print_help): Untabify.
278
279 2000-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
280
281         * utils.c (xrealloc_debug): Do the unregister/register thing only
282         if the pointer has actually changed.
283         (xmalloc_real): Declare `static' in DEBUG_MALLOC builds.
284         (xfree_real): Ditto.
285         (xrealloc_real): Ditto.
286         (xstrdup_real): Ditto.
287
288 2000-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
289
290         * ftp.c (getftp): ftp_getaddress() returns a malloc'ed copy of the
291         string; no need to strdup() it.
292         (getftp): Make pwd_len a local variable.
293         (ftp_loop): Free PWD before returning.
294
295         * init.c (cleanup): Free opt.ftp_pass only if it's non-NULL.
296
297 2000-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
298
299         * all: Use xfree() instead of free.
300
301         * utils.c (xfree): New function.
302
303 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
304
305         * url.c (convert_links): HTML-quote the converted string.
306
307         * utils.c (html_quote_string): Move here from ftp-ls.c
308         (html_quote_string): Make non-static; declare in utils.h.
309         (html_quote_string): Convert SP to &#32;.
310
311 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
312
313         * ftp.c (getftp): Reformat Jan's code according to GNU coding
314         standards; remove (debugging?) printf's; use '\0' for the ASCII
315         zero character.  Use alloca() instead of malloc() for
316         inter-function temporary allocations.
317
318 2000-11-18  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
319
320         * ftpparse.c, ftpparse.h: New files.
321
322         * ftp-ls.c (ftp_parse_ls): Use ftp_parse_unix_ls for UNIX servers
323         only. Use ftp_parse_nonunix_ls otherwise.
324         (ftp_parse_nonunix_ls): Stub to the ftpparse library handling all
325         exotic FTP servers.
326
327         * ftp.h (stype): New enum, distinguishes UNIX, VMS, and "other"
328         FTP servers.
329
330         * ftp.c: New static wariables host_type, pwd, and pwd_len. 
331         (getftp): Support for VMS. Support for FTP servers that do not
332         place you in the root directory after login.
333         (ftp_retrieve_list): VMS is silent about the real file size, issue
334         a more appropriate message.
335         (ftp_get_listing): Pass host_type to ftp_parse_ls.
336
337         * ftp-basic.c (ftp_pwd, ftp_syst): New functions.
338
339 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
340
341         * hash.c (hash_table_put): Don't overwrite deleted mappings.
342
343 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
344
345         * hash.c (find_mapping): New function.
346         (hash_table_get): Use it.
347         (hash_table_get_pair): Ditto.
348         (hash_table_exists): Ditto.
349         (hash_table_remove): Ditto.
350         (hash_table_remove): Really delete the entry if the mapping
351         following LOCATION is empty.
352
353         * utils.c (string_set_add): Check whether the element has existed
354         before.
355
356         * hash.c (hash_table_get_pair): New function.
357
358 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
359
360         * http.c (http_process_type): Ignore trailing whitespace; use
361         strdupdelim().
362
363         * recur.c (recursive_retrieve): Use the new `convert' field.
364         (convert_all_links): Ditto.
365         (convert_all_links): Don't respect meta_disallow_follow.
366
367         * html-url.c (handle_link): Fill out link_relative_p and
368         link_complete_p.
369
370         * url.h (struct _urlpos): Make elements more readable.
371
372         * recur.c (recursive_retrieve): Call slist_prepend instead of
373         slist_append.
374         (convert_all_links): Call slist_nreverse before iterating through
375         urls_html.
376
377         * utils.c (slist_prepend): New function.
378         (slist_nreverse): Ditto.
379
380 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
381
382         * http.c (check_end): Constify.
383
384 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
385
386         * http.c (http_loop): If username and password are known, try the
387         `Basic' authentication scheme by default.
388
389         * connect.h: Declare test_socket_open.
390
391 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
392
393         * version.c: Bump version from 1.5.3+dev to 1.7-dev.
394
395 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
396
397         * http.c (gethttp): Don't use the return value of sprintf().
398         (gethttp): Inhibit keep-alive if opt.http_keep_alive is 0.
399
400 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
401
402         * recur.c (recursive_retrieve): Print the "so we don't load"
403         debugging message only if we really don't load.
404
405         * http.c (gethttp): Inhibit keep-alive if proxy is being used.
406         (gethttp): Don't request keep-alive if keep-alive is inhibited.
407
408 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
409
410         * http.c (gethttp): Make the HTTP persistent connections more
411         robust.
412
413 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
414
415         * retr.c (get_contents): If use_expected, make sure that the
416         appropriate amount of data is being read.
417
418         * http.c (gethttp): Check for both `Keep-Alive: ...' and
419         `Connection: Keep-Alive'.
420
421         * wget.h (DEBUGP): Call debug_logprintf only if opt.debug is
422         turned on.
423
424 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
425
426         * http.c (connection_available_p): Use it.
427
428         * connect.c (test_socket_open): New function.
429
430         * http.c (gethttp): Support persistent connections.  Based on the
431         ideas, and partly on code, by Sam Horrocks <sam@daemoninc.com>.
432         (register_persistent): New function.
433         (connection_available_p): Ditto.
434         (invalidate_connection): Ditto.
435
436 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
437
438         * url.c (convert_links): Handle UREL2ABS case.
439
440         * recur.c (recursive_retrieve): Instead of the list
441         urls_downloaded, use hash tables dl_file_url_map and
442         dl_url_file_map.
443         (convert_all_links): Use them to retrieve data.
444
445         * host.c (clean_hosts): Free the hash tables.
446
447         * main.c (private_initialize): Call host_init().
448
449         * host.c (store_hostaddress): Use a saner, hash table-based data
450         model.
451         (realhost): Ditto.
452         (host_init): Initialize the hash tables.
453
454 2000-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
455
456         * utils.c (slist_append): Eviscerate NOSORT.  Hash tables are now
457         used for what the sorted slists used to be used for.
458         (slist_contains): Don't rely on the list being sorted.
459         (slist_append): Simplify the code.
460
461         * recur.c (recursive_cleanup): Use free_string_set.
462
463         * utils.c (string_set_add, string_set_exists, string_set_free):
464         New functions for easier freeing of hash tables whose keys are
465         strdup'ed strings.
466
467         * recur.c (recursive_retrieve): Use the hash table functions for
468         storing undesirable URLs.
469
470         * hash.c: New file.
471
472 2000-11-17  Hrvoje Niksic  <hniksic@arsdigita.com>
473
474         * main.c (private_initialize): Call url_init.
475         (main): Call private_initialize.
476
477         * url.c (unsafe_char_table): New table.
478         (UNSAFE_CHAR): Use it.
479         (init_unsafe_char_table): New function.
480         (url_init): New function; call init_unsafe_char_table.
481
482 2000-11-15  Hrvoje Niksic  <hniksic@arsdigita.com>
483
484         * html-url.c (handle_link): Handle HTML fragment identifiers.
485
486         * recur.c (recursive_retrieve): If norobot info is respected and
487         the file is specified not to be followed by robots, respect that.
488
489         * html-url.c (collect_tags_mapper): Handle <meta name=robots
490         content=X>.  For us the important cases are where X is NONE or
491         where X contains NOFOLLOW.
492         (get_urls_html): Propagate that information to the caller.
493
494 2000-11-13  Hrvoje Niksic  <hniksic@arsdigita.com>
495
496         * url.c (convert_links): Unlink the file we might be reading from
497         before writing to it.
498         (convert_links): Use alloca instead of malloc for
499         filename_plus_orig_suffix.
500
501 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
502
503         * url.c (get_urls_file): Ditto.
504         (convert_links): Ditto.
505
506         * html-url.c (get_urls_html): Use read_file() instead of
507         load_file().
508
509         * utils.c (read_file): New function, instead of the old
510         load_file().
511         (read_file_free): Ditto.
512
513         * url.c (findurl): Search only for the supported protocols.
514         (convert_links): Use fwrite() when writing out a region of
515         characters.
516
517 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
518
519         * ftp-ls.c: Move html_quote_string and ftp_index here.
520
521         * url.c: Remove get_urls_html, since that's now in html-url.c.
522
523         * html-url.c: New file.
524
525         * html-parse.c: New file.
526
527 2000-11-16  Hrvoje Niksic  <hniksic@arsdigita.com>
528
529         * mswindows.h: Define snprintf and vsnprintf to _snprintf and
530         _vsnprintf respectively.
531
532 2000-11-15  Hrvoje Niksic  <hniksic@arsdigita.com>
533
534         * config.h.in: Do the _XOPEN_SOURCE and _SVID_SOURCE things only
535         on Linux.
536
537 2000-11-12  Hrvoje Niksic  <hniksic@arsdigita.com>
538
539         * host.c (realhost): Add HOST to the list with quality==0 only if
540         it wasn't already there.
541         Based on analysis by Lu Guohan <feng@public.bjnet.edu.cn>.
542
543 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
544
545         * init.c (run_wgetrc): Don't bother killing off '\r' since
546         pars_line() skips whitespace at end of line anyway.
547         (parse_line): Oops, it didn't.  Now it does.
548
549         * recur.c (parse_robots): Ditto here.
550
551         * ftp-ls.c (ftp_parse_unix_ls): Kill off the newline character
552         manually because read_whole_line no longer does.
553
554         * utils.c (read_whole_line): Rewrite to: a) use less memory
555         (reallocates to needed size after work), b) work faster -->
556         fgets() instead of getc, c) be more correct --> doesn't kill the
557         newline character at the end of line.
558
559 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
560
561         * init.c (comind): Initialize MAX to array size - 1.
562
563 2000-11-08  Hrvoje Niksic  <hniksic@arsdigita.com>
564
565         * url.c (construct): Changed last_slash[-1] to *(last_slash - 1).
566         Suggested by Edward J. Sabol.
567
568 2000-11-08  Hrvoje Niksic  <hniksic@arsdigita.com>
569
570         * url.c (construct): Handle the case where host name is not
571         followed by a slash.
572
573 2000-11-06  Hrvoje Niksic  <hniksic@arsdigita.com>
574
575         * init.c: commands[] need to be sorted!  ("base" wasn't.)
576
577 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
578
579         * wget.h (DO_REALLOC_FROM_ALLOCA): Use braces to disambiguate
580         `if'.
581
582 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
583
584         * url.c (construct): Insert unneeded initialization for the
585         compiler to shut up.
586
587         * config.h.in: Define _XOPEN_SOURCE to 500 to get the prototype
588         for strptime() (*duh*).  Define _SVID_SOURCE to get S_IFLNK which
589         otherwise gets lost when you define _XOPEN_SOURCE.
590
591         * utils.c (touch): Include the file name in the error message.
592         From Debian.
593
594 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
595
596         * log.c (logvprintf): Use vsnprintf() in all cases.  If necessary,
597         resize the buffer to fit the formated message.  That way, messages
598         of arbitrary size may be printed.
599         (logvprintf): Use saved_append() to optionally log the last
600         several lines of output.
601         (logputs): Ditto.
602         (log_close): Adapt to new data structures.
603         (log_dump): Ditto.
604         (redirect_output): Print messages to stderr, not to stdout.
605
606         * log.c (saved_append_1): New function.  Replaces the old logging
607         system ("log all output until 10M characters") with a new, much
608         more reasonable one ("log last screenful of text").
609         (saved_append): New function; call saved_append_1.
610         (free_log_line): New function.
611
612 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
613
614         * url.c (construct): Fix comment.
615         (find_last_char): Document.
616
617 2000-11-04  Hrvoje Niksic  <hniksic@arsdigita.com>
618
619         * snprintf.c: New file.
620
621 2000-11-03  Hrvoje Niksic  <hniksic@arsdigita.com>
622
623         * wget.h: If HAVE_STDARG_H is not defined, don't declare argument
624         types to logprintf() and debug_logprintf().
625
626 2000-11-02  Hrvoje Niksic  <hniksic@arsdigita.com>
627
628         * ftp.c (ftp_loop_internal): Hide the password from the URL when
629         printing non-verbose.  Problem spotted by Dariusz Mlynarczyk
630         <darekm@bydg.lomac.com.pl>.
631
632 2000-11-02  Junio Hamano  <junio@twinsun.com>
633
634         * ftp-basic.c (ftp_login): Make comparison case-insensitive.
635
636 2000-11-02  Tyler Riddle  <triddle@liquidmarket.com>
637
638         * http.c (known_authentication_scheme_p): Recognize NTML
639         authentication.
640         (create_authorization_line): Treat NTML the same as `Basic'.
641
642 2000-11-02  Hrvoje Niksic  <hniksic@arsdigita.com>
643
644         * retr.c (retrieve_url): Free url before returning.
645         (retrieve_url): Free mynewloc before returning.
646         Spotted by Mark A. Mankins <Mankins_Mark@prc.com>.
647
648 2000-11-02  Hrvoje Niksic  <hniksic@arsdigita.com>
649
650         * url.c (parseurl): Remove possible reading past the end of
651         sup_protos[].  Spotted by Mark A. Mankins <Mankins_Mark@prc.com>.
652
653 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
654
655         * main.c (main): In case of opt.downloaded overflowing, print
656         <overflow> instead of a totally bogus random value.
657
658         * retr.c (retrieve_from_file): Ditto.
659
660         * recur.c (recursive_retrieve): Ditto.
661
662         * main.c (main): Ditto.
663
664         * http.c (http_loop): Ditto.
665
666         * ftp.c (ftp_loop_internal): Use downloaded_increase() instead of
667         `+=', and downloaded_exceeds_quota() instead of the simple-minded
668         check.
669         (ftp_retrieve_list): Ditto.
670         (ftp_retrieve_dirs): Ditto.
671         (ftp_retrieve_glob): Ditto.
672
673         * retr.c (downloaded_increase): New function.  Notice overflows of
674         opt.downloaded.
675         (downloaded_exceeds_quota): Make sure that opt.downloaded is not
676         used if it overflowed.
677
678         * options.h (struct options): New member downloaded_overflow.
679
680 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
681
682         * wget.h (enum): Remove extra space after last enumeration.
683
684 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
685
686         * main.c (main): Use legible_very_long() for printing
687         opt.downloaded.
688
689         * utils.c (legible_1): New function that operates on strings and
690         does the brunt of legible()'s work.
691         (legible): Use legible_1().
692         (legible_very_long): New function; dump the argument with
693         sprintf(), and call legible_1().
694
695         * options.h (struct options): Use VERY_LONG_TYPE for
696         opt.downloaded.
697
698         * sysdep.h (VERY_LONG_TYPE): Define it to have a 64-bit or greater
699         type.
700
701         * config.h.in: Make sure that SIZEOF_LONG and SIZEOF_LONG_LONG get
702         defined.  Define HAVE_LONG_LONG if long long is available.
703
704 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
705
706         * utils.c (long_to_string): Update with a later, better version.
707
708 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
709
710         * url.c (path_simplify_with_kludge): New function.
711         (path_simplify_with_kludge): Disable it.  Instead...
712         (parse_dir): ...make sure that at this point the right thing is
713         done, i.e. that "query" part of the URL (?...) is always assigned
714         to the file, never to the directory portion of the path.
715
716 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
717
718         * retr.c (retrieve_url): Detect redirection cycles.
719
720 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
721
722         * url.c (get_urls_html): Decode HTML entities using
723         html_decode_entities.
724
725         * html.c (htmlfindurl): Don't count the `#' in numeric entities
726         (&#NNN;) as an HTML fragemnt.
727         (html_decode_entities): New function.
728
729 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
730
731         * html.c (htmlfindurl): Fix recognition of # HTML fragments.
732
733 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
734
735         * url.c (construct): Rewritten for clarity.  Avoids the
736         unnecessary copying and stack-allocation the old version
737         performed.
738
739 2000-10-31  Hrvoje Niksic  <hniksic@arsdigita.com>
740
741         * ftp.c (getftp): Ditto.
742
743         * http.c (gethttp): Rewind the stream when retrying from scratch.
744
745 2000-10-31  Hrvoje Niksic  <hniksic@arsdigita.com>
746
747         * retr.c (retrieve_url): Use url_concat() to handle relative
748         redirections instead of /ad hoc/ code.
749
750         * url.c (url_concat): New function encapsulating weird
751         construct().
752         (urllen_http_hack): New function.
753         (construct): When constructing new URLs, recognize that `?' does
754         not form part of the file name in HTTP.
755
756 2000-10-13  Adrian Aichner  <adrian@xemacs.org>
757
758         * retr.c: Add msec timing support for WINDOWS.
759         * retr.c (reset_timer): GetSystemTime() on WINDOWS.
760         * retr.c (elapsed_time): Calculate delta time to msec on WINDOWS.
761
762 2000-10-27  Dan Harkless  <wget@harkless.org>
763
764         * retr.c (retrieve_url): Manually applied T. Bharath
765         <TBharath@responsenetworks.com>'s patch to get wget to grok
766         illegal relative URL redirects.  Reformatted and re-commented it.
767
768 2000-10-23  Dan Harkless  <wget@harkless.org>
769
770         * connect.c (make_connection and bindport): Manually applied Rob
771         Mayoff <mayoff@dqd.com>'s 1.5.3 patch to add --bind-address,
772         changing coding style to GNU's.
773
774         * ftp.c (ftp_loop_internal): --delete-after wasn't implemented for
775         files downloaded via FTP.  Per a comment, .listing files were not
776         counted towards number of bytes and files downloaded because they're 
777         deleted anyway.  Well, they aren't under -nr, so count them then.
778
779         * init.c: Manually applied Rob Mayoff's 1.5.3 patch to add
780         --bind-address, alphabetizing, changing coding style to GNU's,
781         commenting, and renaming cmd_ip_address() to cmd_address() to
782         imply hostnames also okay.
783                 
784         * main.c (main): --delete-after didn't delete the root of the
785         tree.  Ignore --convert-links if --delete-after was specified.
786         Manually applied Rob Mayoff's 1.5.3 patch to add --bind-address,
787         fixing duplicate use of added-since-1.5.3 case value.
788         (print_help): Clarified that --delete-after deletes local files.
789         Rob forgot to add a line for his new --bind-address option.
790                 
791         * options.h (struct options): Manually applied Rob Mayoff's patch
792         to add --bind-address (bind_address structure member).
793                 
794         * recur.c (recursive_retrieve): Improved comment; added DEBUGP().
795         Ignore --convert-links if --delete-after was specified.
796                 
797         * retr.c (retrieve_from_file): Just added a DEBUGP().
798                 
799 2000-10-19  Dan Harkless  <wget@harkless.org>
800
801         * ftp.c (ftp_loop_internal): downloaded_file() enumerators changed.
802         (getftp): Applied Piotr Sulecki <Piotr.Sulecki@ios.krakow.pl>'s
803         patch to work around FTP servers that incorrectly respond to the
804         "REST" command with the remaining size rather than the total file size.
805                 
806         * http.c (gethttp): Improved a comment and added code to tack on
807         ".html" to text/html files without that extension when -E specified.
808         (http_loop): Use new downloaded_file() enumerators and deal with
809         the case of gethttp() called xrealloc() on u->local.
810
811         * init.c (commands): Added new "htmlextension" command.
812         Also renamed John Daily's cmd_quad() to the more descriptive
813         cmd_lockable_boolean(), alpha-sorted the CMD_DECLARE()s and
814         removed duplicate cmd_boolean() declaration.
815
816         * main.c (print_help): Added my new -E / --html-extension option.
817         (main): Undocumented --email-address option previously used -E synonym.
818         Stole it away for the much more deserving --html-extension's use.
819
820         * options.h (struct options): Added html_extension field.
821
822         * url.c (convert_links): URL X that we saved as X.html locally due
823         to -E needs to be backed up as X.orig, not X.html.orig.  Added comments.
824         (downloaded_file): Now remembers if we added .html extension to a file.
825
826         * url.h (downloaded_file_t): Added extra enumerators to support above.
827         (downloaded_file): Now takes and returns a downloaded_file_t.
828
829         * wget.h (unnamed "dt" enum): Added ADDED_HTML_EXTENSION enumerator.
830         
831 2000-10-09  Dan Harkless  <wget@harkless.org>
832
833         * html.c (htmlfindurl): Added unneeded initialization to quiet warning.
834                 
835         * main.c (print_help): Clarified what --retr-symlinks does.
836         
837 2000-09-15  John Daily  <jdaily@cyberdude.com>
838
839         * init.c: Add support for "always" and "never" values to allow
840         .wgetrc to override commandline (useful e.g. with .pm files
841         calling `wget --passive-ftp' when your firewall doesn't allow that).
842
843         * ftp.c (getftp): passive_ftp is first option to support always/never.
844
845 2000-08-30  Dan Harkless  <wget@harkless.org>
846
847         * ftp.c (ftp_retrieve_list): Use new INFINITE_RECURSION #define.
848         
849         * html.c: htmlfindurl() now takes final `dash_p_leaf_HTML' parameter.
850         Wrapped some > 80-column lines.  When -p is specified and we're at a 
851         leaf node, do not traverse <A>, <AREA>, or <LINK> tags other than 
852         <LINK REL="stylesheet">.
853         
854         * html.h (htmlfindurl): Now takes final `dash_p_leaf_HTML' parameter.
855         
856         * init.c: Added new -p / --page-requisites / page_requisites option.
857
858         * main.c (print_help): Clarified that -l inf and -l 0 both allow
859         infinite recursion.  Changed the unhelpful --mirrior description
860         to simply give the options it's equivalent to.  Added new -p option.
861         (main): Added some comments; handle new -p / --page-requisites.
862         
863         * options.h (struct options): Added new page_requisites field.
864
865         * recur.c: Changed "URL-s" to "URLs" and "HTML-s" to "HTMLs".
866         Calculate and pass down new `dash_p_leaf_HTML' parameter to
867         get_urls_html().  Use new INFINITE_RECURSION #define.
868
869         * retr.c: Changed "URL-s" to "URLs".  get_urls_html() now takes
870         final `dash_p_leaf_HTML' parameter.
871
872         * url.c: get_urls_html() and htmlfindurl() now take final
873         `dash_p_leaf_HTML' parameter.
874
875         * url.h (get_urls_html): Now takes final `dash_p_leaf_HTML' parameter.
876
877         * wget.h: Added some comments and new INFINITE_RECURSION #define.
878         
879 2000-08-23  Dan Harkless  <wget@harkless.org>
880
881         * main.c (print_help): -B / --base was not mentioned.
882
883 2000-08-22  Dan Harkless  <wget@harkless.org>
884
885         * main.c (print_help): Modified -nc description to mention that it
886         also prevents the creation of multiple versions of the same file
887         with ".<number>" suffixes.
888
889 2000-07-14  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
890
891         * retr.c (retrieve_url): Consistently strdup opt.referer when
892         setting u->referer.
893
894 2000-06-09  Dan Harkless  <wget@harkless.org>
895
896         * main.c (print_help): --help output for --waitretry was over 80 cols.
897
898 2000-06-09  Hrvoje Niksic  <hniksic@iskon.hr>
899
900         * url.c (encode_string): Fix comment.
901         Suggested by Herold Heiko <Heiko.Herold@previnet.it>.
902
903 2000-06-01  Const Kaplinsky  <const@ce.cctpu.edu.ru>
904
905         * ftp.c (ftp_retrieve_list): Change permissions only on plain
906         files.
907
908 2000-06-01  Hrvoje Niksic  <hniksic@iskon.hr>
909
910         * url.c (str_url): Print the port number only if it's different
911         from the default port number for that protocol.
912
913 2000-05-22  Dan Harkless  <wget@harkless.org>
914
915         * main.c (print_help): Added --help line for Damir Dzeko
916         <ddzeko@zesoi.fer.hr>'s until-now-undocumented --referer option.
917         Removed comments that --referer and --waitretry were undocumented.
918         Changed "`.wgetrc' command" to "`.wgetrc'-style command" on --help
919         line for --execute.
920
921 2000-05-18  Hrvoje Niksic  <hniksic@iskon.hr>
922
923         * ftp.c (getftp): Ditto.
924
925         * http.c (gethttp): Check for return value of fclose/fflush.
926
927 2000-04-12  Hrvoje Niksic  <hniksic@iskon.hr>
928
929         * host.c (store_hostaddress): Instead of shifting ADDR, start
930         copying from the correct address.
931
932 2000-04-12  Hrvoje Niksic  <hniksic@iskon.hr>
933
934         * http.c (gethttp): Don't free REQUEST -- it was allocated with
935         alloca().
936         Pointed out by Gisle Vanem <gvanem@eunet.no>.
937
938 2000-04-04  Dan Harkless  <wget@harkless.org>
939
940         * host.c (store_hostaddress): R. K. Owen's patch introduces a
941         "left shift count >= width of type" warning on 32-bit
942         architectures.  Got rid of it by tricking the compiler w/ a variable.
943         
944         * url.c (UNSAFE_CHAR): The macro didn't include all the illegal
945         characters per RFC1738, namely everything above '~'.  It also
946         generated a warning on OSes where char =~ unsigned char.  Fixed.
947         
948 1998-10-17  Hrvoje Niksic  <hniksic@srce.hr>
949
950         * http.c (http_process_type): Removed needless strdup(), a memory
951         leak.
952
953 1998-09-25  Hrvoje Niksic  <hniksic@srce.hr>
954
955         * html.c (htmlfindurl): Set PH to the first occurrence of `#'.
956
957 1998-09-25  Simon Munton  <simonm@m4data.co.uk>
958
959         * init.c (wgetrc_file_name): Don't free HOME under Windows.
960
961 1998-12-01  "R. K. Owen"  <rkowen@Nersc.GOV>
962
963         * host.c (store_hostaddress): Fix for big endian 64-bit machines.
964
965 1998-12-01  Hrvoje Niksic  <hniksic@srce.hr>
966
967         * url.c (UNSAFE_CHAR): New macro.
968         (contains_unsafe): Use it.
969         (encode_string): Ditto.
970
971 1998-12-01  Hrvoje Niksic  <hniksic@srce.hr>
972
973         * main.c (i18n_initialize): Use LC_MESSAGES only if available.
974
975 2000-03-31  Hrvoje Niksic  <hniksic@srce.hr>
976
977         * Use TOUPPER/TOLOWER.
978
979 1998-12-22  Alexander V. Lukyanov  <lav@yars.free.net>
980
981         * ftp-opie.c (btoe): Zero-terminate OSTORE.
982
983 2000-03-21  Hrvoje Niksic  <hniksic@iskon.hr>
984
985         * wget.h (DO_REALLOC_FROM_ALLOCA): Ditto.
986
987         * sysdep.h (ISALNUM): New macro.
988         (TOLOWER): Ditto.
989         (TOUPPER): Ditto.
990
991 2000-03-10  Dan Harkless  <wget@harkless.org>
992
993         * html.c (idmatch): Implemented checking of my new --follow-tags
994         and --ignore-tags options.
995         
996         * init.c (commands): Added comment reminding people adding new
997         entries doing allocation to add corresponding freeing in cleanup().
998         (commands): Added new followtags and ignoretags commands.
999         (cleanup): Free storage for new followtags and ignoretags.
1000         
1001         * main.c: Use of "comma-separated list" was random -- normalized
1002         it.  Did some alphabetization.  Added comments pointing out
1003         "Options without arguments" and "Options accepting an argument"
1004         sections of long_options[].  Added new options --follow-tags and
1005         -G / --ignore-tags.  Added comment that Damir's --referer is
1006         currently undocumented.  Added comment that Heiko's --waitretry is
1007         partially undocumented (mentioned in --help but not in
1008         wget.texi).  Moved improperly sorted 24, 129, and 'G' cases.
1009         
1010         * options.h (struct options): Added new fields follow_tags and
1011         ignore_tags. 
1012         
1013         * wget.h: Added "#define EQ 0" so we can say "strcmp(a, b) == EQ".
1014         
1015 2000-03-02  Dan Harkless  <wget@harkless.org>
1016
1017         * ftp.c (ftp_loop_internal): Heiko introduced "suggest explicit
1018         braces to avoid ambiguous `else'" warnings.  Eliminated them.
1019         
1020         * http.c (gethttp): Dan Berger's query string patch is totally
1021         bogus.  If you have two different URLs, gen_page.cgi?page1 and
1022         get_page.cgi?page2, they'll both be saved as get_page.cgi and the
1023         second will overwrite the first.  Also, parameters to implicit
1024         CGIs, like "http://www.host.com/db/?2000-03-02" cause the URLs to
1025         be printed with trailing garbage characters, and could seg fault.
1026         Backing out the patch, which Dan B. informed me by email was just
1027         a kludge to download StarOffice from Sun made necessary due to
1028         wget's unconditional escaping of certain characters (room for an
1029         option there?).
1030         (http_loop): Heiko introduced "suggest explicit braces to avoid
1031         ambiguous `else'" warnings.  Eliminated them.
1032         
1033         * main.c: Heiko's --wait / --waitretry backwards compatibility
1034         code looks to have been totally untested -- automatic variable
1035         'wr' was used without being initialized, and a long int was passed
1036         into setval()'s char* val parameter.
1037         
1038         * recur.c (parse_robots): Applied Edward J. Sabol
1039         <sabol@alderaan.gsfc.nasa.gov>'s patch for Guan Yang's reported
1040         problem with "User-agent:<space>*<space>" lines in robots.txt.
1041         
1042         * url.c (parseurl, str_url): Removing Dan Berger's code (see
1043         http.c above for explanation).
1044         
1045 1999-08-25  Heiko Herold  <Heiko.Herold@previnet.it>
1046
1047         * ftp.c: Respect new option waitretry.
1048
1049 2000-01-30  Damir Dzeko  <ddzeko@zesoi.fer.hr>
1050
1051         * http.c (gethttp): Send custom Referer, if required.
1052
1053 1999-09-24  Charles G Waldman  <cgw@fnal.gov>
1054
1055         * netrc.c (parse_netrc): Allow passwords to contain spaces.
1056
1057         * netrc.c (parse_netrc): New function.
1058
1059 1999-09-17  Dan Berger  <dberger@ix.netcom.com>
1060
1061         * http.c (gethttp): Send it.
1062
1063         * url.c (parseurl): Detect query string in HTTP URL-s.
1064         (str_url): Print it.
1065
1066 2000-03-02  HIROSE Masaaki  <hirose31@t3.rim.or.jp>
1067
1068         * html.c (html_allow): Add <link href=...> and <script src=...>.
1069
1070 1999-05-02  andrew deryabin  <djsf@softhome.net>
1071
1072         * http.c (gethttp): Specify port in `Host' header only if it's
1073         different from 80.
1074
1075 1998-11-03  Edward J. Sabol  <sabol@alderaan.gsfc.nasa.gov>
1076
1077         * recur.c (recursive_retrieve): If a finite maximum depth is
1078         specified, and we're are already at that depth, don't download the
1079         HTML file for parsing.
1080
1081 2000-03-01  Dan Harkless  <wget@harkless.org>
1082
1083         * ftp.c (ftp_loop_internal): Call new downloaded_file() function,
1084         even though we don't do conversion on HTML files retrieved via
1085         FTP, so _current_ usage of downloaded_file() makes this call unneeded. 
1086         (ftp_retrieve_list): Added a comment saying where we need to
1087         stat() a .orig file if FTP'd HTML file conversion is ever implemented.
1088         (ftp_retrieve_list): "Local file '%s' is more recent," is sometimes
1089         a lie -- reworded as "Server file no newer than local file '%s' --".
1090         
1091         * http.c (http_loop): Fixed a typo and clarified a comment.
1092         (http_loop): When -K and -N are specified together, compare size
1093         and timestamp of server file X against local file X.orig (if
1094         extant) rather than converted local file X.
1095         (http_loop): "Local file '%s' is more recent," is sometimes a lie
1096         -- reworded as "Server file no newer than local file '%s' --".
1097         (http_loop): Call new downloaded_file() function to prevent
1098         wrongful overwriting of .orig file when -N is specified.
1099         
1100         * url.c (convert_links): When -K specified, only rename X to
1101         X.orig if downloaded_file() returns TRUE.  Otherwise when we skip
1102         file X due to -N, we clobber an X.orig from a previous invocation.
1103         (convert_links): Call the failsafe xstrdup(), not the real strdup().
1104         (convert_links): Added a note asking anyone who understands how
1105         multiple URLs can correspond to a single file to comment it.
1106         (downloaded_file): Added this new function.
1107         
1108         * url.h (downloaded_file): Added prototype for this new function
1109         as well as its downloaded_file_t enum type.
1110
1111         * wget.h (boolean): Added this new typedef and TRUE and FALSE #defines.
1112
1113 2000-02-29  Dan Harkless  <wget@harkless.org>
1114
1115         * version.c: Upped version to developer-only "1.5.3+dev".
1116
1117 2000-02-18  Dan Harkless  <wget@harkless.org>
1118
1119         * init.c (backup_converted): Added this new option.
1120
1121         * main.c (-K / --backup-converted): Added this new option.
1122
1123         * options.h (backup_converted): Added this new option.
1124
1125         * url.c (convert_links): When backup_converted is specified, save
1126         file X as X.orig before converting.
1127
1128         * url.h (urlpos): Fixed typo -- said "Rekative" instead of "Relative".
1129
1130 1998-09-21  Hrvoje Niksic  <hniksic@srce.hr>
1131
1132         * version.c: Wget 1.5.3 is released.
1133
1134 1998-09-21  Hrvoje Niksic  <hniksic@srce.hr>
1135
1136         * host.c (ftp_getaddress): Don't warn when reverse-lookup of local 
1137         address doesn't yield FQDN.
1138
1139 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1140
1141         * cmpt.c (strerror): Fix declaration of sys_errlist.
1142
1143 1998-09-11  Hrvoje Niksic  <hniksic@srce.hr>
1144
1145         * main.c (main): Don't use an array subscript as the first
1146         argument to STRDUP_ALLOCA.
1147         From Kaveh R. Ghazi.
1148
1149 1998-09-11  Szakacsits Szabolcs  <szaka@sienet.hu>
1150
1151         * html.c (htmlfindurl): Download table background.
1152
1153 1998-09-11  Hans Grobler  <grobh@conde.ee.sun.ac.za>
1154
1155         * init.c (parse_line): Would free *com before allocating it.
1156         (parse_line): Would free com instead of *com.
1157
1158 1998-09-10  Howard Gayle  <howard@fjst.com>
1159
1160         * url.c (get_urls_html): Would drop the last character of the
1161         link.
1162
1163 1998-09-10  Hrvoje Niksic  <hniksic@srce.hr>
1164
1165         * http.c (http_loop): Don't print status code if quiet.
1166
1167 1998-09-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1168
1169         * log.c: Use <stdarg.h> only when __STDC__.
1170
1171 1998-09-10  Adam D. Moss  <adam@foxbox.org>
1172
1173         * html.c (htmlfindurl): Download <layer src=...>.
1174
1175 1998-09-10  Howard Gayle  <howard@fjst.com>
1176
1177         * ftp.c (ftp_retrieve_list): Don't update the time stamp of a file 
1178         not retrieved.
1179
1180 1998-06-27  Hrvoje Niksic  <hniksic@srce.hr>
1181
1182         * utils.c: Include <libc.h> on NeXT.
1183
1184 1998-06-26  Heinz Salzmann  <heinz.salzmann@intermetall.de>
1185
1186         * url.c (get_urls_html): Fix calculation of URL position.
1187
1188 1998-06-23  Hrvoje Niksic  <hniksic@srce.hr>
1189
1190         * version.c: Wget 1.5.2 is released.
1191
1192 1998-06-23  Dave Love  <d.love@dl.ac.uk>
1193
1194         * ftp.c, init.c, netrc.c: Include errno.h.
1195
1196         * http.c: Include errno.h and time header.
1197
1198         * Makefile.in (exext): Define.
1199         (install.bin, uninstall.bin): Use it.
1200
1201 1998-06-21  Hrvoje Niksic  <hniksic@srce.hr>
1202
1203         * http.c (http_loop): Don't attempt to compare local and remote
1204         sizes if the remote size is unknown.
1205
1206 1998-06-16  Hrvoje Niksic  <hniksic@srce.hr>
1207
1208         * url.c (get_urls_html): Use malloc() instead of alloca in the
1209         loop.
1210
1211 1998-06-13  Hrvoje Niksic  <hniksic@srce.hr>
1212
1213         * version.c: Wget 1.5.2-b4 is released.
1214
1215 1998-06-13  Hrvoje Niksic  <hniksic@srce.hr>
1216
1217         * url.c (get_urls_html): Ignore spaces before and after the URI.
1218
1219 1998-06-08  Wanderlei Antonio Cavassin  <cavassin@conectiva.com.br>
1220
1221         * ftp.c (getftp): Translate `done'.
1222
1223 1998-06-06  Hrvoje Niksic  <hniksic@srce.hr>
1224
1225         * version.c: Wget 1.5.2-b3 is released.
1226
1227 1998-06-06  Alexander Kourakos  <awk@bnt.com>
1228
1229         * init.c (cleanup): Close dfp, don't free it.
1230
1231 1998-06-06  Hrvoje Niksic  <hniksic@srce.hr>
1232
1233         * utils.c (make_directory): Twiddle.
1234
1235         * config.h.in: Added template for access().
1236
1237 1998-06-05  Mathieu Guillaume  <mat@cythere.com>
1238
1239         * html.c (htmlfindurl): Download <input src=...>
1240
1241 1998-06-03  Hrvoje Niksic  <hniksic@srce.hr>
1242
1243         * utils.c (file_exists_p): Use access() with two arguments.
1244
1245 1998-05-27  Martin Kraemer  <Martin.Kraemer@mch.sni.de>
1246
1247         * netrc.c (parse_netrc): Correct logic.
1248
1249 1998-05-27  Hrvoje Niksic  <hniksic@srce.hr>
1250
1251         * ftp.c (getftp): Added `break'; suggested by Lin Zhe Min
1252         <ljm@ljm.wownet.net>.
1253
1254 1998-05-24  Hrvoje Niksic  <hniksic@srce.hr>
1255
1256         * version.c: Wget 1.5.2-b2 is released.
1257
1258 1998-05-18  Juan Jose Rodriguez  <jcnsoft@jal1.telmex.net.mx>
1259
1260         * mswindows.h: Don't translate mkdir to _mkdir under Borland.
1261
1262 1998-05-17  Hrvoje Niksic  <hniksic@srce.hr>
1263
1264         * retr.c (elapsed_time): Return correct value when
1265         HAVE_GETTIMEOFDAY is undefined.
1266
1267 1998-05-13  Hrvoje Niksic  <hniksic@srce.hr>
1268
1269         * version.c: Wget 1.5.2-b1 is released.
1270
1271 1998-05-08  Hrvoje Niksic  <hniksic@srce.hr>
1272
1273         * getopt.c (_getopt_internal): Use exec_name instead of argv[0].
1274         (_getopt_internal): Don't translate `#if 0'-ed strings.
1275
1276 1998-05-06  Douglas E. Wegscheid  <wegscd@whirlpool.com>
1277
1278         * mswindows.c (ws_handler): Use fork_to_background().
1279
1280 1998-05-05  Hrvoje Niksic  <hniksic@srce.hr>
1281
1282         * version.c: Wget 1.5.1 is released.
1283
1284 1998-05-05  Hrvoje Niksic  <hniksic@srce.hr>
1285
1286         * http.c (parse_http_status_line): Avoid `minor' and `major'
1287         names.
1288
1289 1998-05-02  Hrvoje Niksic  <hniksic@srce.hr>
1290
1291         * utils.c (mkdirhier): Renamed to make_directory.
1292
1293 1998-05-01  Hrvoje Niksic  <hniksic@srce.hr>
1294
1295         * mswindows.c (fork_to_background): Define under Windows.
1296
1297         * utils.c (fork_to_background): New function.
1298
1299         * html.c (htmlfindurl): Removed rerdundant casts.
1300
1301 1998-05-01  Douglas E. Wegscheid  <wegscd@whirlpool.com>
1302
1303         * mswindows.c (ws_mypath): Cache the path.
1304
1305 1998-04-30  Douglas E. Wegscheid  <wegscd@whirlpool.com>
1306
1307         * ftp.h: Prefix enum ftype members with FT_.
1308
1309         * ftp-ls.c, ftp.c, html.h: Adjust accordingly.
1310
1311         * mswindows.h: Use stat under Borland, _stat under MSVC.
1312
1313 1998-04-28  Hrvoje Niksic  <hniksic@srce.hr>
1314
1315         * http.c (known_authentication_scheme_p): New function.
1316         (gethttp): Handle authorization more correctly.
1317
1318         * ftp-basic.h: Removed.
1319
1320         * cmpt.h: Removed.
1321
1322         * utils.c: Include <unistd.h> before <pwd.h>; needed under SunOS
1323         with gcc 2.8.
1324         (numdigit): Use `while' loop.
1325
1326         * http.c (create_authorization_line): Detect authentication
1327         schemes case-insensitively.
1328
1329         * http.c (extract_header_attr): Use strdupdelim().
1330         (digest_authentication_encode): Move declaration of local
1331         variables to smaller scope.
1332         (digest_authentication_encode): Reset REALM, OPAQUE and NONCE.
1333         (create_authorization_line): Detect authentication schemes
1334         case-insensitively.
1335
1336         * utils.c (touch): Constify.
1337
1338         * http.c (gethttp): Report a nicer error when no data is received.
1339
1340         * rbuf.h (RBUF_READCHAR): Ditto.
1341
1342         * ftp-basic.c (ftp_response): Use sizeof.
1343
1344 1998-04-27  Hrvoje Niksic  <hniksic@srce.hr>
1345
1346         * retr.c (print_percentage): EXPECTED is long, not int.
1347         (print_percentage): Use floating-point arithmetic to avoid
1348         overflow with large files' sizes multiplied with 100.
1349
1350 1998-04-27  Gregor Hoffleit  <flight@mathi.uni-heidelberg.de>
1351
1352         * config.h.in: Added pid_t stub.
1353
1354         * sysdep.h (S_ISREG): Moved here from mswindows.h (NeXT doesn't
1355         define it).
1356
1357 1998-04-20  Hrvoje Niksic  <hniksic@srce.hr>
1358
1359         * version.c: Wget 1.5.0 is released.
1360
1361 1998-04-18  Hrvoje Niksic  <hniksic@srce.hr>
1362
1363         * url.c (str_url): Ditto.
1364
1365         * ftp-basic.c (ftp_rest): Use new name.
1366
1367         * utils.c (long_to_string): Renamed from prnum().
1368
1369 1998-04-16  Hrvoje Niksic  <hniksic@srce.hr>
1370
1371         * version.c: Wget 1.5-b17 is released.
1372
1373 1998-04-08  Hrvoje Niksic  <hniksic@srce.hr>
1374
1375         * headers.c (header_get): New argument FLAGS.
1376
1377         * http.c (gethttp): If request is malformed, bail out of the
1378         header loop.
1379         (gethttp): Check for empty header *after* the status line checks.
1380         (gethttp): Disallow continuations for status line.
1381
1382 1998-04-08  Hrvoje Niksic  <hniksic@srce.hr>
1383
1384         * version.c: Wget 1.5-b16 is released.
1385
1386 1998-04-08  Hrvoje Niksic  <hniksic@srce.hr>
1387
1388         * init.c (commands): Renamed `always_rest' to `continue'.
1389
1390 1998-04-05  Hrvoje Niksic  <hniksic@srce.hr>
1391
1392         * all: Use it.
1393
1394         * log.c (logputs): New argument.
1395         (logvprintf): Ditto.
1396         (logprintf): Ditto.
1397
1398 1998-04-04  Hrvoje Niksic  <hniksic@srce.hr>
1399
1400         * http.c (http_atotm): Update comment.
1401
1402         * main.c (i18n_initialize): Set LC_MESSAGES, not LC_ALL.
1403
1404         * wget.h: Renamed ENABLED_NLS to HAVE_NLS.
1405
1406         * main.c (i18n_initialize): New function.
1407         (main): Use it.
1408
1409         * log.c: Include <unistd.h>.
1410
1411         * retr.c (show_progress): Cast alloca to char *.
1412
1413 1998-04-04  Hrvoje Niksic  <hniksic@srce.hr>
1414
1415         * version.c: Wget 1.5-b15 is released.
1416
1417 1998-04-04  Hrvoje Niksic  <hniksic@srce.hr>
1418
1419         * utils.h: Declare file_non_directory_p().
1420
1421 1998-04-03  Hrvoje Niksic  <hniksic@srce.hr>
1422
1423         * main.c (main): It's `tries', not `numtries' now.
1424
1425 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
1426
1427         * init.c (getperms): Removed.
1428
1429 1998-04-01  Tim Charron  <tcharron@interlog.com>
1430
1431         * log.c (logvprintf): Don't use ARGS twice.
1432
1433 1998-04-01  John  <john@futuresguide.com>
1434
1435         * mswindows.c: Cleaned up.
1436
1437 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
1438
1439         * version.c: Wget 1.5-b14 is released.
1440
1441 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
1442
1443         * ftp-opie.c (STRLEN4): New macro.
1444         (btoe): Use it.
1445
1446 1998-04-01  Junio Hamano  <junio@twinsun.com>
1447
1448         * http.c: Document all the Digest functions.
1449
1450 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
1451
1452         * utils.c (file_non_directory_p): Renamed from isfile().
1453
1454         * mswindows.h (S_ISREG): New macro, suggested by Tim Adam.
1455
1456 1998-03-31  Hrvoje Niksic  <hniksic@srce.hr>
1457
1458         * utils.c (mkdirhier): Use 0777 instead of opt.dirmode.
1459
1460         * init.c (cmd_spec_dotstyle): Use 48 dots per line for binary
1461         style.
1462         (cmd_permissions): Removed.
1463
1464         * config.h.in: Add template for WORDS_BIGENDIAN.
1465
1466 1998-03-31  Junio Hamano  <junio@twinsun.com>
1467
1468         * http.c (HEXD2asc): New macro.
1469         (dump_hash): Use it.
1470
1471 1998-03-31  Hrvoje Niksic  <hniksic@srce.hr>
1472
1473         * version.c: Wget 1.5-b13 is released.
1474
1475 1998-03-31  Hrvoje Niksic  <hniksic@srce.hr>
1476
1477         * main.c (main): Don't try to use `com'.
1478
1479 1998-03-30  Hrvoje Niksic  <hniksic@srce.hr>
1480
1481         * init.c (cmd_permissions): New function.
1482
1483 1998-03-30  Hrvoje Niksic  <hniksic@srce.hr>
1484
1485         * version.c: Wget 1.5-b12 is released.
1486
1487 1998-03-30  Hrvoje Niksic  <hniksic@srce.hr>
1488
1489         * init.c (commands): Renamed `numtries' to `tries'.
1490         (cmd_spec_debug): Removed.
1491         (home_dir): Under Windows, return `C:\' if HOME is undefined.
1492
1493 1998-03-29  Hrvoje Niksic  <hniksic@srce.hr>
1494
1495         * config.h.in: Define _XOPEN_SOURCE.
1496
1497         * init.c (check_user_specified_header): New function.
1498         (cmd_spec_header): Use it.
1499         (cmd_spec_useragent): New function.
1500
1501 1998-03-29  Hrvoje Niksic  <hniksic@srce.hr>
1502
1503         * version.c: Wget 1.5-b11 is released.
1504
1505 1998-03-28  Hrvoje Niksic  <hniksic@srce.hr>
1506
1507         * wget.h: Include <libintl.h> only if NLS is enabled.
1508
1509 1998-03-26  Hrvoje Niksic  <hniksic@srce.hr>
1510
1511         * options.h (struct options): Made `wait' a long.
1512         (struct options): Ditto for `timeout'.
1513
1514 1998-03-19  Hrvoje Niksic  <hniksic@srce.hr>
1515
1516         * utils.c (exists): Renamed to file_exists_p.
1517         (file_exists_p): Use access() if available.
1518
1519 1998-03-17  Hrvoje Niksic  <hniksic@srce.hr>
1520
1521         * utils.c (memfatal): Set save_log_p to 0 to avoid potential
1522         infloop.
1523
1524         * log.c: do_logging -> save_log_p.
1525
1526         * config.h.in: Added template for HAVE_VSNPRINTF.
1527
1528 1998-03-16  Hrvoje Niksic  <hniksic@srce.hr>
1529
1530         * init.c: Ditto.
1531
1532         * http.c: Protect declaration against non-ANSI compiler.
1533
1534         * log.c (logvprintf): Use vsnprintf() if available.
1535
1536         * getopt.c (main): Don't translate test stuff.
1537
1538 1998-03-16  Hrvoje Niksic  <hniksic@srce.hr>
1539
1540         * version.c: Wget 1.5-b10 is released.
1541
1542 1998-03-11  Hrvoje Niksic  <hniksic@srce.hr>
1543
1544         * ftp.c (getftp): Don't translate "CWD %s".
1545
1546         * wget.h (GCC_FORMAT_ATTR): Renamed from FORMAT_ATTR.
1547
1548 1998-03-07  Hrvoje Niksic  <hniksic@srce.hr>
1549
1550         * ftp-opie.c (btoe): Use memcpy() instead of strncat().
1551
1552         * log.c (logputs): New function.
1553         (logvprintf): Renamed from vlogmsg; use logputs().
1554
1555         * retr.c (show_progress): Print `[100%]' when the retrieval is
1556         finished.
1557
1558         * init.c (run_wgetrc): Use FILE, not PATH.
1559         (wgetrc_file_name): Ditto.
1560
1561 1998-03-07  Tim Adam  <tma@osa.com.au>
1562
1563         * recur.c (parse_robots): Correctly reset `entries' on empty
1564         disallow.
1565
1566 1998-03-07  Hrvoje Niksic  <hniksic@srce.hr>
1567
1568         * init.c (cmd_spec_debug): Use cmd_boolean().
1569
1570 1998-02-23  Hrvoje Niksic  <hniksic@srce.hr>
1571
1572         * http.c (gethttp): Create proxy-authorization correctly.
1573
1574 1998-02-22  Hrvoje Niksic  <hniksic@srce.hr>
1575
1576         * md5.c: Ditto.
1577
1578         * getopt.c: Use ANSI function definitions.
1579
1580         * ftp-opie.c: New file.
1581
1582         * options.h: Don't redefine EXTERN.
1583
1584         * init.c: Sort it correctly.
1585
1586 1998-02-22  Hrvoje Niksic  <hniksic@srce.hr>
1587
1588         * version.c: Wget 1.5-b9 is released.
1589
1590 1998-02-22  Hrvoje Niksic  <hniksic@srce.hr>
1591
1592         * recur.c (recursive_retrieve): Reset `first_time'.
1593
1594         * ftp.c (getftp): Added `default' clause to switches of uerr_t.
1595
1596         * rbuf.c (rbuf_peek): Simplified.
1597         (rbuf_flush): Use MINVAL.
1598
1599         * wget.h (MINVAL): Moved from url.h.
1600
1601         * rbuf.h (RBUF_FD): New macro.
1602
1603         * url.c (add_url): Add to the head of the list.
1604
1605         * ftp.c (ftp_retrieve_list): Set the permissions to downloaded
1606         file.
1607         (getftp): Set the default permissions to 0600.
1608
1609 1998-02-21  Hrvoje Niksic  <hniksic@srce.hr>
1610
1611         * url.c (get_urls_html): Ditto.
1612         (convert_links): Ditto.
1613
1614         * recur.c (parse_robots): Ditto.
1615
1616         * html.c (ftp_index): Ditto.
1617
1618         * ftp-ls.c (ftp_parse_unix_ls): Open file as binary.
1619
1620         * init.c (defaults): Initialize `opt' to zero via memset.
1621
1622         * http.c (digest_authentication_encode): goto considered harmful.
1623
1624 1998-02-19  Hrvoje Niksic  <hniksic@srce.hr>
1625
1626         * ftp.c (delelement): Simplify and fix leak.
1627
1628 1998-02-18  Hrvoje Niksic  <hniksic@srce.hr>
1629
1630         * http.c (dump_hash): Use HEXD2ASC instead of home-grown stuff.
1631
1632         * url.h (HEXD2ASC): Removed warning.
1633
1634         * init.c (comind): Use binary search.
1635         (commands): Reorganized.
1636         (setval): Ditto.
1637         (cmd_boolean): New function.
1638         (cmd_number): Ditto.
1639         (cmd_number_inf): Ditto.
1640         (cmd_string): Ditto.
1641         (cmd_vector): Ditto.
1642         (cmd_directory_vector): Ditto.
1643         (cmd_bytes): Ditto.
1644         (cmd_time): Ditto.
1645         (cmd_spec_debug): Ditto.
1646         (cmd_spec_dirmode): Ditto.
1647         (cmd_spec_dirstruct): Ditto.
1648         (cmd_spec_dotstyle): Ditto.
1649         (cmd_spec_header): Ditto.
1650         (cmd_spec_htmlify): Ditto.
1651         (cmd_spec_mirror): Ditto.
1652         (cmd_spec_outputdocument): Ditto.
1653         (cmd_spec_recursive): Ditto.
1654         (settime): Merged with cmd_time().
1655         (setbytes): Merged with cmd_bytes().
1656         (setonoff): Merged with cmd_boolean().
1657         (onoff): Ditto.
1658
1659 1998-02-17  Hrvoje Niksic  <hniksic@srce.hr>
1660
1661         * Makefile.in (distclean): Remove `config.h'.
1662
1663 1998-02-17  Hrvoje Niksic  <hniksic@srce.hr>
1664
1665         * version.c: Wget 1.5-b8 is released.
1666
1667 1998-02-17  Hrvoje Niksic  <hniksic@srce.hr>
1668
1669         * http.c (digest_authentication_encode): New function.
1670         (create_authorization_line): Use it.
1671         (dump_hash): New function.
1672         (digest_authentication_encode): Use it.
1673
1674         * fnmatch.c: Renamed from `mtch.c'.
1675
1676 1998-02-15  Karl Eichwalder  <ke@suse.de>
1677
1678         * main.c (main): Tag "Written by..." string as translatable.
1679
1680 1998-02-15  Hrvoje Niksic  <hniksic@srce.hr>
1681
1682         * wget.h (FREE_MAYBE): New macro.
1683
1684         * http.c (create_authorization_line): Don't use ANSI C string
1685         concatenation feature.
1686         (basic_authentication_encode): Use alloca() for temporary
1687         variables.
1688
1689         * recur.h: Ditto.
1690
1691         * http.c: Ditto.
1692
1693         * headers.h: Ditto.
1694
1695         * ftp-basic.c: Protect declaration against non-ANSI compiler.
1696
1697         * http.c (create_authorization_line): Cast `unsigned char *' to
1698         `char *' for sprintf, to shut up the noisy Digital Unix cc.
1699
1700 1998-02-15  Hrvoje Niksic  <hniksic@srce.hr>
1701
1702         * version.c: Wget 1.5-b7 is released.
1703
1704 1998-02-15  Hrvoje Niksic  <hniksic@srce.hr>
1705
1706         * cmpt.c (strstr): Synched with glibc-2.0.6.
1707
1708         * ftp-basic.c (calculate_skey_response): Ditto.
1709         (calculate_skey_response): Use alloca().
1710
1711         * http.c (create_authorization_line): Work with FSF's version of
1712         md5.c.
1713
1714         * md5.c: New file, from GNU libc.
1715
1716 1998-02-14  Hrvoje Niksic  <hniksic@srce.hr>
1717
1718         * url.h (URL_CLEANSE): Name the temporary variable more carefully.
1719
1720 1998-02-13  Hrvoje Niksic  <hniksic@srce.hr>
1721
1722         * http.c (basic_authentication_encode): New function, instead of
1723         the macro.
1724
1725 1998-02-13  Junio Hamano  <junio@twinsun.com>
1726
1727         * http.c: Add HTTP-DA support.
1728         * ftp-basic.c: Add Opie/S-key support.
1729         * config.h.in, Makefile.in: Add HTTP-DA and Opie/S-key support.
1730         * md5.c, md5.h: New files.
1731
1732 1998-02-13  Hrvoje Niksic  <hniksic@srce.hr>
1733
1734         * http.c (http_process_range): Renamed from hprocrange().
1735         (http_process_range): Parse the whole header.
1736
1737         * headers.c: New file.
1738         (header_process): New function.
1739         (header_get): Renamed from fetch_next_header.
1740
1741         * all: Include utils.h only where necessary.
1742
1743         * wget.h: Declare xmalloc(), xrealloc() and xstrdup() here.
1744
1745         * wget.h: Add provisions for dmalloc.
1746
1747 1998-02-12  Hrvoje Niksic  <hniksic@srce.hr>
1748
1749         * version.c: Wget 1.5-b6 is released.
1750
1751 1998-02-12  Hrvoje Niksic  <hniksic@srce.hr>
1752
1753         * ftp.c (ftp_loop): Determine `filename' more precisely.
1754
1755         * init.c (setval): Don't set `opt.quiet' if output-document is
1756         `-'.
1757
1758         * log.c (log_init): Print to STDERR instead of STDOUT.
1759         (vlogmsg): Use STDERR by default.
1760         (logflush): Ditto.
1761
1762 1998-02-11  Simon Josefsson  <jas@pdc.kth.se>
1763
1764         * host.c: Use addr_in again.
1765
1766 1998-02-08  Karl Eichwalder  <karl@suse.de>
1767
1768         * http.c (gethttp): Fixed typo.
1769
1770 1998-02-08  Hrvoje Niksic  <hniksic@srce.hr>
1771
1772         * version.c: Wget 1.5-b5 is released.
1773
1774 1998-02-08  Hrvoje Niksic  <hniksic@srce.hr>
1775
1776         * retr.c (show_progress): Use it.
1777
1778         * log.c (logflush): New function.
1779
1780         * wget.h: Utilize __attribute__ if on gcc.
1781
1782 1998-02-07  Hrvoje Niksic  <hniksic@srce.hr>
1783
1784         * http.c (base64_encode_line): New argument LENGTH.
1785         (BASIC_AUTHENTICATION_ENCODE): Use it.
1786         (BASIC_AUTHENTICATION_ENCODE): Take length of HEADER into account.
1787
1788         * main.c (main): Fixed fprintf() format mismatch.
1789
1790 1998-02-06  Hrvoje Niksic  <hniksic@srce.hr>
1791
1792         * version.c: Wget 1.5-b4 is released.
1793
1794 1998-02-03  Simon Josefsson  <jas@pdc.kth.se>
1795
1796         * host.c: use sockaddr_in instead of addr_in.
1797
1798 1998-02-04  Hrvoje Niksic  <hniksic@srce.hr>
1799
1800         * init.c (cleanup): Use it.
1801
1802         * recur.c (recursive_cleanup): New function.
1803
1804         * retr.c (retrieve_from_file): Ditto.
1805
1806         * main.c (main): Use it.
1807
1808         * recur.c (recursive_reset): New function.
1809
1810         * retr.c (retrieve_from_file): Ditto.
1811
1812         * main.c (main): Simplify call to recursive_retrieve().
1813
1814         * recur.c (recursive_retrieve): Removed FLAGS argument.
1815
1816         * http.c (gethttp): Changed call to iwrite().
1817
1818 1998-02-03  Hrvoje Niksic  <hniksic@srce.hr>
1819
1820         * url.c (get_urls_html): Ditto.
1821         (free_urlpos): Ditto.
1822         (mkstruct): Ditto.
1823         (construct): Ditto.
1824
1825         * retr.c (retrieve_url): Move declaration of local variables to
1826         smaller scope.
1827
1828         * url.c (urlproto): Use it.
1829         (parseurl): Ditto.
1830         (str_url): Ditto.
1831         (get_urls_html): Ditto.
1832
1833         * utils.h (ARRAY_SIZE): New macro.
1834
1835         * url.c (proto): Moved from url.h.
1836
1837         * url.h (URL_CLEANSE): Reformatted.
1838         (USE_PROXY_P): Renamed from USE_PROXY.
1839
1840         * ftp-basic.c: Adjust to the new interface of iwrite().
1841
1842         * ftp-basic.c (ftp_port): Use alloca().
1843
1844 1998-02-03  Hrvoje Niksic  <hniksic@srce.hr>
1845
1846         * version.c: Wget 1.5-b3 is released.
1847
1848         * host.c (ftp_getaddress): Don't print to stderr directly.
1849
1850         * init.c (setbytes): Support `g' for gigabytes.
1851         (cmdtype): New specification CTIME.
1852         (setval): Use it with settime().
1853         (commands): Use it for WAIT and TIMEOUT.
1854
1855 1998-02-02  Hrvoje Niksic  <hniksic@srce.hr>
1856
1857         * http.c (BASIC_AUTHENTICATION_ENCODE): New macro.
1858         (gethttp): Use it.
1859
1860         * utils.c (unique_name_1): Moved from url.c.
1861         (unique_name): Ditto.
1862
1863         * url.c (url_filename): Ditto.
1864
1865         * log.c (redirect_output): Changed call to unique_name().
1866
1867         * url.c (unique_name_1): Renamed from unique_name().
1868         (unique_name): Changed interface.
1869
1870         * init.c (enum cmdid): Moved from init.h.
1871         (cmdtype): Ditto.
1872         (struct cmd): Ditto.
1873
1874         * main.c (main): Use it.
1875         (main): Moved `--backups' to not have a short option.
1876
1877         * options.h (struct options): New member BACKGROUND.
1878
1879         * main.c (print_help): Rearranged.
1880         (main): New long options for -n* short options: --no-directories,
1881         --no-host-directories, --non-verbose, --no-host-lookup and
1882         --dont-remove-listing.
1883
1884 1998-02-01  Hrvoje Niksic  <hniksic@srce.hr>
1885
1886         * main.c (main): Use log_close().
1887
1888         * log.c: New variable LOGFP.
1889         (vlogmsg): Use it.
1890         (redirect_output): Don't open /dev/null; set LOGFP to stdin
1891         instead.
1892         (log_close): New function.
1893
1894         * options.h (struct options): Removed LFILE.
1895
1896         * log.c (log_enable): Removed.
1897
1898         * main.c (main): Use it.
1899
1900         * log.c (log_init): New function.
1901
1902         * url.c (get_urls_html): Removed needless assignment to BASE.
1903
1904         * host.c (add_hlist): Don't set CMP needlessly.
1905
1906         * utils.c (match_backwards): Ditto.
1907         (in_acclist): Ditto.
1908
1909         * url.c (findurl): Ditto.
1910
1911         * netrc.c (parse_netrc): Ditto.
1912
1913         * log.c (log_dump): Ditto.
1914
1915         * html.c (html_quote_string): Ditto.
1916
1917         * ftp-basic.c (ftp_request): Made static.
1918
1919         * connect.c: Made global variables static.
1920
1921         * url.c (construct): Ditto.
1922
1923         * init.c (init_path): Avoid assignment inside `if'-condition.
1924
1925         * ftp.c: Don't include in.h or winsock.h.
1926
1927         * ftp.c (ftp_loop): Use SZ.
1928
1929         * connect.c (bindport): Cast &addrlen to int *.
1930         (conaddr): Ditto.
1931
1932         * init.c (initialize): Don't use SYSTEM_WGETRC unconditionally.
1933
1934 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
1935
1936         * ftp.c (getftp): Initialize opt.ftp_pass here.
1937         (ftp_retrieve_dirs): Use alloca().
1938
1939         * init.c (defaults): Don't initialize opt.ftp_pass.
1940
1941         * sysdep.h (S_ISLNK): Declare for OS/2; ditto for lstat.
1942         From Ivan F. Martinez <ivanfm@ecodigit.com.br>.
1943
1944 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
1945
1946         * recur.c (parse_robots): Check for comments more correctly.
1947
1948         * host.c (ftp_getaddress): Use STRDUP_ALLOCA.
1949         (ftp_getaddress): Add diagnostics when reverse-lookup yields only
1950         hostname.
1951
1952 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
1953
1954         * version.c: Wget 1.5-b2 is released.
1955
1956         * netrc.c (NETRC_FILE_NAME): Moved from netrc.h.
1957
1958         * utils.c (proclist): Pass FNM_PATHNAME to fnmatch().
1959
1960         * ftp-basic.c (ftp_pasv): Avoid unnecessary casting to unsigned
1961         char.
1962
1963         * log.c: Don't attempt to hide arguments from ansi2knr.
1964
1965         * cmpt.c: Synched strptime() and mktime() with glibc-2.0.6.
1966
1967         * ansi2knr.c: Use a later version, from fileutils-3.16l alpha.
1968
1969         * ftp.c (getftp): Ditto.
1970
1971         * http.c (gethttp): Use it.
1972
1973         * retr.c (get_contents): New argument EXPECTED; pass it to
1974         show_progress().
1975         (show_progress): New argument EXPECTED; use it to display
1976         percentages.
1977
1978         * init.c (setval): Ditto.
1979
1980         * http.c (gethttp): Ditto.
1981         (http_loop): Ditto.
1982
1983         * ftp.c (getftp): Ditto.
1984         (ftp_loop_internal): Ditto.
1985
1986         * ftp-ls.c (ftp_parse_unix_ls): Use abort() instead of assert(0).
1987
1988         * sysdep.h (CLOSE): Simplify; use DEBUGP.
1989
1990         * netrc.c (search_netrc): Use alloca().
1991
1992         * init.c (defaults): Initialize no_flush.
1993
1994         * log.c (vlogmsg): Don't flush if no_flush.
1995
1996         * options.h (struct options): New variable no_flush.
1997
1998         * main.c (main): Don't play games with buffering.
1999
2000         * log.c (vlogmsg): Flush the output after every message.
2001
2002 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
2003
2004         * init.c (parse_line): Ditto.
2005
2006         * url.c (get_urls_html): Ditto.
2007
2008         * main.c (main): Don't cast to unsigned char.
2009
2010         * init.c (run_wgetrc): Don't cast to unsigned char.
2011         (parse_line): Accept char instead of unsigned char.
2012
2013         * html.c (htmlfindurl): Use char instead of unsigned char.
2014
2015         * all: Use them.
2016
2017         * sysdep.h: Add wrappers to ctype macros to make them
2018         eight-bit-clean:
2019
2020 1998-01-30  Hrvoje Niksic  <hniksic@srce.hr>
2021
2022         * html.c (htmlfindurl): Download <img lowsrc=...>
2023
2024         * main.c (main): Ignore SIGPIPE.
2025
2026         * connect.c (select_fd): New argument WRITEP.
2027         (iwrite): Call select_fd().
2028
2029 1997-02-27  Fila Kolodny <fila@ibi.com>
2030
2031         * ftp.c (ftp_retrieve_list): If retrieving symlink and the proper
2032         one already exists, just skip it.
2033
2034 1998-01-30  Hrvoje Niksic  <hniksic@srce.hr>
2035
2036         * http.c (gethttp): Cosmetic changes.
2037
2038         * http.c (check_end): Allow `+D...' instead of `GMT'.
2039         From Fabrizio Pollastri <pollastri@cstv.to.cnr.it>.
2040
2041         * url.c (process_ftp_type): New function.
2042         (parseurl): Use it.
2043
2044         * connect.c (iwrite): Allow writing in a few chunks.
2045         (bindport): Made SRV static, so addr can point to it.
2046         (select_fd): Removed HPUX kludge.
2047
2048         * host.c (free_hlist): Incorporated into clean_hosts().
2049
2050 1998-01-29  Hrvoje Niksic  <hniksic@srce.hr>
2051
2052         * host.c (hlist): Made static.
2053         (search_address): Cosmetic change.
2054
2055 1998-01-29  Hrvoje Niksic  <hniksic@srce.hr>
2056
2057         * version.c: Wget v1.5-b1 is released.
2058
2059         * http.c (hgetlen): Use sizeof() to get the header length.
2060         (hgetrange): Ditto.
2061         (hgettype): Ditto.
2062         (hgetlocation): Ditto.
2063         (hgetmodified): Ditto.
2064         (haccepts_none): Ditto.
2065
2066         * main.c (main): Updated `--version' and `--help' output, as per
2067         Francois Pinard's suggestions.
2068
2069         * main.c: Include locale.h; call setlocale(), bindtextdomain() and 
2070         textdomain().
2071
2072         * config.h.in: Define stubs for I18N3.
2073
2074         * wget.h: Include libintl.h.
2075
2076 1998-01-28  Hrvoje Niksic  <hniksic@srce.hr>
2077
2078         * url.c (mkstruct): Check for opt.cut_dirs.
2079         (mkstruct): alloca()-te more, xmalloc() less.
2080
2081         * utils.c (load_file): Check for ferror().
2082
2083         * url.c (get_urls_file): Close only the files we opened.
2084         (get_urls_html): Ditto.
2085         (count_slashes): New function.
2086
2087         * http.h: Removed.
2088
2089         * http.c (gethttp): Respect username and password provided by
2090         proxy URL.
2091         (base64_encode_line): Write into an existing buffer instead of
2092         malloc-ing a new one.
2093         (struct http_stat): Moved from http.h
2094
2095         * retr.c (retrieve_url): Free SUF.
2096
2097         * all: Removed lots of unnecessary .h dependencies.
2098
2099         * html.c (global_state): Made static.
2100
2101         * utils.h (ALLOCA_ARRAY): New macro.
2102
2103         * main.c (main): New option `--cut-dirs'.
2104
2105         * url.c (construct): Use alloca() for T.
2106
2107         * utils.c (mkdirhier): Use STRDUP_ALLOCA.
2108
2109         * host.c (_host_t): Moved from host.h.
2110         (struct host): Renamed from _host_t.
2111         (store_hostaddress): Use STRDUP_ALLOCA for INET_S.
2112         (realhost): Ditto.
2113
2114         * host.h: Don't include url.h.
2115
2116         * ftp.c (LIST_FILENAME): Moved from ftp.h.
2117
2118         * init.c (DEFAULT_FTP_ACCT): Moved from ftp.h.
2119
2120         * main.c (main): Enable log if the output goes to a TTY.
2121
2122         * connect.h: Removed unused constant `BACKLOG'.
2123
2124         * config.h.in: Check for isatty().
2125
2126         * Makefile.in (LINK): Use CFLAGS when linking.
2127
2128 1998-01-27  Hrvoje Niksic  <hniksic@srce.hr>
2129
2130         * mswindows.c (ws_hangup): Use redirect_output().
2131
2132         * main.c (redirect_output_signal): New function; use
2133         redirect_output().
2134
2135         * log.c (redirect_output): New function, based on hangup(), which
2136         is deleted.
2137
2138         * log.c (vlogmsg): New function.
2139
2140         * wget.h (DEBUGP): Use debug_logmsg().
2141
2142         * main.c (hangup): Use it.
2143
2144         * log.c (log_dump): New function.
2145
2146         * utils.h (DO_REALLOC): Use `long' for various sizes.
2147
2148         * http.c (hskip_lws): Use `while', for clarity.
2149         (HTTP_DYNAMIC_LINE_BUFFER): New constant.
2150         (fetch_next_header): Use it instead of DYNAMIC_LINE_BUFFER.
2151
2152         * ftp-basic.c (FTP_DYNAMIC_LINE_BUFFER): New constant.
2153         (ftp_response): Use it instead of DYNAMIC_LINE_BUFFER.
2154
2155         * utils.c (DYNAMIC_LINE_BUFFER): Moved from utils.c.
2156         (LEGIBLE_SEPARATOR): Ditto.
2157         (FILE_BUFFER_SIZE): Ditto.
2158
2159         * retr.c (BUFFER_SIZE): Moved from retr.h.
2160
2161         * log.c: New file.
2162         (logmsg): Moved from utils.c.
2163         (debug_logmsg): New function.
2164
2165         * mswindows.h: Include it here.
2166
2167         * init.c: Ditto.
2168
2169         * utils.c: Don't include <windows.h>.
2170
2171 1998-01-25  Hrvoje Niksic  <hniksic@srce.hr>
2172
2173         * host.c (ftp_getaddress): Ditto.
2174
2175         * main.c (main): Use it.
2176
2177         * utils.h (STRDUP_ALLOCA): New macro.
2178
2179         * init.c: Prepend `wget: ' to error messages printed on stderr.
2180
2181         * utils.c (mkdirhier): Renamed from mymkdir.
2182         (touch): Renamed from my_touch.
2183         (pwd_cuserid): Renamed from my_cuserid().
2184
2185 1998-01-24  Andy Eskilsson  <andy.eskilsson@telelogic.se>
2186
2187         * utils.c (accdir): Process wildcards.
2188         (proclist): New function.
2189         (accdir): Use it to avoid code repetition.
2190
2191 1998-01-24  Hrvoje Niksic  <hniksic@srce.hr>
2192
2193         * recur.c (parse_robots): Respect opt.useragent; use alloca().
2194
2195         * http.c (gethttp): Construct useragent accordingly.
2196
2197         * version.c: Changed version string to numbers-only.
2198
2199         * main.c (print_help): List all the options.
2200
2201         * mswindows.c (windows_main_junk): Initialize argv0 here.
2202
2203 1998-01-24  Karl Heuer  <kwzh@gnu.org>
2204
2205         * netrc.c (search_netrc): Initialize `l' only after processing
2206         netrc.
2207
2208         * main.c (main): Don't trap SIGHUP if it's being ignored.
2209
2210 1998-01-24  Hrvoje Niksic  <hniksic@srce.hr>
2211
2212         * all: Use logmsg().
2213
2214         * utils.c (time_str): Moved from retr.c.
2215         (logmsg): New function.
2216         (logmsg_noflush): Ditto.
2217
2218         * rbuf.c: New file, moved buf_* functions here.
2219
2220         * ftp.c (ftp_expected_bytes): Moved from ftp-basic.c.
2221
2222         * ftp-basic.c (ftp_rest): Use prnum().
2223
2224         * ftp-basic.c: Ditto.
2225
2226         * ftp.c: Use the new reading functions and macros.
2227
2228         * retr.c (buf_initialize): New function.
2229         (buf_initialized_p): Ditto.
2230         (buf_uninitialize): Ditto.
2231         (buf_fd): Ditto.
2232
2233         * http.c (fetch_next_header): Use the BUF_READCHAR macro for
2234         efficiency.
2235         (gethttp): Use alloca() where appropriate.
2236
2237         * retr.c (buf_readchar): Use it.
2238         (buf_peek): Use rstreams.
2239
2240         * retr.h (BUF_READCHAR): New macro.
2241
2242         * init.c (home_dir): Rewritten for clarity.
2243         (init_path): Ditto.
2244
2245         * mswindows.c (ws_backgnd): Made static.
2246         (read_registry): Ditto.
2247         (ws_cleanup): Ditto.
2248         (ws_handler): Ditto.
2249
2250 1998-01-23  Hrvoje Niksic  <hniksic@srce.hr>
2251
2252         * alloca.c: New file.
2253
2254         * Makefile.in (ALLOCA): Define.
2255
2256         * mswindows.c (ws_help): Constify.
2257         (ws_help): Use alloca.
2258
2259         * mswindows.c: Reformat.
2260
2261         * all: Added _(...) annotations for I18N snarfing and translation.
2262
2263         * host.c (ftp_getaddress): Nuke SYSINFO.
2264         (ftp_getaddress): Don't use getdomainname().
2265         (ftp_getaddress): Use uname(), where available.
2266
2267         * http.c (gethttp): Protect a stray fprintf().
2268
2269         * init.c (settime): New function.
2270         (setval): Treat WAIT specially, allowing suffixes like `m' for
2271         minutes, etc.
2272
2273 1998-01-21  Hrvoje Niksic  <hniksic@srce.hr>
2274
2275         * url.c (get_urls_html): Use alloca() for TEMP.
2276
2277 1998-01-21  Jordan Mendelson  <jordy@wserv.com>
2278
2279         * url.c (rotate_backups): New function.
2280
2281         * http.c (gethttp): Ditto.
2282
2283         * ftp.c (getftp): Rotate backups.
2284
2285 1997-12-18  Hrvoje Niksic  <hniksic@srce.hr>
2286
2287         * all: Renamed nmalloc(), nrealloc() and nstrdup() to xmalloc(),
2288         xrealloc() and xstrdup().  Use the new functions.
2289
2290         * url.c (decode_string): Made static.
2291         (has_proto): Ditto.
2292         (parse_dir): Ditto.
2293         (parse_uname): Ditto.
2294         (mkstruct): Ditto.
2295         (construct): Ditto.
2296         (construct_relative): Ditto.
2297
2298         * retr.c (show_progress): Made static.
2299
2300         * recur.c (robots_url): Made static.
2301         (retrieve_robots): Ditto.
2302         (parse_robots): Ditto.
2303         (robots_match): Ditto.
2304
2305         * main.h: Removed.
2306
2307         * main.c (printhelp): Made static.
2308         (hangup): Ditto.
2309
2310         * init.c (comind): Made static.
2311         (defaults): Ditto.
2312         (init_path): Ditto.
2313         (run_wgetrc): Ditto.
2314         (onoff): Ditto.
2315         (setonoff): Ditto.
2316         (setnum): Ditto.
2317         (myatoi): Ditto.
2318         (getperms): Ditto.
2319         (setbytes): Ditto.
2320
2321         * http.c (fetch_next_header): Made static.
2322         (hparsestatline): Ditto.
2323         (hskip_lws): Ditto.
2324         (hgetlen): Ditto.
2325         (hgetrange): Ditto.
2326         (hgettype): Ditto.
2327         (hgetlocation): Ditto.
2328         (hgetmodified): Ditto.
2329         (haccepts_none): Ditto.
2330         (gethttp): Ditto.
2331         (base64_encode_line): Ditto.
2332         (mktime_from_utc): Ditto.
2333         (http_atotm): Ditto.
2334
2335         * html.c (idmatch): Made static.
2336
2337         * host.c (search_host): Made static.
2338         (search_address): Ditto.
2339         (free_hlist): Ditto.
2340
2341         * ftp.c (getftp): Made static.
2342         (ftp_loop_internal): Ditto.
2343         (ftp_get_listing): Ditto.
2344         (ftp_retrieve_list): Ditto.
2345         (ftp_retrieve_dirs): Ditto.
2346         (ftp_retrieve_glob): Ditto.
2347         (freefileinfo): Ditto.
2348         (delelement): Ditto.
2349
2350         * ftp-ls.c (symperms): Made static.
2351         (ftp_parse_unix_ls): Ditto.
2352
2353         * connect.c (select_fd): Made static.
2354
2355         * utils.c (xmalloc): Renamed from nmalloc.
2356         (xrealloc): Renamed from nrealloc.
2357         (xstrdup): Renamed from nstrdup.
2358
2359         * getopt.c (exchange): Use alloca.
2360
2361         * mswindows.c (mycuserid): Use strncpy.
2362
2363         * New files mswindows.c, mswindows.h, sysdep.h.  winjunk.c,
2364         systhings.h, windecl.h and winjunk.h removed.
2365
2366         * mswindows.c (sleep): New function.
2367
2368         * utils.c: Include <windows.h> under Windows.
2369
2370 1997-06-12  Darko Budor  <dbudor@zesoi.fer.hr>
2371
2372         * url.h (URL_UNSAFE): Change default under Windows.
2373
2374         * retr.c (retrieve_from_file): Respect opt.delete_after.
2375
2376         * main.c (main): Call ws_help on Windows.
2377
2378         * winjunk.c (windows_main_junk): New function.
2379
2380         * main.c (main): Junk-process argv[0].
2381
2382         * http.c (mktime_from_utc): Return -1 if mktime failed.
2383
2384         * http.c (http_loop): Ditto.
2385
2386         * ftp.c (ftp_loop_internal): Change title on Windows when using a
2387         new URL.
2388
2389         * winjunk.c (getdomainname): Lots of functions.
2390
2391 1997-06-12  Hrvoje Niksic  <hniksic@srce.hr>
2392
2393         * cmpt.c (strptime_internal): Handle years more correctly for
2394         `%y'.
2395
2396 1997-06-09  Mike Thomas <mthomas@reality.ctron.com>
2397
2398         * http.c (gethttp): Allocate enough space for
2399         `Proxy-Authorization' header.
2400
2401 1997-05-10  Hrvoje Niksic  <hniksic@srce.hr>
2402
2403         * version.c: Wget/1.4.5 is released.
2404
2405 1997-05-10  Hrvoje Niksic  <hniksic@srce.hr>
2406
2407         * retr.c (get_contents): Check return value of fwrite more
2408         carefully.
2409
2410 1997-03-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2411
2412         * cmpt.c (strptime_internal) [case 'Y']: Always subtract 1900 from
2413         year, regardless of century.
2414
2415 1997-03-30  Hrvoje Niksic  <hniksic@srce.hr>
2416
2417         * utils.c (isfile): Use `lstat' instead of `stat'.
2418
2419 1997-03-29  Hrvoje Niksic  <hniksic@srce.hr>
2420
2421         * utils.c (numdigit): Use explicit test.
2422
2423 1997-03-21  Hrvoje Niksic  <hniksic@srce.hr>
2424
2425         * http.c (http_loop): Always use `url_filename' to get u->local.
2426
2427 1997-03-20  Hrvoje Niksic  <hniksic@srce.hr>
2428
2429         * url.c: Recognize https.
2430
2431 1997-03-13  Hrvoje Niksic  <hniksic@srce.hr>
2432
2433         * recur.c (recursive_retrieve): Lowercase just the host name.
2434
2435 1997-03-09  Hrvoje Niksic  <hniksic@srce.hr>
2436
2437         * url.c (get_urls_file): Use the correct test.
2438         (get_urls_html): Ditto.
2439
2440 1997-03-07  Hrvoje Niksic  <hniksic@srce.hr>
2441
2442         * connect.c: Reverted addrlen to int.
2443
2444         * init.c (parse_line): Check for -1 instead of NONE.
2445
2446         * version.c: Changed version to 1.4.5.
2447
2448 1997-02-17  Hrvoje Niksic  <hniksic@srce.hr>
2449
2450         * init.c: New option netrc.
2451         (initialize): Don't parse .netrc.
2452
2453         * cmpt.c (recursive): Return rp.
2454         (strptime_internal): Match the long strings first, the abbreviated
2455         second.
2456
2457 1997-02-16  Hrvoje Niksic  <hniksic@srce.hr>
2458
2459         * http.c (check_end): New function.
2460         (http_atotm): Use it.
2461  
2462 1997-02-13  gilles Cedoc  <gilles@cedocar.fr>
2463
2464         * http.c (gethttp): Use them.
2465
2466         * init.c: New options proxy_user and proxy_passwd.
2467
2468 1997-02-14  Hrvoje Niksic  <hniksic@srce.hr>
2469
2470         * ftp.c (ftp_retrieve_list): Create links even if not relative.
2471
2472 1997-02-10  Hrvoje Niksic  <hniksic@srce.hr>
2473
2474         * recur.c (recursive_retrieve): Lowercase the host name, if the
2475         URL is not "optimized".
2476
2477         * host.c (realhost): Return l->hostname, even if it matches with
2478         host.
2479
2480 1997-02-10  Marin Purgar  <pmc@asgard.hr>
2481
2482         * connect.c: Make addrlen size_t instead of int.
2483         (conaddr): Ditto.
2484
2485 1997-02-09  Gregor Hoffleit  <flight@mathi.uni-heidelberg.DE>
2486
2487         * systhings.h: Define S_ISLNK on NeXT too.
2488
2489 1997-02-09  Hrvoje Niksic  <hniksic@srce.hr>
2490
2491         * version.c: Released 1.4.3.
2492
2493         * url.c: Futher update to list of protostrings.
2494         (skip_proto): Skip `//' correctly for FTP and HTTP.
2495
2496         * url.c (get_urls_html): Handle bogus `http:' things a little
2497         different.
2498
2499         * main.c (main): Removed `follow-ftp' from `f'.
2500         (main): Dumped the `prefix-files' and `file-prefix' options and
2501         features; old and bogus.
2502         (main): Exit on failed setval() in `-e'.
2503
2504         * http.c (fetch_next_header): Use it to detect header continuation
2505         correctly.
2506
2507         * retr.c (buf_peek): New function.
2508
2509 1997-02-08  Hrvoje Niksic  <hniksic@srce.hr>
2510
2511         * wget.h: Include time.h and stuff.
2512
2513 1997-02-08  Roger Beeman  <beeman@cisco.com>
2514
2515         * ftp.c: Include <time.h>
2516
2517 1997-02-07  Hrvoje Niksic  <hniksic@srce.hr>
2518
2519         * url.c (findurl): Would read over buffer limits.
2520
2521 1997-02-06  Hrvoje Niksic  <hniksic@srce.hr>
2522
2523         * ftp-ls.c (ftp_parse_unix_ls): Allow spaces in file names.
2524
2525 1997-02-05  Hrvoje Niksic  <hniksic@srce.hr>
2526
2527         * http.c (http_atotm): Initialize tm.is_dst.
2528
2529 1997-02-02  Hrvoje Niksic  <hniksic@srce.hr>
2530
2531         * http.c (gethttp): Don't print the number of retrieved headers.
2532
2533         * main.c (main): New option `--no-clobber', alias for `-nc'.
2534
2535         * url.c: Recognize `https://'.
2536
2537 1997-02-01  Hrvoje Niksic  <hniksic@srce.hr>
2538
2539         * host.c (herrmsg): Don't use h_errno.
2540
2541 1997-01-30  Hrvoje Niksic  <hniksic@srce.hr>
2542
2543         * host.c (accept_domain): Use it.
2544
2545         * main.c (main): New option `--exclude-domains'.
2546
2547         * retr.c (retrieve_url): Use it.
2548         (retrieve_url): Bail out when an URL is redirecting to itself.
2549
2550         * url.c (url_equal): New function.
2551
2552 1997-01-29  Hrvoje Niksic  <hniksic@srce.hr>
2553
2554         * connect.c: Include arpa/inet.h instead of arpa/nameser.h.
2555
2556         * http.c (mk_utc_time): New function.
2557         (http_atotm): Use it; handle time zones correctly.
2558
2559 1997-01-28  Hrvoje Niksic  <hniksic@srce.hr>
2560
2561         * http.c: Ditto.
2562
2563         * ftp-basic.c: Use it instead of WRITE.
2564
2565         * connect.c (iwrite): New function.
2566
2567 1997-01-27  Hrvoje Niksic  <hniksic@srce.hr>
2568
2569         * cmpt.c (mktime): New function.
2570
2571         * netrc.c: Include <sys/types.h>.
2572
2573         * main.c (main): Wouldn't recognize --spider.
2574
2575         * retr.c (rate): Use `B', `KB' and `MB'.
2576         (reset_timer,elapsed_time): Moved from utils.c.
2577
2578         * ftp.c (ftp_retrieve_list): Ditto.
2579
2580         * http.c (http_loop): Don't touch the file if opt.dfp.
2581
2582 1997-01-24  Hrvoje Niksic  <hniksic@srce.hr>
2583
2584         * cmpt.c: New file.
2585
2586         * ftp.c (ftp_retrieve_glob): New argument semantics.
2587         (ftp_retrieve_dirs): Use it.
2588         (ftp_loop): Ditto.
2589
2590         * html.c (htmlfindurl): Recognize `'' as the quote char.
2591
2592 1997-01-23  Hrvoje Niksic  <hniksic@srce.hr>
2593
2594         * ftp.c (ftp_loop_internal): Use it.
2595
2596         * utils.c (remove_link): New function.
2597
2598 1997-01-22  Hrvoje Niksic  <hniksic@srce.hr>
2599
2600         * retr.c (retrieve_url): Require STRICT redirection URL.
2601
2602         * url.c (parseurl): New argument STRICT.
2603
2604         * http.c (hparsestatline): Be a little-bit less strict about
2605         status line format.
2606
2607 1997-01-21  Hrvoje Niksic  <hniksic@srce.hr>
2608
2609         * http.c (gethttp): Use it.
2610
2611         * main.c (main): Don't use '<digit>' as options.
2612
2613         * init.c: New option ignore_length.
2614
2615         * http.c (gethttp): Ditto.
2616         (http_loop): Check for redirection without Location:.
2617         (gethttp): Don't print Length unless RETROKF.
2618
2619         * ftp.c (getftp): Use it.
2620
2621         * url.c (mkalldirs): New function.
2622
2623         * utils.c (mymkdir): Don't check for existing non-directory.
2624
2625         * url.c (mkstruct): Don't create the directory.
2626
2627 1997-01-20  Hrvoje Niksic  <hniksic@srce.hr>
2628
2629         * init.c (setval): Removed NO_RECURSION checks.
2630
2631 1997-01-19  Hrvoje Niksic  <hniksic@srce.hr>
2632
2633         * version.c: "Released" 1.4.3-pre2.
2634
2635         * recur.c (recursive_retrieve): Bypass host checking only if URL
2636         is ftp AND parent URL is not ftp.
2637
2638         * ftp-basic.c (ftp_request): Print out Turtle Power.
2639
2640         * ftp.c (ftp_loop): Call ftp_retrieve_glob with 0 if there's no
2641         wildcard.
2642         (ftp_retrieve_glob): Call ftp_loop_internal even on empty list, if
2643         not glob.
2644
2645         * http.c (gethttp): Be a little bit smarter about status codes.
2646
2647         * recur.c (recursive_retrieve): Always reset opt.recursive when
2648         dealing with FTP.
2649
2650 1997-01-18  Hrvoje Niksic  <hniksic@srce.hr>
2651
2652         * retr.c (retrieve_url): New variable location_changed; use it for
2653         tests instead of mynewloc.
2654         (retrieve_url): Allow heuristic adding of html.
2655
2656         * url.c (url_filename): Don't use the `%' in Windows file names.
2657
2658         * http.c (http_loop): Always time-stamp the local file.
2659
2660         * http.c (http_loop): Ditto.
2661
2662         * ftp.c (ftp_retrieve_list): Use it.
2663
2664         * utils.c (my_touch): New function.
2665
2666         * ftp.c (ftp_retrieve_list): Use #ifdef HAVE_STRUCT_UTIMBUF
2667         instead of #ifndef NeXT.
2668
2669         * utils.c (strptime): New version, by Ulrich Drepper.
2670
2671 1997-01-17  Hrvoje Niksic  <hniksic@srce.hr>
2672
2673         * http.c (haccepts_none): Renamed from `haccepts_bytes'.
2674         (gethttp): If haccepts_none(), disable ACCEPTRANGES.
2675         (http_loop): Would remove ACCEPTRANGES.
2676
2677         * ftp.c (getftp): Call ftp_list with NULL.
2678
2679 1997-01-15  Hrvoje Niksic  <hniksic@srce.hr>
2680
2681         * html.c (ftp_index): Don't print minutes and seconds if we don't
2682         know them; beautify the output.
2683
2684         * ftp.c (getftp): Don't close the socket on FTPNSFOD.
2685
2686 1997-01-14  Hrvoje Niksic  <hniksic@srce.hr>
2687
2688         * utils.c (strptime): New function.
2689         (strptime): Don't use get_alt_number.
2690         (strptime): Don't use locale.
2691         (match_string): Made it a function.
2692
2693 1997-01-12  Hrvoje Niksic  <hniksic@srce.hr>
2694
2695         * http.c (http_atotm): New function.
2696         (http_loop): Use it.
2697
2698         * atotm.c: Removed from the distribution.
2699
2700         * http.c (base64_encode_line): Rewrite.
2701
2702 1997-01-09  Hrvoje Niksic  <hniksic@srce.hr>
2703
2704         * ftp.c (getftp): Use ftp_expected_bytes; print size.
2705
2706         * ftp-basic.c (ftp_response): Use ftp_last_respline.
2707         (ftp_expected_bytes): New function.
2708
2709         * ftp.c (getftp): Print the unauthoritative file length.
2710
2711         * ftp-ls.c: Renamed from ftp-unix.c.
2712         (ftp_parse_ls): Moved from ftp.c.
2713         (ftp_parse_unix_ls): Recognize seconds in time spec.
2714         (ftp_parse_unix_ls): Recognize year-less dates of the previous
2715         year.
2716
2717 1997-01-08  Hrvoje Niksic  <hniksic@srce.hr>
2718
2719         * ftp-basic.c: Don't declare errno if #defined.
2720
2721         * host.c (ftp_getaddress): Check for sysinfo legally.
2722
2723 1997-01-08  Darko Budor  <dbudor@diana.zems.fer.hr>
2724
2725         * connect.c (iread): Use READ.
2726
2727 1996-12-23  Hrvoje Niksic  <hniksic@srce.hr>
2728
2729         * url.c: Recognize finger, rlogin, tn3270, mid and cid as valid
2730         schemes.
2731
2732 1996-12-22  Hrvoje Niksic  <hniksic@srce.hr>
2733
2734         * host.c (ftp_getaddress): Allow `.' in hostname.
2735
2736 1996-12-26  Darko Budor <dbudor@zems.fer.hr>
2737
2738         * wget.h: READ and WRITE macros for use instead of read and write
2739         on sockets, grep READ *.c, grep WRITE *.c
2740
2741         * wsstartup.c: new file - startup for winsock
2742
2743         * wsstartup.h: new file
2744
2745         * win32decl.h: new file - fixup for <errno.h> and winsock trouble
2746
2747         * configure.bat: Configure utility for MSVC
2748
2749         * src/Makefile.ms,config.h.ms: new files for use with MSVC 4.x
2750
2751 1996-12-22  Hrvoje Niksic  <hniksic@srce.hr>
2752
2753         * version.c: Released 1.4.3-pre.
2754
2755         * utils.c (prnum): Accept long.
2756         (legible): Use prnum().
2757
2758         * connect.c (make_connection): Accept port as short.
2759         (bindport): Ditto.
2760
2761         * http.c (gethttp): Use search_netrc.
2762
2763 1996-12-21  Hrvoje Niksic  <hniksic@srce.hr>
2764
2765         * ftp.c (getftp): Use search_netrc.
2766
2767         * netrc.c (free_netrc): New function.
2768
2769         * init.c (home_dir): New function.
2770
2771         * url.c (convert_links): Allow REL2ABS changes.
2772
2773 1996-12-21  Gordon Matzigkeit  <gord@gnu.ai.mit.edu>
2774
2775         * netrc.c: New file.
2776         (parse_netrc, maybe_add_to_list): New functions.
2777
2778 1996-12-17  Hrvoje Niksic  <hniksic@srce.hr>
2779
2780         * retr.c (retrieve_url): Reset opt.recursion before calling
2781         ftp_loop if it is reached through newloc.
2782
2783         * init.c (run_wgetrc): Print the wgetrc path too, when reporting
2784         error; don't use "Syntax error", since we don't know if it is
2785         really a syntax error.
2786
2787 1996-12-16  Hrvoje Niksic  <hniksic@srce.hr>
2788
2789         * utils.c (acceptable): Extract the filename part of the path.
2790
2791         * recur.c (recursive_retrieve): Call acceptable() with the right
2792         argument; would bug out on wildcards.
2793
2794         * init.c (parse_line): Likewise.
2795
2796         * html.c (htmlfindurl): Cast to char * when calling stuff.
2797
2798 1996-12-15  Hrvoje Niksic  <hniksic@srce.hr>
2799
2800         * ftp.c (getftp): Use ftp_pasv.
2801
2802         * ftp-basic.c (ftp_request): Accept NULL value.
2803         (ftp_pasv): New function.
2804
2805         * options.h (struct options): Add passive FTP option.
2806
2807 1996-12-15  Hrvoje Niksic  <hniksic@srce.hr>
2808
2809         * url.c (parseurl): Debug output.
2810
2811         * utils.c (path_simplify): New one, adapted from bash's
2812         canonicalize_pathname().
2813
2814 1996-12-14  Hrvoje Niksic  <hniksic@srce.hr>
2815
2816         * ftp.c (getftp): Don't discard the buffer.
2817
2818         * retr.c (get_contents): New parameter nobuf.
2819
2820 1996-12-13  Shawn McHorse  <riffraff@txdirect.net>
2821
2822         * html.c (htmlfindurl): Recognize <meta contents="d; URL=...".
2823
2824         * init.c (setval): Strip the trailing slashes on CVECDIR.
2825
2826 1996-12-13  Hrvoje Niksic  <hniksic@srce.hr>
2827
2828         * init.c: Make excludes and includes under CVECDIR instead of
2829         CVEC.
2830
2831 1996-12-13  Shawn McHorse  <riffraff@txdirect.net>
2832
2833         * url.c (get_urls_html): Skip "http:".
2834
2835 1996-12-13  Hrvoje Niksic  <hniksic@srce.hr>
2836
2837         * utils.c (strcasecmp): From glibc.
2838         (strncasecmp): Also.
2839         (strstr): Also.
2840
2841         * url.c: Added javascript: to the list of URLs prefixes.
2842
2843 1996-12-12  Shawn McHorse  <riffraff@txdirect.net>
2844
2845         * recur.c (retrieve_robots): Print the warning message only if
2846         verbose.
2847
2848 1996-12-12  Gregor Hoffleit  <flight@mathi.uni-heidelberg.DE>
2849
2850         * ftp.c (ftp_retrieve_list): Use NeXT old utime interface.
2851
2852 1996-12-12  Hrvoje Niksic  <hniksic@srce.hr>
2853
2854         * systhings.h: New file.
2855
2856         * ../configure.in: Check for utime.h
2857
2858         * ftp.c: Check whether we have unistd.h.
2859
2860 1996-11-27  Hrvoje Niksic  <hniksic@srce.hr>
2861
2862         * recur.c (recursive_retrieve): Send the canonical URL as referer.
2863         (recursive_retrieve): Call get_urls_html with the canonical URL.
2864
2865 1996-12-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2866
2867         * (configure.in, config.h.in, src/Makefile.in, src/*.[ch]): Add
2868         ansi2knr support for compilers which don't support ANSI style
2869         function prototypes and signatures.
2870
2871         * (aclocal.m4, src/ansi2knr.c, src/ansi2knr.1): New files.
2872
2873 1996-11-26  Hrvoje Niksic  <hniksic@srce.hr>
2874
2875         * url.c: Use it; Recognize paths ending with "." and ".." as
2876         directories.
2877         (url_filename): Append .n whenever file exists and could be a
2878         directory.
2879
2880         * url.h (ISDDOT): New macro.
2881
2882         * init.c (parse_line): Use unsigned char.
2883
2884         * url.c (get_urls_html): Cast to unsigned char * when calling
2885         htmlfindurl.
2886
2887         * html.c (htmlfindurl): Use unsigned char.
2888
2889         * version.c: Changed version to 1.4.3.
2890
2891 1996-11-25  Hrvoje Niksic  <hniksic@srce.hr>
2892
2893         * version.c: Released 1.4.2.
2894
2895         * ftp.c (getftp): Simplified assertion.
2896         (ftp_loop_internal): Remove symlink before downloading.
2897         (ftp_retrieve_list): Unlink the symlink name before attempting to
2898         create a symlink!
2899
2900         * options.h (struct options): Renamed print_server_response to
2901         server_response.
2902
2903         * ftp.c (rel_constr): Removed.
2904         (ftp_retrieve_list): Don't use it.
2905         (ftp_retrieve_list): Use opt.retr_symlinks.
2906
2907 1996-11-24  Hrvoje Niksic  <hniksic@srce.hr>
2908
2909         * main.c (main): New option retr_symlinks.
2910
2911         * url.c (convert_links): Print verbose message.
2912
2913 1996-11-24  Hrvoje Niksic  <hniksic@srce.hr>
2914
2915         * http.c (http_loop): Reset newloc in the beginning of function;
2916         would cause FMR in retrieve_url.
2917
2918 1996-11-23  Hrvoje Niksic  <hniksic@srce.hr>
2919
2920         * recur.c (convert_all_links): Find the URL of each HTML document,
2921         and feed it to get_urls_html; would bug out.
2922         (convert_all_links): Check for l2 instead of dl; removed dl.
2923
2924         * url.c (convert_links): Don't refer to freed newname.
2925
2926         * recur.c (recursive_retrieve): Add this_url to urls_downloaded.
2927
2928         * main.c (main): Print the OS_TYPE in the debug output, too.
2929
2930         * recur.c (recursive_retrieve): Check for opt.delete_after.
2931
2932         * main.c (main): New option delete-after.
2933
2934         * init.c (setval): Cleaned up.
2935
2936 1996-11-21  Hrvoje Niksic  <hniksic@srce.hr>
2937
2938         * Makefile.in (wget): Make `wget' the default target.
2939
2940         * ftp.c (ftp_loop_internal): Move noclobber checking out of the
2941         loop.
2942         (ftp_retrieve_list): Warn about non-matching sizes.
2943
2944         * http.c (http_loop): Made -nc non-dependent on opt.recursive.
2945
2946         * init.c (setnum): Renamed from setnuminf; New argument flags.
2947         (setval): Use it.
2948
2949         * main.c (main): Sorted the options.
2950         (main): New option --wait.
2951
2952 1996-11-21  Shawn McHorse  <riffraff@txdirect.net>
2953
2954         * html.c (htmlfindurl): Reset s->in_quote after getting out of
2955         quotes.
2956
2957 1996-11-20  Hrvoje Niksic  <hniksic@srce.hr>
2958
2959         * version.c: Changed version to 1.4.2.
2960
2961 1996-11-20  Hrvoje Niksic  <hniksic@srce.hr>
2962
2963         * version.c: Released 1.4.1.
2964
2965         * html.c (html_quote_string): New function.
2966         (ftp_index): Use it.
2967         (htmlfindurl): A more gentle ending debug message.
2968
2969         * ftp.c (ftp_loop): Check for opt.htmlify.
2970
2971         * init.c: New command htmlify.
2972
2973         * ftp.c (getftp): Nicer error messages, with `'-encapsulated
2974         strings.
2975         (ftp_loop): Print size of index.html.
2976
2977         * init.c (setval): Implement "styles".
2978
2979         * main.c (main): New option dotstyle.
2980
2981 1996-11-19  Hrvoje Niksic  <hniksic@srce.hr>
2982
2983         * ftp.c (getftp): Close the master socket in case of errors, after
2984         bindport().
2985
2986         * connect.c (bindport): Initialize msock to -1.
2987
2988         * ftp.c (getftp): Initialize dtsock to -1.
2989
2990         * connect.c (closeport): Don't close sock if sock == -1.
2991
2992 1996-11-18  Hrvoje Niksic  <hniksic@srce.hr>
2993
2994         * init.c (setnuminf): Nuked default value -- just leave unchanged.
2995         (setval): Don't send default values.
2996         (defaults): Use DEFAULT_TIMEOUT -- aaargh.
2997
2998         * options.h (struct options): Use long for dot_bytes.
2999
3000         * init.c (setquota): Renamed to setbytes.
3001         (setval): Use setbytes on DOTBYTES.
3002
3003 1996-11-17  Hrvoje Niksic  <hniksic@srce.hr>
3004
3005         * ftp.c (getftp): Initialize con->dltime.
3006
3007         * recur.c (recursive_retrieve): Use same_host instead of
3008         try_robots; simply load robots_txt whenever the host is changed.
3009         (recursive_retrieve): Free forbidden before calling parse_robots.
3010
3011 1996-11-16  Hrvoje Niksic  <hniksic@srce.hr>
3012
3013         * retr.c (show_progress): Use them.
3014
3015         * options.h (struct options): New options dot_bytes, dots_on_line
3016         and dot_spacing.
3017
3018 1996-11-16  Mark Boyns  <boyns@sdsu.edu>
3019
3020         * recur.c (recursive_retrieve): Retrieve directories regardless of
3021         acc/rej rules; check for empty u->file.
3022
3023 1996-11-14  Hrvoje Niksic  <hniksic@srce.hr>
3024
3025         * init.c (setval): Use it.
3026
3027         * utils.c (merge_vecs): New function.
3028
3029         * init.c (setval): Reset the list-type functions when encountering
3030         "".
3031
3032 1996-11-14  Shawn McHorse  <riffraff@txdirect.net>
3033
3034         * recur.c (recursive_retrieve): Use base_url instead of this_url
3035         for no_parent.
3036
3037 1996-11-14  Shawn McHorse  <riffraff@txdirect.net>
3038
3039         * html.c (htmlfindurl): Reset s->in_quote after exiting the quote.
3040
3041 1996-11-13  Hrvoje Niksic  <hniksic@srce.hr>
3042
3043         * utils.c (sepstring): Rewrote; don't use strtok.
3044
3045         * recur.c (recursive_retrieve): Enter assorted this_url to slist
3046         when running the first time.
3047         (retrieve_robots): Warn to ignore errors when robots are loaded.
3048
3049         * utils.c (load_file): Moved from url.c.
3050
3051         * http.c: Made static variables const too in h* functions.
3052
3053         * main.c (main): Renamed --continue-ftp to --continue.
3054
3055         * recur.c (recursive_retrieve): Use it.
3056
3057         * utils.c (frontcmp): New function.
3058
3059         * url.c (accdir): New function.
3060
3061         * html.c (htmlfindurl): Recognize <area href=...>.
3062
3063         * ftp.c (ftp_retrieve_dirs): Implemented opt.includes.
3064
3065         * init.c (setval): Free the existing opt.excludes and
3066         opt.includes, if available.
3067
3068         * main.c (main): New option -I.
3069
3070 1996-11-12  Hrvoje Niksic  <hniksic@srce.hr>
3071
3072         * ftp.c (ftp_retrieve_glob): Do not weed out directories.
3073
3074         * version.c: Changed version to 1.4.1.
3075
3076 1996-11-11  Hrvoje Niksic  <hniksic@srce.hr>
3077
3078         * version.c: Released 1.4.0.
3079
3080 1996-11-10  Hrvoje Niksic  <hniksic@srce.hr>
3081
3082         * main.c (main): Free com and val after parse_line.
3083         (printhelp): Reorder the listing.
3084
3085         * http.c: More robust header parsing.
3086
3087         * http.c: Allow any number of spaces, or no spaces, precede ':'.
3088         (hskip_lws): New function.
3089         (haccepts_bytes): New function.
3090         (gethttp): Use it.
3091
3092         * init.c (setval): Check header sanity.
3093         (setval): Allow resetting of headers.
3094
3095 1996-11-10  Hrvoje Niksic  <hniksic@srce.hr>
3096
3097         * http.c (http_loop): Don't use has_wildcards.
3098
3099         * http.c (gethttp): Free all_headers -- would leak.
3100
3101         * recur.c (recursive_retrieve): Initialize depth to 1 instead of
3102         0 -- this fixes a long-standing bug in -rl.
3103
3104 1996-11-09  Hrvoje Niksic  <hniksic@srce.hr>
3105
3106         * ftp.c: Use -1 as "impossible" value for con->fd.
3107
3108         * url.h (URL_SEPARATOR): Don't treat `*' and `+' as separators.
3109
3110         * init.c (parse_line): Use isalpha.
3111
3112         * ftp-unix.c: Use HAVE_UNISTD_H.
3113
3114         * mtch.c (has_wildcards): Don't match \.
3115
3116         * http.c (http_loop): Warn on HTTP wildcard usage.
3117
3118 1996-11-08  Hrvoje Niksic  <hniksic@srce.hr>
3119
3120         * url.c (url_filename): Do not create numbered suffixes if
3121         opt.noclobber -- would bug out on -nc.
3122
3123 1996-11-07  Hrvoje Niksic  <hniksic@srce.hr>
3124
3125         * recur.c (parse_robots): Don't chuck out the commands without
3126         arguments (`Disallow:<empty>' didn't work).
3127         (parse_robots): Compare versions lowercase.
3128         (parse_robots): Match on base_version, not version_string!
3129         (parse_robots): Handle comments properly.
3130         (parse_robots): Match versions in a sane way.
3131
3132         * init.c: Print nicer error messages.
3133
3134         * version.c: Changed version to 1.4.0.
3135
3136 1996-11-06  Hrvoje Niksic  <hniksic@srce.hr>
3137
3138         * version.c: Released 1.4.0-test2.
3139
3140         * init.c (run_wgetrc): Close fp.
3141
3142         * ftp.c (ftp_retrieve_dirs): Allocate the correct length for
3143         u->dir.
3144
3145 1996-11-06  Hrvoje Niksic  <hniksic@srce.hr>
3146
3147         * init.c (setquota): Allow inf as quota specification.
3148
3149 1996-11-05  Hrvoje Niksic  <hniksic@srce.hr>
3150
3151         * ftp.c (ftp_retrieve_dirs): Return QUOTEXC if quota exceeded.
3152         (ftp_retrieve_glob): Return QUOTEXC on quota exceeded.
3153
3154         * main.c (main): Check for quota by comparison with downloaded
3155         stuff, not from status.
3156
3157         * connect.c (select_fd): Should compile on HPUX without warnings now.
3158
3159         * ftp.c (ftp_get_listing): Check whether ftp_loop_internal
3160         returned RETROK.
3161
3162 1996-11-04  Hrvoje Niksic  <hniksic@srce.hr>
3163
3164         * ftp.c (ftp_retrieve_glob): Print the pattern nicely.
3165         (getftp): Return FTPRETRINT on control connection error.
3166
3167         * html.c (htmlfindurl): Recognize <embed src=...> and
3168         <bgsound src=...>.
3169         (ftp_index): Handle username and password correctly.
3170
3171         * main.c (main): Made `-np' a synonim for --no-parent.
3172
3173 1996-11-02  Hrvoje Niksic  <hniksic@srce.hr>
3174
3175         * ftp.c (ftp_loop): Check for opt.ftp_glob too before calling
3176         ftp_retrieve_glob.
3177
3178         * version.c: Changed version to 1.4.0-test2.
3179
3180 1996-11-02  Hrvoje Niksic  <hniksic@srce.hr>
3181
3182         * version.c: Released 1.4.0-test1.
3183
3184         * url.c (str_url): Don't use sprintf when creating %2F-prefixed
3185         directory.
3186         (convert_links): Removed definition of make_backup.
3187
3188         * http.h: Removed definition of MAX_ERROR_LENGTH.
3189
3190         * host.c (ftp_getaddress): Check for "(none)" domains.
3191
3192         * ftp.c (ftp_retrieve_dirs): Docfix.
3193
3194         * http.c (gethttp): Use ou->referer instead of u->referer.
3195
3196         * retr.c (retrieve_url): Reset u to avoid freeing pointers twice;
3197         this was known to cause coredumps on Linux.
3198
3199         * html.c (ftp_index): Cast the argument to local_time to time_t *.
3200
3201 1996-11-01  Hrvoje Niksic  <hniksic@srce.hr>
3202
3203         * connect.c (select_fd): Use exceptfds -- once and for all.
3204
3205         * retr.c (retrieve_from_file): Free filename after
3206         recursive_retrieve.
3207         (retrieve_from_file): Send RFIRST_TIME to recursive_retrieve on
3208         first-time retrieval.
3209         (retrieve_from_file): Return uerr_t; new argument, count.
3210         (retrieve_from_file): Break on QUOTEXC.
3211
3212         * init.c (setquota): Fixed a bug that caused rejection of
3213         non-postfixed values..
3214
3215 1996-10-30  Hrvoje Niksic  <hniksic@srce.hr>
3216
3217         * version.c: Changed name to wget.
3218
3219         * connect.c (iread): Smarter use of select.
3220         (select_fd): Set errno on timeout.  If not timeout, return 1
3221         instead of 0.
3222
3223 1996-10-29  Hrvoje Niksic  <hniksic@srce.hr>
3224
3225         * ftp.c (ftp_loop_internal): Don't use con->cmd before
3226         establishing it.
3227
3228 1996-10-26  Hrvoje Niksic  <hniksic@srce.hr>
3229
3230         * http.c (gethttp): Send correct referer when using proxy.
3231         (gethttp): Use struct urlinfo ou to access the relevant data; send
3232         correct authorization in all cases.
3233
3234         * host.c (same_host): Use skip_uname to skip username and
3235         password.
3236
3237         * url.c (skip_uname): New function.
3238         (parseurl): Use it.
3239
3240         * host.c (same_host): Do not assume HTTP -- same_host should now
3241         be totally foolproof.
3242
3243         * url.c (skip_proto): New function.
3244         (parse_uname): Use it.
3245
3246         * http.c (gethttp): Create local user and passwd from what is
3247         given.
3248
3249         * url.c (parseurl): Check for HTTP username and password too.
3250
3251 1996-10-25  Hrvoje Niksic  <hniksic@srce.hr>
3252
3253         * config.h.in: Removed #define gethostbyname R...
3254
3255 1996-10-22  Hrvoje Niksic  <hniksic@srce.hr>
3256
3257         * version.c: Changed version to 1.4.0-test1.
3258
3259 1996-10-21  Hrvoje Niksic  <hniksic@srce.hr>
3260
3261         * version.c: "Released" 1.4b29.
3262
3263         * recur.c (recursive_retrieve): Check for no_parent.
3264
3265         * init.c (setval): Option update.
3266
3267         * main.c (main): New option no-parent.
3268
3269         * options.h (struct options): New variable no_parent.
3270
3271         * recur.c (recursive_retrieve): Only files are checked for
3272         opt.accepts and opt.rejects.
3273         (recursive_retrieve): Check directories for opt.excludes.
3274         (recursive_retrieve): Make the dir absolute when checking
3275         opt.excludes.
3276
3277         * html.c (htmlfindurl): Recognize <applet code=...> and <script
3278         src=...>
3279
3280 1996-10-18  Hrvoje Niksic  <hniksic@srce.hr>
3281
3282         * ftp.c (getftp): Do not line-break assert entries at all.
3283         (ftp_retrieve_dirs): docfix.
3284
3285         * connect.c (select_fd): Use fd + 1 as nfds.
3286
3287         * version.c: Changed version to 1.4b29.
3288
3289 1996-10-18  Hrvoje Niksic  <hniksic@srce.hr>
3290
3291         * version.c: "Released" 1.4b28.
3292
3293         * ftp.c (ftp_loop_internal): Check whether f->size == len and
3294         don't continue the loop if it is.
3295         (ftp_get_listing): Remove list_filename on unsuccesful loop.
3296
3297 1996-10-17  Hrvoje Niksic  <hniksic@srce.hr>
3298
3299         * ftp.c (ftp_loop_internal): Use strcpy to initialize tmp.
3300         (getftp): Do not use multiline assert.
3301
3302         * http.c (hparsestatline): Use mjr and mnr instead of major and
3303         minor, which don't compile on Ultrix.
3304         (http_loop): Use strcpy() to initialize tmp.
3305
3306         * all: Geturl -> Fetch
3307
3308 1996-10-17  Hrvoje Niksic  <hniksic@srce.hr>
3309
3310         * recur.c (parse_robots): Fixed an off-by-one bug when looking for
3311         ':'.
3312
3313         * html.c (htmlfindurl): Fixed several possible off-by-one bugs by
3314         moving `bufsize &&' to the beginning of each check in for-loops.
3315
3316         * recur.c (parse_robots): Close fp on exit.
3317
3318         * url.c (mymkdir): Check for each directory before creating.
3319
3320 1996-10-16  Hrvoje Niksic  <hniksic@srce.hr>
3321
3322         * version.c: Changed version to 1.4b28.
3323
3324 1996-10-16  Hrvoje Niksic  <hniksic@srce.hr>
3325
3326         * version.c: "Released" 1.4b27.
3327
3328         * init.c (parse_line): Use isspace.
3329         (parse_line): Free *com on all errors.
3330
3331         * ftp.c (ftp_loop): Change FTPOK to RETROK before exiting.
3332         (delelement): Use next instead of f->next and prev instead of
3333         f->prev.
3334         (delelement): Free the members of the deleted element.
3335
3336         * http.c (http_loop): Do not return RETROK on code != 20x.
3337
3338         * init.c (cleanup): Free opt.user_header.
3339         (cleanup): Free opt.domains.
3340
3341         * url.c (freelists): Moved to cleanup().
3342
3343         * http.c (hparsestatline): Docfix.
3344
3345         * main.c (main): Return with error status on unsuccesful
3346         retrieval.
3347
3348         * init.c (setval): Do not remove listing when mirroring.
3349
3350         * url.c (url_filename): Use opt.fileprefix.
3351
3352         * ftp.c (ftp_get_listing): Use url_filename to get filename for
3353         .listing.
3354
3355         * main.c (main): New option: -rn.
3356
3357 1996-10-15  Hrvoje Niksic  <hniksic@srce.hr>
3358
3359         * Makefile.in (RM): Added RM = rm -f.
3360
3361         * host.c (clean_hosts): New function.
3362         (free_hlist): Just free the list, no reset.
3363
3364         * version.c: Changed version to 1.4b27.
3365
3366 1996-10-13  Hrvoje Niksic  <hniksic@srce.hr>
3367
3368         * version.c: "Released" 1.4b26.
3369
3370         * retr.c (retrieve_from_file): If call get_urls_html with
3371         opt.spider to make it silent in spider mode.
3372
3373         * url.c (str_url): Use CLEANDUP instead of URL_CLEANSE.
3374
3375         * url.h (CLEANDUP): New macro.
3376
3377         * http.c (gethttp): Fixed a bug that freed location only when it
3378         was NULL.
3379
3380         * retr.c (retrieve_url): Free url if it will not be stored,
3381         i.e. newloc is NULL.
3382
3383         * html.c (htmlfindurl): Handle exiting from quotes correctly; the
3384         old version would bug out on <a href="x#a"href="y">.
3385
3386         * html.h (state_t): New member in_quote.
3387
3388         * html.c (htmlfindurl): Free s->attr at the beginning of
3389         attr-loop.
3390
3391         * recur.c (recursive_retrieve): Recognize RCLEANUP.
3392         (tried_robots): Make hosts a global variable.
3393         (recursive_retrieve): Free constr after URL host optimization.
3394         (tried_robots): Free urlinfo before exiting.
3395
3396         * utils.c (free_slist): New function.
3397
3398         * recur.c (recursive_retrieve): Use flags to add cleanup
3399         possibility.
3400
3401         * main.c (main): Free filename after recursive_retrieve.
3402
3403         * http.c (gethttp): Store successful responses too.
3404
3405 1996-10-12  Hrvoje Niksic  <hniksic@srce.hr>
3406
3407         * all: Constified the whole source.  This required some minor
3408         changes in many functions in url.c, possibly introducing bugs -- I
3409         hope not.
3410
3411         * ftp-basic.c: Removed last_respline.
3412
3413         * http.c (gethttp): Free type.
3414
3415         * host.c (same_host): Free real1 and real2.
3416
3417         * main.c (main): New option --spider.
3418
3419         * retr.c (get_contents): Don't reset errno.
3420
3421         * main.c (main): Sorted the options.
3422
3423         * connect.c (iread): Set errno to ETIMEDOUT only if it was left
3424         uninitialized by select().
3425
3426         * http.c (http_loop): Print the time when the connection is
3427         closed.
3428         (gethttp): Debug-print the HTTP request.
3429
3430 1996-10-11  Hrvoje Niksic  <hniksic@srce.hr>
3431
3432         * connect.c (iread): Do not try reading after timeout.
3433
3434         * main.c (main): Would bug out on -T.
3435
3436         * connect.c (select_fd): Do not use exceptfds.
3437         (iread): Set ETIMEDOUT on select_fd <= 0.
3438
3439         * version.c: Changed version to 1.4b26.
3440
3441 1996-10-10  Hrvoje Niksic  <hniksic@srce.hr>
3442
3443         * version.c: "Released" 1.4b25.
3444
3445         * ftp-unix.c (ftp_parse_unix_ls): Ignore lines without file name
3446         or link name.
3447
3448         * http.c (gethttp): Add errcode to struct hstat.
3449         (http_loop): Use it.
3450
3451         * url.c (no_proxy_match): Simplify using char** for no_proxy.
3452
3453         * options.h (struct options): Make opt.no_proxy a vector.
3454
3455         * utils.c (sepstring): Use !*s instead of !strlen(s).
3456
3457         * init.c (setval): Set opt.maxreclevel to 0 on --mirror.
3458         (getperms): Use ISODIGIT instead of isdigit.
3459
3460         * ftp.c (getftp): Print time.
3461
3462         * main.c (main): Use legible output of downloaded quantity.
3463
3464         * ftp.c (getftp): Use elapsed_time().
3465         (ftp_loop_internal): Use rate().
3466
3467         * http.c (http_loop): Add download ratio output; Use rate().
3468
3469         * utils.c (rate): New function.
3470
3471 1996-10-09  Hrvoje Niksic  <hniksic@srce.hr>
3472
3473         * http.c (http_loop): Use timer.
3474
3475         * ftp.c: Split to ftp-basic.c and ftp.c
3476
3477         * utils.c (reset_timer): New function.
3478         (elapsed_time): New function.
3479
3480         * retr.c (show_progress): Make bytes_in_line and offs long; should
3481         work on 16-bit machines.
3482
3483 1996-10-08  Hrvoje Niksic  <hniksic@srce.hr>
3484
3485         * url.c (in_acclist): New argument backward.
3486
3487         * ftp.c (ftp_retrieve_glob): Use acceptable() to determine whether
3488         a file should be retrieved according to suffix.
3489         (ftp_get_listing): Check the return value of unlink; Do not call
3490         ftp_retrieve_dirs if depth reached maxreclevel.
3491         (ftp_retrieve_dirs): Check whether the directory is in
3492         exclude-list.
3493
3494         * main.c (main): Print the version number at the beginning of
3495         DEBUG output.
3496         (main): Use strrchr when creating exec_name.
3497
3498         * ftp.c (ftp_retrieve_glob): Do not close control connection.
3499
3500         * version.c: Changed version to 1.4b25.
3501
3502 1996-10-07  Hrvoje Niksic  <hniksic@srce.hr>
3503
3504         * version.c: "Released" 1.4b24.
3505
3506         * Makefile.in: Rewrite.
3507
3508         * ftp.c (ftp_loop_internal): Likewise.
3509
3510         * retr.c (time_str): Check for failed time().
3511
3512         * html.c (htmlfindurl): Recognize <fig src> and <overlay src> from
3513         HTML3.0.
3514
3515         * retr.c (time_str): Return time_t *.
3516
3517         * connect.c (bindport): Close msock on unsuccesful bind.
3518         (bindport): The same for getsockname and listen.
3519
3520         * retr.c (retrieve_url): Allow any number of retries on
3521         proxy.
3522
3523         * http.c (gethttp): Do not treat errno == 0 as timeout.
3524         (http_loop): Likewise.
3525         (http_loop): Cosmetic changes.
3526
3527         * connect.c (iread): Set errno to ETIMEDOUT in case of timeout.
3528
3529         * retr.c (get_contents): Reset errno.
3530
3531         * ftp.c (getftp): Minor fixes.
3532
3533 1996-10-06  Hrvoje Niksic  <hniksic@srce.hr>
3534
3535         * http.c: Do not use backups.
3536
3537         * geturl.1 (WARNING): Warn that man-page could be obsolete.
3538
3539         * getopt.c (getopt_long): Moved to getopt.c
3540
3541         * geturl.texi: Enhanced.
3542
3543         * main.c (main): Use it.
3544
3545         * recur.c (convert_all_links): New function.
3546
3547         * utils.c (add_slist): New argument flags.
3548
3549         * recur.c (recursive_retrieve): Update a list of downloaded URLs.
3550         (parse_robots): Do not chuck out empty value fields.
3551         (parse_robots): Make yourself welcome on empty Disallow.
3552
3553         * version.c: Changed version to 1.4b24.
3554
3555 1996-10-06  Hrvoje Niksic  <hniksic@srce.hr>
3556
3557         * version.c: "Released" 1.4b23.
3558
3559         * ftp.c (ftp_loop_internal): Get the time after getftp.
3560
3561         * Makefile.in (install.info): New target.
3562         (install): Use it.
3563
3564         * http.c (http_loop): Fix output when doing -O.
3565
3566 1996-10-05  Hrvoje Niksic  <hniksic@srce.hr>
3567
3568         * geturl.texi: New file.
3569
3570         * main.c (main): Do not print the warnings and download summary if
3571         opt.quiet is set.
3572
3573         * version.c: Changed version to 1.4b23.
3574
3575 1996-10-05  Hrvoje Niksic  <hniksic@srce.hr>
3576
3577         * "Released" 1.4b22.
3578
3579         * atotm.c (atotm): Use True and False instead of TRUE and FALSE,
3580         to avoid redefinition warnings.
3581
3582         * host.c (store_hostaddress): Use memcpy() to copy the address
3583         returned by inet_addr.
3584
3585         * version.c: Changed version to 1.4b22.
3586
3587 1996-10-04  Hrvoje Niksic  <hniksic@srce.hr>
3588
3589         * version.c: "Released" 1.4b21.
3590
3591         * ftp-unix.c (ftp_parse_ls): Renamed to ftp_parse_unix_ls.
3592
3593         * ftp.c (ftp_port): Use conaddr.
3594         (getftp): Print the file length.
3595         (ftp_retrieve_list): Check the stamps of plain files only.
3596
3597         * connect.c (closeport): Do not call shutdown().
3598         (conaddr): New function.
3599
3600         * html.c (ftp_index): Made it dfp-aware.
3601
3602         * init.c (cleanup): New name of freemem. Close opt.dfp.
3603
3604         * ftp.c (getftp): Use opt.dfp if it is set.
3605
3606         * ftp-unix.c (ftp_parse_ls): Recognize time in h:mm format.
3607
3608         * ftp.c (ftp_retrieve_dirs): Fixed a bug that caused incorrect
3609         CWDs to be sent with recursive FTP retrievals.
3610
3611 1996-10-03  Hrvoje Niksic  <hniksic@srce.hr>
3612
3613         * recur.c (parse_robots): Made it more compliant with "official"
3614         specifications.
3615
3616         * http.c: New function.
3617
3618         * ftp-unix.c (ftp_parse_ls): Added better debug output.
3619
3620         * ftp.c (getftp): Print out the LIST in case of
3621         opt.print_server_response.
3622
3623         * version.c: Changed version to 1.4b21.
3624
3625 1996-10-01  Hrvoje Niksic  <hniksic@srce.hr>
3626
3627         * version.c: "Released" 1.4b20.
3628
3629         * README: Update.
3630
3631         * http.c (gethttp): Preset lengths of various headers instead of
3632         calculating them dynamically.
3633         (gethttp): Check for 206 partial contents.
3634
3635 1996-09-30  Hrvoje Niksic  <hniksic@srce.hr>
3636
3637         * configure.in: Set SYSTEM_GETURLRC to $libdir/geturlrc
3638
3639         * http.c (gethttp): Send the port number in the Host: header.
3640
3641 1996-09-29  Hrvoje Niksic  <hniksic@srce.hr>
3642
3643         * http.c (gethttp): Send host: header.
3644         (gethttp): Add the possibility of user-defined headers.
3645         (gethttp): Move decision about pragma: no-cache to http_loop,
3646         where it belongs.
3647         (gethttp): Pass a struct instead of enormous argument list.
3648         (http_loop): Use a new, fancier display format.
3649         (ftp_loop): Likewise.
3650
3651         * main.c: (hangup): Turn off buffering of the new log file.
3652
3653         * install-sh: Likewise.
3654
3655         * config.sub: Replace with the one in autoconf-2.10
3656
3657         * geturl.1: Update.
3658
3659         * init.c: New options httpuser and httppasswd.
3660
3661         * http.c: (base64_encode_line): New function.
3662         (gethttp): Send authentication.
3663
3664         * connect.c (make_connection): Use store_hostaddress.
3665
3666 1996-09-28  Hrvoje Niksic  <hniksic@srce.hr>
3667
3668         * host.c (store_hostaddress): New function.
3669
3670         * NEWS: Update.
3671
3672         * http.c (hgetrange): New function.
3673         (gethttp): Use ranges.
3674
3675         * utils.c (numdigit): Accept long instead of int.
3676
3677         * http.c (http_loop): Add restart capabilities.
3678
3679         * ftp.c (ftp_retrieve_glob): Fixed a bug that could cause matchres
3680         being used uninitialized.
3681         (ftp_retrieve_list): Similar fix.
3682
3683         * host.c (add_hlist): Fixed a bug that could cause cmp being used
3684         uninitialized.
3685
3686         * url.c (construct_relative): New function.
3687
3688         * recur.c (recursive_retrieve): Use it.
3689
3690         * retr.c (convert_links): New function.
3691
3692 1996-09-27  Hrvoje Niksic  <hniksic@srce.hr>
3693
3694         * url.c (free_urlpos): New function.
3695
3696         * recur.c (recursive_retrieve): Adapt.
3697
3698         * url.c (get_urls_html): Return a linked list instead of a vector.
3699
3700         * url.c (get_urls_file): Return a linked list instead of a vector.
3701
3702         * geturl.1: Update.
3703
3704         * http.c (gethttp): Implement it.
3705
3706         * init.c (setval): New option: SAVEHEADERS
3707
3708         * ftp.c (ftp_loop_internal): Do not set restval if listing is to
3709         be retrieved. Lack of this test caused bugs when the connection
3710         was lost during listing.
3711
3712         * retr.c (retrieve_url): Fixed a bug that caused
3713         coredumps. *newloc is now reset by default.
3714         (retrieve_url): Lift the twenty-tries limit on proxies.
3715
3716         * version.c: Changed version to 1.4b20.
3717
3718 1996-09-20  Hrvoje Niksic  <hniksic@srce.hr>
3719
3720         * version.c: "Released" 1.4b19.
3721
3722 1996-09-19  Hrvoje Niksic  <hniksic@srce.hr>
3723
3724         * ftp.c (ftp_loop_internal): Renamed from ftp_1fl_loop.
3725         (getftp): Changed prototype to accept ccon *.
3726
3727 1996-09-17  Hrvoje Niksic  <hniksic@srce.hr>
3728
3729         * ftp.c (ftp_retrieve_list): Fixed a bug that caused setting
3730         incorrect values to files pointed to by symbolic links.
3731         (ftp_1fl_loop): Do not count listings among the downloaded URL-s.
3732
3733 1996-09-16  Hrvoje Niksic  <hniksic@srce.hr>
3734
3735         * url.c (mkstruct): Do not prepend "./" in front of a pathname.
3736
3737         * main.c (main): New option: --user-agent.
3738
3739         * geturl.1: Ditto.
3740
3741         * init.h: Ditto.
3742
3743         * init.c (setval): Ditto.
3744
3745         * main.c (main): Rename "server-headers" to "server-response".
3746
3747         * ftp-unix.c (ftp_parse_ls): Check for asterisks at the end of
3748         executables in 'ls -F' listings.
3749
3750 1996-09-15  Hrvoje Niksic  <hniksic@srce.hr>
3751
3752         * url.c (parseurl): Remove realloc() and sprintf().
3753         (str_url): Get rid of sprintf().
3754
3755         * recur.c (recursive_retrieve): Enable FTP recursion through proxy
3756         servers.
3757
3758         * url.h (URL_CLEANSE): Made it else-resistant.
3759         (USE_PROXY): New macro.
3760
3761 1996-09-14  Hrvoje Niksic  <hniksic@srce.hr>
3762
3763         * NEWS: Update.
3764
3765         * version.c: Changed version to 1.4b19.
3766
3767 1996-09-14  Hrvoje Niksic  <hniksic@srce.hr>
3768
3769         * version.c: "Released" 1.4b18.
3770
3771         * url.c: Made it reallocate space exponentially.
3772
3773 1996-09-14  Drazen Kacar  <dave@fly.cc.fer.hr>
3774
3775         * html.c (htmlfindurl): Added <frame src> and <iframe src> among
3776         the list of stuff to fetch.
3777
3778 1996-09-13  Hrvoje Niksic  <hniksic@srce.hr>
3779
3780         * url.c (get_urls_html): Fixed a bug that caused SIGSEGV's with
3781         -Fi.
3782
3783         * html.c (htmlfindurl): Rewrite.
3784
3785         * http.c (gethttp): Use opt.proxy_cache.
3786
3787         * main.c (main): Added --cache option.
3788
3789         * ftp.c (ftp_response): Print server response if opt.print_server
3790         response is set.
3791         (getftp): Print newlines after each request if the server response
3792         is to be printed.
3793         (ftp_response): Copy the last response line to last_respline.
3794
3795         * http.c (gethttp): Add Pragma: nocache for retried
3796         proxy-retrievals.
3797
3798         * ftp.c (getftp): Use it.
3799
3800         * retr.c (buf_discard): New function.
3801
3802         * ftp.c (ftp_response): Use buf_readchar().
3803         (getftp): Flush the control connection buffer before calling
3804         get_contents().
3805
3806         * retr.c (buf_readchar): New function.
3807         (buf_flush): New function.
3808         (get_contents): Use buf_readchar() instead of read(x, x, 1).
3809         (get_contents): Use buf_flush.
3810
3811 1996-09-12  Hrvoje Niksic  <hniksic@srce.hr>
3812
3813         * ftp.c: Incorporate changes to ftp_response.
3814
3815         * ftp.c (ftp_response): Allocate the server response dynamically,
3816         as in read_whole_line and fetch_next_header.
3817
3818         * utils.c (read_whole_line): Fixed a bug that prevented reading
3819         the last line if it is not \n-terminated. Also fixed a possible
3820         memory overflow.
3821
3822         * http.c (fetch_next_header): Return malloc-ed string as large as
3823         needed.
3824         (gethttp): Use new fetch_next_header.
3825
3826 1996-09-12  Hrvoje Niksic  <hniksic@srce.hr>
3827
3828         * http.c (hgetlen): Compute the header length the first time only.
3829         (hgettype): Ditto.
3830         (hgetlocation): Ditto.
3831         (hgetmodified): Ditto.
3832
3833 1996-09-11  Hrvoje Niksic  <hniksic@srce.hr>
3834
3835         * sample.geturlrc: Update.
3836
3837 1996-09-10  Hrvoje Niksic  <hniksic@srce.hr>
3838
3839         * http.c (http_loop): Ditto.
3840
3841         * ftp.c (getftp): Open the output file as binary.
3842
3843         * version.c: Changed version to 1.4b18.
3844
3845 1996-09-10  Hrvoje Niksic  <hniksic@srce.hr>
3846
3847         * version.c: "Released" 1.4b17.
3848
3849         * ftp-unix.c (ftp_parse_ls): If unable to open file, return NULL
3850         instead of failed assertion.
3851
3852 1996-09-09  Hrvoje Niksic  <hniksic@srce.hr>
3853
3854         * ftp.c (ftp_get_listing): Add a numbered suffix to LIST_FILENAME
3855         if a file of that name already exists.
3856
3857 1996-09-05  Hrvoje Niksic  <hniksic@srce.hr>
3858
3859         * ftp.c (ftp_1fl_loop): Handler FTPPORTERR and FOPENERR correctly.
3860
3861         * config.h.in: Define gethostbyname as Rgethostbyname when using
3862         Socks.
3863
3864         * configure.in: Check for -lresolv if using Socks.
3865
3866         * version.c: Changed version to 1.4b17.
3867
3868 1996-07-15  Hrvoje Niksic  <hniksic@srce.hr>
3869
3870         * version.c: "Released" 1.4b16.
3871
3872         * http.c (gethttp): More intelligent check for first line of HTTP
3873         response.
3874         (gethttp): Would bug out on time-stamping.
3875
3876         * version.c: Changed version to 1.4b16.
3877
3878 1996-07-11  Hrvoje Niksic  <hniksic@srce.hr>
3879
3880         * version.c: Released 1.4b15.
3881
3882         * http.c (http_loop): Print \n after the loop entry, not before.
3883
3884         * url.c (url_filename): Use ISDOT.
3885
3886         * url.h (ISDOT): New macro.
3887
3888         * recur.c (recursive_retrieve): Change only opt.recursive for
3889         following FTP.
3890
3891 1996-07-11  Antonio Rosella <antonio.rosella@agip.it>
3892
3893         * socks/geturl.cgi: Fixed version No.
3894
3895         * socks/download-netscape.html: Ditto.
3896
3897         * socks/download.html: Changed socks.html to download.html.
3898
3899 1996-07-11  Hrvoje Niksic  <hniksic@srce.hr>
3900
3901         * url.c (url_filename): Check for opt.dirstruct instead for
3902         opt.recursive && opt.dirstruct.
3903
3904         * init.c (defaults): Ditto.
3905         (defaults): Reset dirstruct by default.
3906         (setval): Set opt.dirstruct whenever setting recursive.
3907
3908         * init.h: Removed FORCEDIRHIER.
3909
3910         * INSTALL: Added -L to socks-description.
3911
3912         * version.c: Changed version to 1.4b15.
3913
3914 1996-07-10  Hrvoje Niksic  <hniksic@srce.hr>
3915
3916         * version.c: "Released" 1.4b14.
3917
3918         * geturl.1: Update AUTHOR to include Rosella as contributor.
3919
3920         * NEWS: Update.
3921
3922         * socks/geturl.cgi: Simplified command creation, nuked <blink>.
3923
3924         * socks/geturl.cgi: Wrap nutscape extensions within if $netscape.
3925         (cal_time): Fix == to eq.
3926
3927         * socks/geturl.cgi: GPL-ized with permission of A. Rosella.
3928
3929         * geturl.1 (hostname): Moved URL CONVENTIONS to the beginning.
3930
3931         * Makefile.in: Use @VERSION@.
3932
3933         * configure.in: Check version from version.c.
3934
3935         * socks/geturl.cgi: Changed /pub/bin/perl to /usr/bin/perl.
3936
3937         * socks/download.html: Created from download-netscape.html, made
3938         HTML-2.0 compliant.
3939
3940         * recur.c (recursive_retrieve): Set opt.force_dir_hier when
3941         following FTP links from recursions.
3942
3943 1996-07-09  Hrvoje Niksic  <hniksic@srce.hr>
3944
3945         * url.c (mymkdir): Fixed a bug that prevented mymkdir() to create
3946         absolute directories correctly.
3947
3948         * version.c: Changed version to 1.4b14.
3949
3950 1996-07-09  Hrvoje Niksic  <hniksic@srce.hr>
3951
3952         * version.c: "Released" 1.4b13.
3953
3954         * url.c (make_backup): New function.
3955
3956         * http.c (http_loop): Make a backup copy of the local file (using
3957         rename(2)) before opening it.
3958
3959         * main.c (main): Added --backups.
3960
3961         * host.c (ftp_getaddress): Bail out on failed mycuserid().
3962         (ftp_getaddress): Check for leading dot on MY_DOMAIN.
3963         (ftp_getaddress): Check for empty, null or (null) domain.
3964
3965         * url.c (get_urls_html): If this_url is NULL, the base must have a
3966         protocol.
3967         (parseurl): Use has_proto.
3968
3969         * retr.c (retrieve_url): Warn when proxy is used with more than 20
3970         retries.
3971
3972         * url.c (mkstruct): Create the directory (calling mymkdir()) only
3973         if it is not already there.
3974         (has_proto): New function.
3975         (get_urls_html): Eliminate the remaining call to findurl -- use
3976         has_proto.
3977
3978         * geturl.1: Ditto.
3979
3980         * main.c: Change -X to -x.
3981
3982         * url.c (url_filename): Simplify creation of filename if
3983         prefix_files is set.
3984         (url_filename): Simplify everything. And I do mean *everything*.
3985         (mkstruct): Add dir_prefix before hostname.
3986         (path_simplify): Fixed a bug that caused writing outside the path
3987         string in case of "." and ".." path strings.
3988
3989 1996-07-06  Hrvoje Niksic  <hniksic@srce.hr>
3990
3991         * init.c: Added --mirror.
3992
3993         * main.c (main): Added -X to force saving of directory hierarchy.
3994
3995         * ftp.c (ftp_retrieve_list): Added recursion depth counter.
3996         (ftp_retrieve_list): Check whether quota is exceeded.
3997
3998         * url.c (get_urls_html): Skip leading blanks for absolute URIs.
3999
4000         * http.c (gethttp): Use referer if present.
4001
4002         * recur.c (recursive_retrieve): Set u->referer before calling
4003         retrieve_url.
4004
4005         * url.c (newurl): Use memset to nullify the struct members.
4006         (freeurl): Free the referer field too.
4007
4008         * url.h: Added referer to urlinfo.
4009
4010         * geturl.1: Updated the manual to document some of the new features.
4011
4012         * utils.c (numdigit): Moved from url.c.
4013
4014         * README: Rewritten.
4015
4016         * config.h.in: Add the support for socks.
4017
4018         * configure.in: Add the support for socks.
4019
4020         * url.c (url_filename): If the dir_prefix is ".", work with just
4021         the file name.
4022         (url_filename): Do not look for .n extensions if timestamping if
4023         turned on.
4024
4025         * retr.c (show_progress): Skip the over-abundant restval data, and
4026         print the rest of it with ',' instead of '.'.
4027
4028 1996-07-05  Hrvoje Niksic  <hniksic@srce.hr>
4029
4030         * retr.c (show_progress): Changed second arg. to long (as it
4031         should be).
4032         (show_progress): Moved to retr.c.
4033         (get_contents): Moved to retr.c.
4034
4035         * version.c: Change version to 1.4b13.
4036
4037 1996-07-05  Hrvoje Lacko <hlacko@fly.cc.fer.hr>
4038
4039         * url.c (in_acclist): Would return after the first suffix.
4040
4041 1996-07-04  Hrvoje Niksic  <hniksic@srce.hr>
4042
4043         * version.c: "Released" 1.4b12.
4044
4045         * url.c (path_simplify): More kludgifications.
4046         (get_urls_html): Use new parameters for htmlfindurl.
4047
4048         * html.c: Removed memorizing "parser states", since the new
4049         organization does not require them.
4050
4051         * init.c (run_geturlrc): Use read_whole_line.
4052
4053         * ftp-unix.c (ftp_parse_ls): Use read_whole_line.
4054
4055         * recur.c (parse_robots): Use read_whole_line.
4056
4057         * utils.c (read_whole_line): New function.
4058
4059         * recur.c (tried_robots): Use add_slist/in_slist, *much* cleaner.
4060
4061         * host.c (ngethostbyname): Call inet_addr just once. Yet to be
4062         tested on OSF and Ultrix.
4063         (add_hlist): New function.
4064         (free_hlist): New function.
4065         (search_host): New function.
4066         (search_address): New function.
4067         (realhost): Use search_host, search_address and add_hlist.
4068         (same_host): Replaced realloc() with strdupdelim(), made
4069         case-insensitive, fixed a memory leak.
4070
4071         * html.c (ftp_index): Fixed tm_min and tm_sec to be tm_hour and
4072         tm_min, like intended.
4073
4074         * version.c: Change user agent information to
4075         Geturl/version.
4076
4077 1996-07-03  Hrvoje Niksic  <hniksic@srce.hr>
4078
4079         * utils.c: Renamed nmalloc.c to utils.c, .h likewise.
4080
4081         * url.c (acceptable): Always accept directories.
4082
4083         * ftp-unix.c (ftp_parse_ls): Support brain-damaged "ls -F"-loving
4084         servers by stripping trailing @ from symlinks and trailing / from
4085         directories.
4086
4087         * ftp.c (ftp_loop): Debugged the "enhanced" heuristics. :-)
4088
4089         * url.c (skip_url): Use toupper instead of UCASE.
4090
4091         * host.c (sufmatch): Made it case-insensitive.
4092
4093         * url.c (match_backwards_or_pattern): Fixed i == -1 to j == -1.
4094         (match_backwards): New function, instead of
4095         match_backwards_or_pattern.
4096
4097         * recur.c (recursive_retrieve): Increased performance by
4098         introducing inl, which reduces number of calls to in_slist to only
4099         one.
4100
4101         * ftp.c (ftp_loop): Enhanced the heuristics that decides which
4102         routine to use.
4103
4104         * main.c (printhelp): Removed the warranty stuff.
4105
4106 1996-07-02  Hrvoje Niksic  <hniksic@srce.hr>
4107
4108         * url.c (add_slist): Simplify.
4109         (match_backwards_or_pattern): New function.
4110         (in_acclist): Use match_backwards_or_pattern.
4111         (matches): Remove.
4112
4113 1996-06-30  Hrvoje Niksic  <hniksic@srce.hr>
4114
4115         * ftp.c (ftp_loop): Call ftp_index on empty file names, if not
4116         recursive.
4117
4118         * html.c (ftp_index): Fixed to work. Beautified the output.
4119
4120         * ftp.c (ftp_retrieve_glob): Another argument to control whether
4121         globbing is to be used.
4122         (ftp_retrieve_list): Compare the time-stamps of local and remote
4123         files to determine whether to download.
4124
4125 1996-06-29  Hrvoje Niksic  <hniksic@srce.hr>
4126
4127         * ftp.c (rel_constr): New function.
4128
4129         * retr.c (retrieve_from_file): Check for text/html before
4130         retrieving recursively.
4131
4132         * main.c (main): Check whether the file is HTML before going into
4133         recursive HTML retrieving.
4134
4135         * ftp.c (ftp_retrieve_list): Manage directories.
4136         (ftp_retrieve_glob): Pass all the file-types to ftp_retrieve_list.
4137         (ftp_1fl_loop): Fixed a bug that caused con->com to be incorrectly
4138         initialized, causing bugchecks in getftp to fail.
4139
4140         * configure.in: Check for symlink.
4141
4142         * ftp.c (ftp_retrieve_list): Added support for symlinks.
4143
4144         * version.c: "Released" 1.4b10.
4145
4146         * atotm.c (atotm): Redeclared as time_t.
4147
4148         * init.c: New variable "timestamping".
4149
4150         * main.c (main): New option 'N'.
4151
4152         * http.c (hgetlocation): Case-insensitive match.
4153         (hgetmodified): New function.
4154         (http_loop): Implement time-stamping.
4155
4156 1996-06-28  Hrvoje Niksic  <hniksic@srce.hr>
4157
4158         * version.c: Changed version to 1.4b10
4159
4160         * atotm.c: New file, from phttpd.
4161
4162         * options.h (struct options): New parameter timestamping.
4163
4164         * version.c: 1.4b9 "released".
4165
4166         * recur.c (recursive_retrieve): Used linked list (ulist) for
4167         faster storing of URLs.
4168
4169         * url.c (get_urls_html): Removed the old kludge with comparing the
4170         outputs of htmlfindurl and findurl.
4171         (get_urls_html): Added better protocol support here.
4172         (create_hash): Removed, as well as add_hash and in_hash.
4173         (addslist): New function.
4174         (in_slist): ditto
4175
4176         * version.c: Released 1.4b8, changed version to b9.
4177
4178 1996-06-27  Hrvoje Niksic  <hniksic@srce.hr>
4179
4180         * ftp.c (freefileinfo): New function.
4181         (delelement): New function.
4182
4183         * everywhere: GPL!
4184
4185         * ftp.c (ftp_loop): Use ccon.
4186         (ftp_retrieve_glob): Likewise.
4187
4188         * ftp.h: Define ccon, to define status of control connection.
4189
4190         * ftp.c (ftp_get_listing): New function.
4191         (ftp_retrieve_more): New function.
4192         (ftp_retrieve_glob): New function.
4193
4194 1996-06-25  Hrvoje Niksic  <hniksic@srce.hr>
4195
4196         * configure.in: Removed the search for cuserid().
4197
4198         * init.c (getmode): Renamed to getperms.
4199
4200 1996-06-24  Hrvoje Niksic  <hniksic@srce.hr>
4201
4202         * version.c: New version.
4203
4204         * main.c (hangup): New function, that handles hangup. Hangup
4205         signal now causes geturl to stop writing on stdout, and to write
4206         to a log file.
4207
4208         * ftp.c (getftp): "Released" 1.4b7.
4209
4210         * html.c (htmlfindurl): Ignore everything inside <head>...</head>.
4211         (ftp_index): Use fileinfo/urlinfo.
4212
4213         * ftp-unix.c (ftp_parse_ls): New function.
4214         (symperms): New function.
4215
4216         * ftp.c (ftp_1fl_loop): New function, to handle 1-file loops.
4217
4218         * retr.c (retrieve_url): Added FTP support.
4219
4220 1996-06-23  Hrvoje Niksic  <hniksic@srce.hr>
4221
4222         * geturl.h: Removed NOTFTP2HTML enum.
4223         Added DO_LOGIN, DO_CWD and DO_LIST. LIST_ONLY is obsolete.
4224
4225         * ftp.c (getftp): Resynched with urlinfo.
4226         (getftp): Removed HMTL-ization of index.html from getftp.
4227
4228         * version.c: 1.4b6 "released".
4229
4230         * options.h (options): New struct, to keep options in.
4231
4232         * http.c (http_loop,gethttp): Synched with proxy.
4233
4234         * retr.c (retrieve_url): Implemented proxy retrieval.
4235
4236         * main.c (main): Use retrieve_from_file.
4237
4238 1996-06-22  Hrvoje Niksic  <hniksic@srce.hr>
4239
4240         * retr.c (retrieve_from_file): New function.
4241
4242         * url.c (parseurl): Modified to return URLOK if all OK. Protocol
4243         can be found in u->proto.
4244
4245         * ftp.c (ftp_response): Fixed to accept multi-line responses as
4246         per RFC 959.
4247
4248         * recr.c (recursive_retrieve): Take newloc from retrieve_url.
4249
4250         * url.c (mymkdir): Removed the file of the same name, if one
4251         exists.
4252         (isfile): New function.
4253         (mkstruct): Fixed the '/' glitches.
4254         (path_simplify): Hacked to treat something/.. correctly.
4255
4256 1996-06-21  Hrvoje Niksic  <hniksic@srce.hr>
4257
4258         * http.c (gethttp): Close the socket after error in headers.
4259         (http_loop): HEOF no longer a fatal header.
4260
4261         * loop.c (retrieve_url): When dt is NULL, do not modify it. This
4262         simplifies the syntax of calling retrieve_url.
4263
4264         * recr.c (recursive_retrieve): Modified to use get_urls_html.
4265
4266         * url.c (get_urls_file): New function.
4267         (get_urls_html): New function.
4268
4269         * recr.c (recursive_retrieve): Patched up to conform to the
4270         standards.
4271
4272         * http.c (gethttp): Synched with the rest...
4273         (gethttp): Treat only CONREFUSED specially, with connection
4274         errors.
4275
4276         * init.c,geturl.1,http.c (http_loop): Removed kill_error.
4277
4278 1996-06-20  Hrvoje Niksic  <hniksic@srce.hr>
4279
4280         * http.c (http_loop): New function.
4281
4282         * loop.c: Removed *lots* of stuff from retrieve_url.
4283
4284         * url.c (parseurl): Changed to work with urlinfo. Integrated
4285         username finding and path parsing.
4286         (newurl): New function.
4287         (freeurl): New function.
4288         (mkstruct): Removed the old bogosities, made it urlinfo-compliant.
4289         (url_filename): Likewise.
4290         (path_simplify): Accept relative paths too.
4291         (opt_url): Made urlinfo-compliant, removed bogosities.
4292         (path_simplify): Expanded to accept relative paths.
4293         (str_url): A replacement for hide_url
4294         (decode_string): Fixed a bug that caused malfunctioning when
4295         encountering an illegal %.. combination.
4296         (opt_url): Removed the argument. Dot-optimizations are now default.
4297
4298         * nmalloc.c (strdupdelim): New function.
4299
4300         * url.h: Added the urlinfo structure
4301
4302 1996-06-19  Hrvoje Niksic  <hniksic@srce.hr>
4303
4304         * url.c (hide_url): Thrown out the protocol assertion. Do not
4305         change the URL if the protocol if not recognized.
4306         (findurl): Put continue instead of break.
4307
4308 1996-06-18  Hrvoje Niksic  <hniksic@srce.hr>
4309
4310         * sample.geturlrc: Changed the defaults to be commented out and
4311         harmless (previous defaults caused pains if copied to
4312         ~/.geturlrc).
4313
4314         * http.c (gethttp): Print the HTTP request in debug mode.
4315
4316         * connect.c (iread): Added EINTR check loop to select-ing
4317         too. EINTR is now correctly handled with select().
4318
4319         * TODO: new file
4320
4321 1996-05-07  Hrvoje Niksic  <hniksic@srce.hr>
4322
4323         * host.c (same_host): Made the function a little bit more
4324         intelligent regarding diversified URL syntaxes.
4325
4326         * url.c (skip_url): Spaces are now skipped after URL:
4327
4328         * Released 1.3.1 with the patch to prevent crashing when sending
4329         NULL to robot* functions and the patch to compile "out of the box"
4330         on AIX.
4331
4332         * recr.c (recursive_retrieve): Added checking whether this_url is
4333         NULL when calling the robot functions.
4334
4335         * ChangeLog: New file.