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