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