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