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