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