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