]> sjero.net Git - wget/blob - src/ChangeLog
[svn] Document the Opie code better. Use uint32_t instead of unsigned long
[wget] / src / ChangeLog
1 2003-11-01  Hrvoje Niksic  <hniksic@xemacs.org>
2
3         * ftp-opie.c (calculate_skey_response): Use uint32_t instead of
4         `unsigned long' for the cheksum array.  Document the function.
5
6 2003-11-01  Hrvoje Niksic  <hniksic@xemacs.org>
7
8         * connect.c (acceptport): Don't call select_fd when timeout is not
9         requested.
10
11 2003-11-01  Hrvoje Niksic  <hniksic@xemacs.org>
12
13         * host.c: Removed the ip_default_family global variable.
14
15         * host.c (lookup_host): Document the function.  Fixed declaration
16         of VEC.
17
18 2003-10-31  Hrvoje Niksic  <hniksic@xemacs.org>
19
20         * various: Use new macros xnew, xnew0, xnew_array, and xnew0_array
21         in various places.
22
23 2003-10-31  Hrvoje Niksic  <hniksic@xemacs.org>
24
25         * wget.h: Move declarations of malloc and logging code to
26         xmalloc.h and log.h respectively to unclutter this file.
27         (STRDUP_ALLOCA): Made it side-effect free.
28
29         * xmalloc.h: New files.  Define macros xnew, xnew0, xnew_array,
30         and xnew0_array.
31
32         * xmalloc.c: New file.  Move the xmalloc routines here.
33
34 2003-10-31  Hrvoje Niksic  <hniksic@xemacs.org>
35
36         * connect.c (sockaddr_set_data): Remove the broken code that
37         checked for NULL address.
38
39 2003-10-31  Hrvoje Niksic  <hniksic@xemacs.org>
40
41         * host.c (address_list_from_single): Removed.
42         (address_list_from_ipv4_addresses): Renamed from
43         address_list_from_vector.
44
45 2003-10-31  Hrvoje Niksic  <hniksic@xemacs.org>
46
47         * sysdep.h (CLOSE): Don't call close on file descriptors less than
48         0, i.e. on uncreated sockets.
49
50         * connect.c (resolve_bind_address): Work on struct sockaddr
51         directly.
52         (connect_to_host): Replacement for connect_to_many.  Resolve HOST
53         and connect to any of its addresses.  If we can't connect and the
54         host name lookup was cached, try to resolve it again.  This should
55         fix problems with hosts behind dynamic DNS.  Updated all callers.
56         (connect_to_ip): Replacement for connect_to_one.  Removed SILENT;
57         added the argument PRINT instead.  Updated all callers.
58         (set_connection_host_name): Removed.
59
60         * host.c (address_list_address_at): New function instead of
61         address_list_copy_one. It returns a pointer to ip_address *, so
62         it's not necessary to copy the data.
63         (address_list_cached_p): New function.
64         (forget_host_lookup): Ditto.
65
66         * connect.c: Got rid of the MSOCK global variable.  Made bindport
67         return the local socket it creates.  Added a new argument to
68         acceptport, the socket to call accept on.  Updated callers.
69         (closeport): Removed.
70
71         * connect.c: Moved the sockaddr code from host.c to this file,
72         because most of that stuff is used for connecting, and has nothing
73         to do with host names anyway.
74         (sockaddr_set_data, sockaddr_get_data): New functions, replace the
75         old sockaddr_set_address, sockaddr_set_port, sockaddr_get_address,
76         and sockaddr_get_port.
77
78 2003-10-30  Hrvoje Niksic  <hniksic@xemacs.org>
79
80         * sysdep.h: Use `S >= 8' rather than `S == 8' when looking for
81         large integers.
82
83 2003-10-30  Hrvoje Niksic  <hniksic@xemacs.org>
84
85         * url.c (append_uri_pathel): New argument ESCAPED_P that says
86         whether [B, E) is to be treated as URL-escaped or not.  If
87         ESCAPED_P is false, don't unescape the region.
88         (url_file_name): u->file is not URL-escaped.
89
90 2003-10-30  Hrvoje Niksic  <hniksic@xemacs.org>
91
92         * retr.c (retrieve_from_file): Use retrieve_tree for
93         page-requisites.
94
95         * main.c (main): Don't define opt.recursive when -p is used.
96         Instead, make sure that recursion is used for HTTP in that case.
97
98 2003-10-29  Hrvoje Niksic  <hniksic@xemacs.org>
99
100         * host.h: Defined accessors for elements of ip_address.  Updated
101         all callers.
102         (address_list_match_all): Use memcmp in the non-IPv6 case.
103
104         * wget.h (CONNECT_ERROR): Don't retry connecting if connect()
105         returned EAFNOSUPPORT.
106
107 2003-10-27  Mauro Tortonesi <mauro@deepspace6.net>
108
109         * host.c, connect.c, ftp.c, ...: Added support for dual-family
110         IPv6.  Reworked FTP code.  [More complete description to come.]
111
112 2003-10-26  Hrvoje Niksic  <hniksic@xemacs.org>
113
114         * sysdep.h: Include inttypes.h where available.
115
116         * host.c: Switch from u_int32_t to uint32_t.
117
118 2003-10-26  Hrvoje Niksic  <hniksic@xemacs.org>
119
120         * netrc.c (parse_netrc): Reset the QUOTE flag after the closing
121         quote.
122
123 2003-10-25  Hrvoje Niksic  <hniksic@xemacs.org>
124
125         * url.c (is_valid_ipv6_address): Reformat to GNU coding style.
126         Use enums for NS_IN* constants.  Use ISXDIGIT.
127
128         * convert.c (construct_relative): Document better how the function
129         works.
130
131 2003-10-23  Hrvoje Niksic  <hniksic@xemacs.org>
132
133         * config.h.in: Deploy preprocessor magic to avoid Ultrix's
134         <netdb.h> include <bitypes.h> which defines its own u_int32_t.
135         Reported by Bernhard Simon.
136
137 2003-10-23  Hrvoje Niksic  <hniksic@xemacs.org>
138
139         * version.c: Bump version.
140
141 2003-10-23  Hrvoje Niksic  <hniksic@xemacs.org>
142
143         * url.c: Ditto.
144
145         * html-parse.c (advance_declaration): Don't use trailing comma in
146         enum because older compilers don't support it.
147
148         * utils.c: Don't redefine HAVE_SIGSETJMP.
149
150 2003-10-16  Hrvoje Niksic  <hniksic@xemacs.org>
151
152         * convert.c (construct_relative): Don't handle absolute files
153         specially -- for example, -P/tmp/foo shouldn't imply that
154         converted files must refer to "/tmp/foo/..."!
155
156 2003-10-15  Hrvoje Niksic  <hniksic@xemacs.org>
157
158         * http.c: Consider status 307 a valid redirect.
159
160 2003-10-15  Philip Stadermann  <philip.stadermann@credativ.de>
161
162         * ftp.c (ftp_retrieve_glob): Correctly loop through the list whose
163         elements might have been deleted.
164
165 2003-10-13  Hrvoje Niksic  <hniksic@xemacs.org>
166
167         * html-url.c (tag_handle_meta): Set the Refresh link to expect
168         HTML.
169         (append_one_url): Renamed to append_url.
170
171 2003-10-13  Hrvoje Niksic  <hniksic@xemacs.org>
172
173         * sysdep.h: Only define u_int32_t.
174
175 2003-10-11  Hrvoje Niksic  <hniksic@xemacs.org>
176
177         * utils.c (large_int_to_string): Use snprintf() to print the
178         number.  This will work even on systems where libc doesn't
179         understand %lld, but the compiler does, because it will use our
180         snprintf replacement.
181
182         * init.c (parse_bytes_helper): New function.
183         (cmd_bytes): Use it to parse bytes, but cast the result to long.
184         (cmd_bytes_large): Ditto, but store the result to LARGE_INT.  Used
185         for --quota so that --quota=10G works even on machines without
186         long long.
187
188         * options.h (struct options): Declare quota as LARGE_INT.
189
190         * retr.c (downloaded_exceeds_quota): Removed.
191         (downloaded_increase): Ditto.
192         (total_downloaded_bytes): New variable, replaces opt.downloaded,
193         which was the wrong place for it anyway.  Updated callers of
194         downloaded_exceeds_quota and downloaded_increase to check this
195         variable directly.
196
197         * sysdep.h: Get rid of VERY_LONG_TYPE.  Use LARGE_INT for the same
198         purpose, defined as `long', `long long' or `double', depending on
199         size of long and whether long long is available.
200
201 2003-10-11  Hrvoje Niksic  <hniksic@xemacs.org>
202
203         * sysdep.h: Also check size of short for int32_t.
204
205 2003-10-11  Hrvoje Niksic  <hniksic@xemacs.org>
206
207         * host.c (lookup_host): Use u_int32_t to store the result of
208         inet_addr().  That removes the need for offset fiddling, caring
209         about endian-ness, etc.
210
211         * sysdep.h: Define int32_t and u_int32_t if not available.
212
213 2003-10-11  Hrvoje Niksic  <hniksic@xemacs.org>
214
215         * ftp-basic.c (ftp_epsv): Use socklen_t * as the third argument to
216         getpeername.
217
218         * config.h.in: Define socklen_t stub.
219
220         * host.c (sockaddr_len): Return socklen_t.
221
222         * connect.c (conaddr): Use socklen_t as the third argument to
223         accept, getsockname, and connect.
224
225 2003-10-10  Hrvoje Niksic  <hniksic@xemacs.org>
226
227         * recur.c (retrieve_tree): Don't descend into documents that are
228         not expected to contain HTML, regardless of their content-type.
229
230         * html-url.c (tag_url_attributes): Record which attributes are
231         supposed to yield HTML links that can be followed.
232         (tag_find_urls): Propagate that information to the caller through
233         struct urlpos.
234
235 2003-10-10  Hrvoje Niksic  <hniksic@xemacs.org>
236
237         * hash.c (find_mapping): Return the next available mapping when
238         the key is not found, not NULL.
239         (hash_table_put): Use find_mapping to find the storage for the new
240         data.
241         (hash_table_put): Grow the table before exceeding maximum
242         fullness, not afterwards.
243
244 2003-10-10  Hrvoje Niksic  <hniksic@xemacs.org>
245
246         * hash.c (hash_table_new): Slightly change the meaning of the
247         first parameter.  Instead of being the minimum initial size, it is
248         now the minimum number of items that the hash table can take
249         without needing to resize.
250
251 2003-10-09  Hrvoje Niksic  <hniksic@xemacs.org>
252
253         * html-url.c (init_interesting): Initialize interesting_tags and
254         interesting_attributes as hash tables.  This simplifies the code
255         immensely because hash tables handle allocation and remove
256         duplicates automatically.
257         (find_tag): Removed.
258         (collect_tags_mapper): Instead of calling find_tag, simply get the
259         entry from interesting_tags hash table, which is both simpler and
260         faster.
261
262 2003-10-09  Hrvoje Niksic  <hniksic@xemacs.org>
263
264         * hash.c (hash_table_get): Declare hash-table argument as const.
265         (find_mapping): Ditto.
266         (hash_table_get_pair): Ditto.
267         (hash_table_contains): Ditto.
268         (hash_table_count): Ditto.
269
270 2003-10-08  Hrvoje Niksic  <hniksic@xemacs.org>
271
272         * html-url.c (get_urls_html): Parse the appropriate flags to
273         html-parse.c.
274
275         * html-parse.c (map_html_tags): Accept FLAGS from the caller
276         instead of examining OPT.
277
278 2003-10-08  Hrvoje Niksic  <hniksic@xemacs.org>
279
280         * html-url.c (find_tag): Switch to binary search.
281
282 2003-10-08  Hrvoje Niksic  <hniksic@xemacs.org>
283
284         * main.c (print_help): Fix typo; stured -> stored.
285
286 2003-10-08  Hrvoje Niksic  <hniksic@xemacs.org>
287
288         * getopt.c: Add definitions of getopt_long and getopt_long_only.
289
290 2003-10-08  Hrvoje Niksic  <hniksic@xemacs.org>
291
292         * config.h.in: Renamed DEBUG to ENABLE_DEBUG.  ENABLE_DEBUG is, I
293         think, a better name, because it implies that debugging output is
294         merely possible, not "on by default", as might be construed from
295         just DEBUG.
296
297 2003-10-08  Hrvoje Niksic  <hniksic@xemacs.org>
298
299         * ftp.c (has_insecure_name_p): Define it here.
300
301         * utils.c (has_wildcards_p): Define it here.
302
303         * sysdep.h: Declare fnmatch-related macros here, if not using
304         system fnmatch().  Update .c files to not declare fnmatch.h
305         directly.
306
307         * cmpt.c (fnmatch): Moved here.  Use it only under non-GNU libc.
308
309 2003-10-08  Hrvoje Niksic  <hniksic@xemacs.org>
310
311         * getopt.c: Newer version, imported from Free libit.
312
313 2003-10-07  Hrvoje Niksic  <hniksic@xemacs.org>
314
315         * cookies.c (struct cookie): Remove unused backpointer to cookie
316         jar.
317
318 2003-10-07  Hrvoje Niksic  <hniksic@xemacs.org>
319
320         * cmpt.c (memmove): Comment out, since it's no longer used.
321
322         * cookies.c (cookie_jar_generate_cookie_header): Allocate room for
323         chains in one pass.
324         (find_chains_of_host): Assume that the caller has allocated DEST
325         to be sufficiently large to take all the data.
326         (eliminate_dups): Run through the array and eliminate dups on the
327         fly instead of using memmove.
328         (cookie_jar_process_set_cookie): Free cookie->domain before
329         re-setting it.
330
331 2003-10-05  Gisle Vanem  <giva@bgnett.no>
332
333         * mswindows.c (set_sleep_mode): Fix type of
334         _SetThreadExecutionState.
335
336 2003-10-05  Hrvoje Niksic  <hniksic@xemacs.org>
337
338         * utils.c (file_size): Return -1 if fopen() returns NULL.  Prior
339         to this patch, wget --post-file=nosuchfile dumped core.
340
341 2003-10-04  Gisle Vanem  <giva@bgnett.no>
342
343         * mswindows.c (run_with_timeout): Use WaitForSingleObject to wait
344         for thread termination.
345
346 2003-10-04  Hrvoje Niksic  <hniksic@xemacs.org>
347
348         * log.c: Use `...' in function definitions; ansi2knr will convert
349         them to va_dcl.  This allowed removal of the ugly VA_START_1 and
350         VA_START_2 macros.
351
352 2003-10-03  Gisle Vanem  <giva@bgnett.no>
353
354         * connect.c: And don't include them here.
355
356         * mswindows.h: Include winsock headers here.
357
358 2003-10-03  Hrvoje Niksic  <hniksic@xemacs.org>
359
360         * html-parse.c (convert_and_copy): Move variable declarations
361         before statements.
362
363 2003-10-02  Gisle Vanem  <giva@bgnett.no>
364         
365         * mswindows.c (run_with_timeout): For Windows: Run the 'fun' in a
366         thread via a helper function. Continually query the thread's
367         exit-code until finished or timed out.
368
369 2003-10-02  Hrvoje Niksic  <hniksic@xemacs.org>
370
371         * wget.h (XMALLOC_ARRAY): Removed.
372         (ALLOCA_ARRAY): Ditto.
373
374         * html-parse.c: Renamed alloca_p to resized.
375         (GROW_ARRAY): Renamed DO_REALLOC_FROM_ALLOCA to GROW_ARRAY and
376         returned it to html-parse.c, since nothing else was using it.
377
378 2003-10-02  Hrvoje Niksic  <hniksic@xemacs.org>
379
380         * retr.c (retrieve_url): Initialize DUMMY storage for DT.  Caught
381         by valgrind.
382
383 2003-10-02  Hrvoje Niksic  <hniksic@xemacs.org>
384
385         * html-parse.c (convert_and_copy): Handle numeric entities in
386         hexadecimal, &#xHH.
387         (convert_and_copy): Copy the contents directly to the pool without
388         a stack-allocated intermediary.
389
390 2003-10-02  Hrvoje Niksic  <hniksic@xemacs.org>
391
392         * utils.c (alarm_set): New function; use either setitimer or alarm
393         to set up the alarm.
394         (alarm_cancel): New function; cancel the alarm set up by
395         alarm_set.
396         (run_with_timeout): Use them.
397
398 2003-10-01  Hrvoje Niksic  <hniksic@xemacs.org>
399
400         * url.c (url_parse): Don't leak memory when a reencoded URL turns
401         out to be invalid.
402
403         * url.c (parse_errors): Mark error messages for translation.
404         (url_error): Translate error messages returned to the caller.
405
406 2003-10-01  Hrvoje Niksic  <hniksic@xemacs.org>
407
408         * ftp.c (ftp_loop_internal): Initialize TMRATE to NULL to shut up
409         the compiler.
410
411 2003-09-26  Gisle Vanem  <giva@bgnett.no>
412
413         * src/mswindows.c: Added ws_percenttitle() showing progress in the
414         window titlebar. Called from retr.c. Secured ws_mypath().
415
416         * windows/config.h.ms: alloca() prototype not needed.  Removed
417         "#undef ENABLE_NLS"; should be in Makefile IMHO. Moved
418         WGET_USE_STDARG from mswindows.h to config.ms.h because of #ifdef
419         in log.c. (MSVC's vararg.h and stdarg.h are incompatible).
420
421 2003-09-29  Aaron Hawley <Aaron.Hawley@uvm.edu>
422
423         * ftp.c (getftp): --spider option should now work with FTP
424         downloads.
425         (ftp_loop_internal): quiet reports and calculations of downloads
426         when --spider option set, nor try deleting when --delete-after
427         also set.
428         (ftp_loop): --spider will skip HTML-ification of .listing file.
429
430 2003-09-26  Gisle Vanem  <giva@bgnett.no>
431
432         * mswindows.c (read_registry): Removed.
433         (set_sleep_mode): New function.
434         (windows_main_junk): Call it.
435
436 2003-09-26  Gisle Vanem  <giva@bgnett.no>
437
438         * mswindows.c (read_registry): Fix invocation of registry
439         functions.
440
441         * mswindows.c (read_registry): Condition definitions of sleep and
442         usleep with not HAVE_SLEEP and HAVE_USLEEP respectively.  Define
443         HAVE_SLEEP and HAVE_USLEEP under __DMC__.
444
445 2003-09-24  Hrvoje Niksic  <hniksic@xemacs.org>
446
447         * url.c (url_escape_1): Revert unintentional change to lowercase
448         xdigit escapes.
449         (url_escape_dir): Document that this function depends on the
450         output of url_escape_1.
451
452 2003-09-23  Hrvoje Niksic  <hniksic@xemacs.org>
453
454         * progress.c (create_image): Print the current ETA if we're done
455         with the download.
456         (create_image): Change '-' display char to '+' in the progress bar.
457
458         * Makefile.in (clean): Remove .libs.
459
460 2003-09-23  Hrvoje Niksic  <hniksic@xemacs.org>
461
462         * cookies.c (struct cookie): New flag domain_exact.
463         (update_cookie_field): Skip leading dot in domain.
464         (find_matching_chains): Match numeric addresses exactly; don't
465         needlessly copy HOST to the stack.
466         (matching_cookie): Added argument HOST.  If cookie->domain_exact
467         is set, check that HOST is equal to cookie->domain.
468         (cookie_jar_load): Only use TAB as delimiter.  Document the
469         meaning of DOMAIN-FLAG.  Skip leading dot in domain.
470         (cookie_jar_load): Don't ignore DOMAIN-FLAG -- instead, set
471         domain_exact to true if DOMAIN-FLAG is false.
472         (save_cookies_mapper): If domain_exact is false, prepend the
473         domain with dot, like Mozilla does.
474
475 2003-09-22  Hrvoje Niksic  <hniksic@xemacs.org>
476
477         * progress.c (create_image): Print the initial part of the
478         download with '-' characters, analogous to how dot progress prints
479         the initial part with ','.
480
481         * hash.c (ptrhash): New function.
482         (ptrcmp): Ditto.
483         (hash_table_new): Default to identity hash table.
484
485 2003-09-22  Hrvoje Niksic  <hniksic@xemacs.org>
486
487         * safe-ctype.h (_sch_test): The cast of BIT to unsigned char was
488         broken -- _sch_istable bitmasks are 16-bit, not 8-bit!  Cast BIT
489         to unsigned short instead.
490
491 2003-09-22  Hrvoje Niksic  <hniksic@xemacs.org>
492
493         * url.c (path_simplify): Instead of calls to memmove, handle "./"
494         and "../" by advancing pointers.
495
496 2003-09-22  Hrvoje Niksic  <hniksic@xemacs.org>
497
498         * retr.c (getproxy): Moved from url.c.
499
500         * convert.c: Split off link conversion from url.c into separate
501         file.  Also included the book-keeping stuff from recur.c.
502
503 2003-09-21  Hrvoje Niksic  <hniksic@xemacs.org>
504
505         * init.c: Improved documentation of functions.
506         (cmd_boolean): Attempt to make code that tries to avoid calling
507         strcmp for "speed" a bit more readable.
508
509         * init.c (simple_atof): Report error on encountering non-digit,
510         non-"." character.
511         (simple_atoi): Replacement for myatoi(), calling interface
512         compatible with simple_atof.  Updated myatoi's callers.
513
514 2003-09-21  Bertrand Demiddelaer  <bert@b3rt.org>
515
516         * url.c (path_simplify): Would read two bytes past the end of the
517         string in the "./" case.
518
519 2003-09-21  Matthew J. Mellon  <mellon@tymenet.com>
520
521         * http.c (gethttp): Recognize content-type "application/xhtml+xml"
522         as what Wget considers "text/html".
523
524 2003-09-21  Hrvoje Niksic  <hniksic@xemacs.org>
525
526         * connect.c (connect_with_timeout): Made timeout type double.
527
528         * options.h (struct options): New members read_timeout,
529         dns_timeout, and connect_timeout.
530         Use them.
531
532 2003-09-21  Hrvoje Niksic  <hniksic@xemacs.org>
533
534         * init.c (simple_atof): New function.
535         (cmd_time): Use it.
536         (cmd_bytes): Accept things like "1.5k" and such.  Use simple_atof
537         to parse decimals.
538
539         * retr.c (limit_bandwidth): Adjust each sleep by the error of the
540         previous one.
541
542 2003-09-21  Hrvoje Niksic  <hniksic@xemacs.org>
543
544         * main.c (main): Use setoptval() for setting the options.  Use
545         run_command for `-e'.
546
547         * init.c (parse_line): Rewritten to return COMIND right away.
548         Changed linkage to static.
549         (run_wgetrc): Use the available comind when calling setval, so it
550         doesn't have to be computed twice.
551         (setval_internal): New function, runs the command's action without
552         any error checking.
553         (setoptval): New function, does what setval used to do, but exits
554         in case of error.
555         (run_command): New function.
556
557 2003-09-21  Hrvoje Niksic  <hniksic@xemacs.org>
558
559         * connect.c (select_fd): Change MAXTIME's type to double.  Handle
560         its decimal part.
561
562         * retr.c (sleep_between_retrievals): In the random-wait case, use
563         random_float() to wait between 0 and 2*opt.wait seconds.
564
565         * utils.c (run_with_timeout): Accept `double' timeouts.  Correctly
566         handle timeout values in (0, 1) range.
567         (random_float): New function.
568
569         * options.h (struct options): Change the types of wait, waitretry,
570         and timeout to double.
571
572         * init.c (cmd_time): Accept floating point time.
573
574 2003-09-20  Hrvoje Niksic  <hniksic@xemacs.org>
575
576         * retr.c (get_contents): Cosmetic fixes.
577
578 2003-09-20  Hrvoje Niksic  <hniksic@xemacs.org>
579
580         * url.c (uri_merge): Get rid of uri_merge_1.
581         (uri_merge): Merge "foo//", "bar" as "foo//bar", not "foo///bar",
582         i.e. don't add an extra slash merely because BASE ends with two
583         slashes.
584         (parse_credentials): Renamed from parse_uname.  Rewrittern in
585         standard [beg, end) calling style.
586         (url_skip_credentials): Renamed from url_skip_uname.  Made static.
587         (url_skip_credentials): Include # and ; as terminators.  Old code
588         would mistakenly consider "http://foo.com#hniksic@iskon.hr" to
589         contain a username.
590         (url_skip_scheme): Removed because it was unused.
591         (url_has_scheme): Require "scheme" to be at least one char long.
592
593 2003-09-19  Hrvoje Niksic  <hniksic@xemacs.org>
594
595         * url.c (url_file_name): Expect NULL dir_prefix.
596
597         * init.c (cmd_file): Use a macro to prevent multiple #ifdef
598         WINDOWS.
599         (defaults): Set dir_prefix to NULL by default.
600
601 2003-09-19  Hrvoje Niksic  <hniksic@xemacs.org>
602
603         * safe-ctype.h (_sch_test): Cast BIT to unsigned char, like latest
604         gcc does.
605
606 2003-09-19  Hrvoje Niksic  <hniksic@xemacs.org>
607
608         * wget.h (BOUNDED_TO_ALLOCA): Evaluate PLACE only once.
609         (ARRAY_SIZE): Renamed to countof.  All callers updated.
610
611 2003-09-19  Hrvoje Niksic  <hniksic@xemacs.org>
612
613         * main.c (main): New option --strict-comments.
614
615         * html-parse.c (find_comment_end): New function: simple BM search
616         for "-->".
617         (map_html_tags): Use it if looking at a comment and not in strict
618         comments mode.
619
620 2003-09-17  Aurelien Marchand  <artaxerxes@users.sf.net>
621
622         * ftp.h: Added OS400 system in enum
623         * ftp-basic.c: recognize OS400 systems
624         * ftp.c: don't prepend the CWD if talking to OS400, since it
625         breaks the change in library
626
627 2003-09-18  Hrvoje Niksic  <hniksic@xemacs.org>
628
629         * retr.c (get_contents): Pass the correct argument to ssl_iread.
630
631 2003-09-18  Hrvoje Niksic  <hniksic@xemacs.org>
632
633         * safe-ctype.h: Don't #define ctype.h macros to errors because
634         that loses when someone #include's ctype.h after safe-ctype.h.
635
636 2003-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
637
638         * url.c: Undef U, W, C after use.
639
640 2003-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
641
642         * init.c (cmd_spec_restrict_file_names): Allow the OS setting to
643         be augmented by ",nocontrol" which means don't escape the control
644         characters, but otherwise keep OS settings.
645
646         * url.c (file_unsafe_char): Deleted.
647         (append_uri_pathel): Query filechr_table directly.
648         (filechr_table): Separated Unix, Windows, and control-unsafe
649         characters.
650
651 2003-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
652
653         * url.c (url_escape_1): New function.
654         (url_escape): Use it.
655         (sync_path): Handle pathological cases where u->file and u->dir
656         contain really strange characters.
657         (ENCODE): Deleted.
658         (REENCODE): Deleted.
659
660 2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
661
662         * url.c (url_file_name): Don't reallocate FNAME if the file
663         doesn't exist, as is usually the case.
664
665         * utils.c (unique_name): New flag allow_passthrough.
666
667 2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
668
669         * utils.c (wtimer_sys_diff): Convert the time difference to signed
670         __int64, then to double.  This works around MS VC++ 6 which can't
671         convert unsigned __int64 to double directly.
672
673 2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
674
675         * Makefile.in (clean): Also remove the core.<number> files
676         produced by recent Linux systems.
677
678 2003-09-16  Hrvoje Niksic  <hniksic@xemacs.org>
679
680         * http.c (post_file): Don't pad the file if it's not large
681         enough.  Bail out instead.
682
683 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
684
685         * retr.c (get_contents): Reduce the buffer size to the amount of
686         data that may pass through for one second.  This prevents long
687         sleeps when limiting bandwidth.
688
689         * connect.c (connect_to_one): Reduce the socket's RCVBUF when
690         bandwidth limitation to small values is requested.
691
692 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
693
694         * progress.c (update_speed_ring): Moved the speed ring update to a
695         separate function and documented it better.
696
697         * progress.c: Use `double' for most timers to support granularity
698         smaller than 1ms.
699
700 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
701
702         * wget.h (XDIGIT_TO_XCHAR): Implement as index into a literal
703         string.
704         (XDIGIT_TO_xchar): Ditto.
705
706 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
707
708         * utils.c: Change the type of timer-related functions from long to
709         double, for better precision.  On machines supporting gettimeofday
710         the timers now work with granularity of less than one millisecond.
711
712 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
713
714         * cookies.c (parse_set_cookies): Fixed the parser to handle more
715         edge conditions.
716         (test_cookies): New function, contains a test suite for
717         parse_set_cookies.
718
719 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
720
721         * url.c (strpbrk_or_eos): Implement as a macro under Gcc.
722
723 2003-09-15  Hrvoje Niksic  <hniksic@xemacs.org>
724
725         * cookies.c (parse_set_cookies): Allow trailing space in
726         set-cookies header.  Also, allow any amount of whitespace, not
727         only one character.  Allow empty set-cookies header without
728         spewing an error.
729
730 2003-09-14  Hrvoje Niksic  <hniksic@xemacs.org>
731
732         * url.c (append_uri_pathel): Use opt.restrict_file_names when
733         calling file_unsafe_char.
734
735         * init.c: New command restrict_file_names.
736
737         * main.c (main): New option --restrict-file-names[=windows,unix].
738
739         * url.c (url_file_name): Renamed from url_filename.
740         (url_file_name): Add directory and hostdir prefix here, not in
741         mkstruct.
742         (append_dir_structure): New function, does part of the work that
743         used to be in mkstruct.  Iterates over path elements in u->path,
744         calling append_uri_pathel on each one to append it to the file
745         name.
746         (append_uri_pathel): URL-unescape a path element and reencode it
747         with a different set of rules, more appropriate for handling of
748         files.
749         (file_unsafe_char): New function, uses a lookup table to decide
750         whether a character should be escaped for use in file name.
751         (append_string): New utility function.
752         (append_char): Ditto.
753         (file_unsafe_char): New argument restrict_for_windows, decide
754         whether Windows file names should be escaped in run-time.
755
756         * connect.c: Include <stdlib.h> to get prototype for abort().
757
758 2003-09-14  Hrvoje Niksic  <hniksic@xemacs.org>
759
760         * utils.c (wtimer_sys_set): Extracted the code that sets the
761         current time here.
762         (wtimer_reset): Call it.
763         (wtimer_sys_diff): Extracted the code that calculates the
764         difference between two system times here.
765         (wtimer_elapsed): Call it.
766         (wtimer_elapsed): Don't return a value smaller than the previous
767         one, which could previously happen when system time is set back.
768         Instead, reset start time to current time and note the elapsed
769         offset for future calculations.  The returned times are now
770         guaranteed to be monotonically nondecreasing.
771
772 2003-09-10  Hrvoje Niksic  <hniksic@xemacs.org>
773
774         * host.c (lookup_host): Print the result of the DNS lookup.
775
776 2003-09-10  Hrvoje Niksic  <hniksic@xemacs.org>
777
778         * init.c (cmd_boolean): Accept yes/no along with on/off.
779         (cmd_lockable_boolean): Ditto.
780
781 2003-09-10  Hrvoje Niksic  <hniksic@xemacs.org>
782
783         * init.c: New command dns_cache.
784
785         * main.c (main): New option --dns-cache[=off].
786
787 2003-09-09  Hrvoje Niksic  <hniksic@xemacs.org>
788
789         * config.h.in: Initialize HAVE_GETADDRINFO and ENABLE_IPV6.
790
791         * all: Use #ifdef ENABLE_IPV6 instead of the older INET6.  Use
792         HAVE_GETADDRINFO for getaddrinfo-related stuff.
793
794 2003-09-09  Hrvoje Niksic  <hniksic@xemacs.org>
795
796         * url.c (url_parse): Return an error if the URL contains a [...]
797         IPv6 numeric address and we don't support IPv6.
798
799 2003-09-05  Hrvoje Niksic  <hniksic@xemacs.org>
800
801         * url.c (is_valid_ipv6_address): Modified to not require
802         zero-terminated strings.
803         (is_valid_ipv4_address): Ditto.
804
805 2003-09-05  Mauro Tortonesi <mauro@deepspace6.net>
806
807         src/url.c: added RFC 2732 compliance for URL parsing. The
808         functions is_*_address valid are a modified version of
809         glibc 2.3.2 inet_pton's code.
810
811 2003-09-03  Ahmon Dancy  <dancy@dancysoft.com>
812
813         * main.c init.c options.h: Added --retry-connrefused option so
814         that Connection Refused failures are treated as non-fatal (when
815         trying to retrieve from busy servers).
816
817         * wget.h: New CONNECT_ERROR macro for encapsulating this
818         modification.
819
820         * ftp.c http.c : Use CONNECT_ERROR macro in places where
821         ECONNREFUSED was checked.
822
823 2003-01-11  Ian Abbott  <abbotti@mev.co.uk>
824
825         * ftp.c (ftp_retrieve_glob): Reject insecure filenames as determined
826         by calling new function has_insecure_name_p.  This is based on a
827         patch by Red Hat.
828
829         * fnmatch.c (has_insecure_name_p): New function: returns non-zero
830         if filename starts with `/' or contains `../' and is therefore
831         considered insecure.
832
833         * fnmatch.h: Declare has_insecure_name_p().
834
835 2002-08-03  Hrvoje Niksic  <hniksic@xemacs.org>
836
837         * init.c (cmd_file): Allocate RESULT correctly.
838
839 2002-07-24  Hrvoje Niksic  <hniksic@xemacs.org>
840
841         * recur.c (retrieve_tree): Check whether downloaded_html_set is
842         non-NULL before using it.
843
844 2002-05-27  Hrvoje Niksic  <hniksic@arsdigita.com>
845
846         * html-parse.c (NAME_CHAR_P): Allow almost any character here.
847
848 2002-05-24  Hrvoje Niksic  <hniksic@arsdigita.com>
849
850         * progress.c (bar_set_params): Fall back to dot progress if the
851         terminal type is "emacs".
852
853 2002-05-20  Hrvoje Niksic  <hniksic@arsdigita.com>
854
855         * log.c: Don't #undef WGET_USE_STDARG.
856
857 2002-05-16  Hrvoje Niksic  <hniksic@arsdigita.com>
858
859         * hash.c (prime_size): Store the offset of the prime number in the
860         prime table.  When searching, start with the given offset.
861         (hash_table_new): Pass the pointer to ht->prime_offset to
862         prime_size.
863         (grow_hash_table): Ditto.
864         (prime_size): Make 13 the first prime to make empty hash tables
865         slightly smaller.
866
867 2002-05-16  Ian Abbott  <abbotti@mev.co.uk>
868
869         * recur.c (download_child_p): Minor optimization to avoid an
870         unnecessary additional call to schemes_are_similar_p function.
871
872 2002-05-16  Ian Abbott  <abbotti@mev.co.uk>
873
874         * url.c (schemes_are_similar_p): New function to test enumerated
875         scheme codes for similarity.
876
877         * url.h: Declare it.
878
879         * recur.c (download_child_p): Use it to compare schemes.  This
880         also fixes a bug that allows hosts to be spanned (without the
881         -H option) when the parent scheme is https and the child's is
882         http or vice versa.
883
884 2002-05-14  Bill Richardson  <bill@riverstonenet.com>
885
886         * ftp.c (getftp): Don't ftruncate stdout.
887
888         * http.c (gethttp): Don't ftruncate stdout.
889
890 2002-05-09  Ian Abbott  <abbotti@mev.co.uk>
891
892         * cmpt.c (strptime_internal): Synched with glibc-2.1.3.
893         (get_number): Ditto.
894         (get_alt_number): Ditto.
895         (__isleap): New function-like macro used by strptime.
896         (day_of_the_week): New function used by strptime.
897         (day_of_the_year): Ditto.
898         (__mon_yday): Now shared by mktime and strptime implementations.
899
900 2002-05-08  Hrvoje Niksic  <hniksic@arsdigita.com>
901
902         * cookies.c (check_domain_match): Use match_tail in case
903         insensitive mode.
904
905         * utils.c (match_tail): Allow the caller to specify case
906         insensitive mode.
907
908         * cookies.c (store_cookie): When expiry_time is 0, print it as
909         undefined, not indefinite.
910
911 2002-05-07  Ian Abbott  <abbotti@mev.co.uk>
912
913         * cookies.c (cookie_jar_process_set_cookie): Do not store
914         discarded cookie.
915
916 2002-04-21  Hrvoje Niksic  <hniksic@arsdigita.com>
917
918         * cookies.c (check_domain_match): Allow cookies to be set for
919         subdomains of unknown top-level domains under some circumstances.
920
921 2002-04-21  Thomas Lussnig  <thomas.lussnig@bewegungsmelder.de>
922
923         * gen_ssl.c:
924         - allow checking of server cert
925         - allow defining client cert type
926         - allow limit of ssl protocol
927         - check more return values
928         - added debug message on break
929
930 2002-04-21  Hrvoje Niksic  <hniksic@arsdigita.com>
931
932         * recur.c (download_child_p): Revert order of items in check
933         number 6 for clarity.
934
935 2002-04-20  Hrvoje Niksic  <hniksic@arsdigita.com>
936
937         * init.c: Ditto.
938
939         * main.c: Ditto.
940
941         * http.c: Use the new interface.
942
943         * cookies.c: Provide an OO-style "cookie jar" interface to enable
944         separate cookie jars.
945
946         * http.c (http_atotm): Declare argument as const.
947
948 2002-04-20  Hrvoje Niksic  <hniksic@arsdigita.com>
949
950         * cookies.c (cookie_new): Default to PORT_ANY.
951         (find_cookie_chain_exact): Only search by DOMAIN.
952         (find_matching_cookie): Also check that PORT matches.
953         (store_cookie): Only match the domain.
954         (set_cookie_header_cb): When a cookie "fakes" a domain, assume it
955         is valid for that host rather than discarding it completely.
956         (find_matching_chains): Don't search by PORT.
957         (matching_cookie): Also match PORT.
958         (load_cookies): Set the port if specified, otherwise leave it as
959         ANY.
960         (save_cookies_mapper): Save the port if specified, otherwise leave
961         it empty.
962
963 2002-04-19  Thomas Lussnig  <thomas.lussnig@bewegungsmelder.de>
964
965         * init.c: The option `egdfile' was not in sort order.
966
967 2002-04-16  Hrvoje Niksic  <hniksic@arsdigita.com>
968
969         * ftp.c (getftp): Treat directories that begin with <letter>: as
970         absolute.
971         (getftp): Strip trailing slashes from con->id before merging it
972         with TARGET.
973
974 2002-04-16  Hrvoje Niksic  <hniksic@arsdigita.com>
975
976         * http.c (gethttp): If Content-Type is not given, assume
977         text/html.
978
979 2002-04-15  Hrvoje Niksic  <hniksic@arsdigita.com>
980
981         * recur.c (download_child_p): Don't ignore rejection of HTML
982         documents that are themselves leaves of recursion.
983
984 2002-04-15  Ian Abbott  <abbotti@mev.co.uk>
985
986         Makefile.in: Updated several dependencies for object files to take
987         account of nested include files.
988
989 2002-04-15  Ian Abbott  <abbotti@mev.co.uk>
990
991         Makefile.in: The target `connect$o' (connect.o) now depends on
992         `utils.h'
993
994 2002-04-15  Ian Abbott  <abbotti@mev.co.uk>
995
996         * host.c (SET_H_ERRNO): New function-like macro to set `h_errno'.
997         (gethostbyname_with_timeout): Use it.
998
999         * utils.c: Don't define `SETJMP()', `run_with_timeout_env' or
1000         `abort_run_with_timeout()' when `USE_SIGNAL_TIMEOUT' is undefined.
1001
1002 2002-04-15  Hrvoje Niksic  <hniksic@arsdigita.com>
1003
1004         * host.c (getaddrinfo_with_timeout): New function.
1005         (gethostbyname_with_timeout): Ditto.
1006         (lookup_host): Use them.
1007
1008 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1009
1010         * utils.c (number_to_string): Handle the case when n < -INT_MAX.
1011
1012 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1013
1014         * init.c (comind): Use a marginally faster implementation of
1015         binary search.  To quote Martin Buchholz, "a nanosecond saved is a
1016         nanosecond earned."
1017
1018 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1019
1020         * main.c (print_help): Document `--post-data' and `--post-file'.
1021
1022 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1023
1024         * http.c (gethttp): Ditto.
1025
1026         * retr.c (retrieve_url): Initialize variables to appease the
1027         compiler.
1028
1029         * gen_sslfunc.c (ssl_iread): Don't handle EINTR when calling
1030         select_fd.
1031         (ssl_iwrite): Ditto.
1032
1033         * connect.c (select_fd): Rewrite to handle EINTR.  Set errno to
1034         ETIMEDOUT in case of timeout.
1035         (iread): No need to handle EINTR when calling select_fd.
1036         (iwrite): Ditto.
1037
1038 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1039
1040         * retr.c (retrieve_url): Make sure that POST is not honored for
1041         redirections.
1042
1043         * http.c (gethttp): Send the POST data when requested.
1044         (post_file): New function.
1045         (gethttp): Use it.
1046
1047         * main.c (main): Ditto.
1048
1049         * init.c: Add new options.
1050
1051         * options.h (struct options): New options post_data and
1052         post_file_name.
1053
1054 2002-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1055
1056         * connect.c (connect_with_timeout): Firing SIGALRM can result in
1057         connect() exiting with EINTR.  Treat EINTR the same as ETIMEDOUT.
1058
1059 2002-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
1060
1061         * connect.c (connect_with_timeout): Use it.
1062
1063         * utils.c (run_with_timeout): New function.
1064
1065 2002-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
1066
1067         * url.c (getproxy): Accept a struct url argument.  This obviates
1068         the need for USE_PROXY_P.
1069
1070         * retr.c (retrieve_url): Allow proxy to be a non-FTP URL.
1071
1072         * ftp.c (getftp): Recognize FWTK-style proxy.
1073
1074 2002-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
1075
1076         * config.h.in: Only define _VA_LIST when compiled with gcc.
1077
1078 2002-04012  Ian Abbott  <abbotti@mev.co.uk>
1079
1080         * http.c (http_loop): Compensate for MS Windows two-second
1081         granularity of file modification time when comparing timestamps.
1082
1083         * ftp.c (ftp_retrieve_list): Ditto.
1084
1085 2002-04-12  Ian Abbott  <abbotti@mev.co.uk>
1086
1087         * utils.c (has_html_suffix_p): New function to test filename for
1088         common html extensions.
1089
1090         * utils.h: Declare it.
1091
1092         * http.c (http_loop): Use it instead of previous test.
1093
1094         * retr.c (retrieve_url): Ditto.
1095
1096         * recur.c (download_child_p): Ditto.
1097
1098 2002-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
1099
1100         * config.h.in: Define _VA_LIST on Solaris to prevent stdio.h from
1101         declaring va_list.
1102         From Kevin Rodgers <kevinr@ihs.com>.
1103
1104 2002-04-12  Ian Abbott  <abbotti@mev.co.uk>
1105
1106         * Makefile.in: Specify libtool mode explicitly when linking.
1107
1108 2002-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
1109
1110         * connect.c (connect_with_timeout): New function.
1111         (connect_to_one): Use it.
1112
1113         * config.h.in: Add stubs for HAVE_SIGSETJMP, HAVE_SIGBLOCK, and
1114         HAVE_SETJMP_H.
1115
1116 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
1117
1118         * log.c: Set WGET_USE_STDARG if __STDC__ is defined and stdarg.h
1119         is present.
1120
1121 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
1122
1123         * progress.c (bar_create): If INITIAL is larger than TOTAL, fix
1124         TOTAL.
1125         (bar_finish): Likewise.
1126
1127 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
1128
1129         * html-url.c (tag_handle_form): New function.  Pick up form
1130         actions and mark them for conversion only.
1131
1132 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
1133
1134         * progress.c (struct progress_implementation): Use PARAMS when
1135         declaring the parameters of *create, *update, *finish, and
1136         *set_params.
1137
1138         * netrc.c: Ditto.
1139
1140         * http.c: Reformat some function definitions so that ansi2knr can
1141         read them.
1142
1143         * hash.c (struct hash_table): Use the PARAMS macro around
1144         parameters in the declaration of hash_function and test_function.
1145         (prime_size): Spell 2580823717UL and 3355070839UL as (unsigned
1146         long)0x99d43ea5 and (unsigned long)0xc7fa5177 respectively, so
1147         that pre-ANSI compilers can read them.
1148         (find_mapping): Use PARAMS when declaring EQUALS.
1149         (hash_table_put): Ditto.
1150
1151         * ftp.h: Wrap the parameters of ftp_index declaration in PARAMS.
1152
1153         * cookies.c (cookie_new): Use (unsigned long)0 instead of 0UL,
1154         which was unsupported by pre-ANSI compilers.
1155
1156         From Nelson H. F. Beebe <beebe@math.utah.edu>, for the most part.
1157
1158 2002-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
1159
1160         * url.c (url_filename): Use compose_file_name regardless of
1161         whether opt.dirstruct is set.
1162         (mkstruct): Don't handle the query and the reencoding of DIR; that
1163         is done in compose_file_name.
1164
1165 2002-04-10  Hrvoje Niksic  <hniksic@arsdigita.com>
1166
1167         * wget.h: Ditto for extern char *exec_name.
1168
1169         * options.h: Don't guard against OPTIONS_DEFINED_HERE -- it is
1170         perfectly legal to follow an `extern' with a non-`extern' ones,
1171         provided the types match.
1172
1173         * main.c: Don't define OPTIONS_DEFINED_HERE.
1174
1175 2002-04-10  Hrvoje Niksic  <hniksic@arsdigita.com>
1176
1177         * progress.c (create_image): Revert to calculating ETA based on
1178         average download speed.
1179         (create_image): Don't print ETA until the download has been active
1180         for at least 3 seconds.
1181         (create_image): When ETA is not available, don't print anything.
1182         The previous version would print --:--.
1183
1184 2002-04-10  Hrvoje Niksic  <hniksic@arsdigita.com>
1185
1186         * progress.c (bar_update): Keep updating a subinterval until it
1187         reaches or exceeds a watermark.  That way the measurement will be
1188         guaranteed to span a configurable minimum of time.  The current
1189         default is 3s in 30 100ms intervals.
1190
1191 2002-04-09  Hrvoje Niksic  <hniksic@arsdigita.com>
1192
1193         * progress.c (bar_update): Maintain an array of the time it took
1194         to perform previous 30 network reads.
1195         (create_image): Calculate the download speed and ETA based on the
1196         last 30 reads, not the entire download.
1197         (create_image): Make sure that the ETA is not changed more than
1198         once per second.
1199
1200 2002-04-09  Ian Abbott  <abbotti@mev.co.uk>
1201
1202         * mswindows.c (borland_utime): New function conditionally defined
1203         when `HACK_BCC_UTIME_BUG' is defined.  A reimplementation of
1204         `utime()' as Borland's `utime()' function is broken on Windows 9x
1205         systems.  (Original patch by Chin-yuan Kuo <sr1111111@yahoo.com.tw>.)
1206
1207 2002-04-08  Hrvoje Niksic  <hniksic@arsdigita.com>
1208
1209         * ftp.c (ftp_loop): Propagate the result of ftp_retrieve_glob.
1210
1211 2002-03-26  Ian Abbott  <abbotti@mev.co.uk>
1212
1213         * Makefile.in: Updated several dependencies for object files.
1214
1215 2002-03-20  Ian Abbott  <abbotti@mev.co.uk>
1216
1217         * mswindows.c: Include "utils.h".
1218
1219 2002-03-18  Ian Abbott  <abbotti@mev.co.uk>
1220
1221         * host.h: Don't include netdb.h on windows.
1222
1223 2002-02-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1224
1225         * recur.c (retrieve_tree): Handle the case when start_url doesn't
1226         parse.
1227
1228 2002-02-19  Andreas Damm  <andreas-sourceforge@radab.org>
1229
1230         * wget.h (DO_REALLOC_FROM_ALLOCA): Multiply with sizeof(type) when
1231         calling xmalloc and memcpy.
1232
1233 2002-02-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1234
1235         * host.h: Include Unix-specific includes #ifndef WINDOWS.
1236         Patch originally provided by Christian Lackas.
1237
1238 2002-02-11  Christian Lackas  <delta@lackas.net>
1239
1240         * recur.c: recurive downloading for https fixed.
1241
1242 2002-02-19  Alan Eldridge  <alane@geeksrus.net>
1243
1244         * host.h: Also include <netinet/in.h> and <sys/socket.h>.
1245
1246         * ftp-basic.c: Also include <netinet/in.h>.
1247
1248 2002-02-05  Ian Abbott  <abbotti@mev.co.uk>
1249
1250         * http.c (gethttp): when -c used, mark already fully retrieved
1251         file as successfully retrieved.
1252
1253 2002-02-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1254
1255         * url.c (url_parse): Don't treat '?' as query string separator
1256         when parsing FTP URLs.
1257
1258 2002-02-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1259
1260         * html-url.c (tag_handle_meta): Don't crash on <meta
1261         http-equiv=refresh> where content is missing.
1262
1263 2002-01-31  Herold Heiko  <Heiko.Herold@previnet.it>
1264
1265         * ftp-basic.c, host.c: don't include sys/socket.h, arpa/inet.h,
1266         netdb.h on windows.
1267
1268 2002-01-30  Hrvoje Niksic  <hniksic@arsdigita.com>
1269
1270         * retr.c (retrieve_url): Remove redirection cycle detection.  This
1271         is because some sites legitimately redirect the user back to the
1272         same location, e.g. after an authorization check performed by
1273         another page.  MAX_REDIRECTIONS is still used to prevent infinite
1274         redirection loops.
1275
1276 2002-01-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1277
1278         * http.c (gethttp): Wrap host name in square brackets if it
1279         contains a colon.
1280
1281 2002-01-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1282
1283         * url.c (url_parse): Allow all hex digits, not only decimal ones,
1284         to form an IP address.
1285
1286 2002-01-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1287
1288         * url.c (urlchr_table): Make square braces reserved, so we can
1289         parse http://[::1]/.
1290         (url_parse): Handle host in braces.
1291         (url_string): If url->host contains colons, wrap it in braces.
1292
1293 2002-01-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1294
1295         * connect.c (resolve_bind_address): New function.
1296         (connect_to_one): Use it.
1297         (bindport): Ditto.
1298
1299         * init.c: Don't resolve bind-address here.
1300
1301         * host.c (wget_sockaddr_set_address): Would bug out with ADDR == NULL.
1302
1303 2002-01-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1304
1305         * host.c (lookup_host): Use sizeof(ip4_address) to calculate the
1306         offset.
1307         (address_list_new): Use map_ipv4_to_ip.
1308         (wget_sockaddr_set_address): Convert ADDR to IPv4 before using it
1309         in IPv4 context.
1310
1311 2002-01-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1312
1313         * source: Integrated IPv6 support.
1314         Written by Thomas Lussnig <thomas.lussnig@bewegungsmelder.de>.
1315
1316 2002-01-15  Ian Abbott  <abbotti@mev.co.uk>
1317
1318         * init.c (cmd_file): Change `\' to `/' for Windows (yes, really!)
1319         (cmd_directory): New function. Like cmd_file(), but strips
1320         trailing directory separators.
1321         (commands): Change action for "dirprefix" from `cmd_file' to
1322         `cmd_directory'.
1323
1324         * utils.c (make_directory): Allow intermediate `mkdir' calls to
1325         fail, as not all path components that do not exist should be
1326         directory components, especially under Windows.
1327
1328 2002-01-17  Hrvoje Niksic  <hniksic@arsdigita.com>
1329
1330         * netrc.c (parse_netrc): Skip leading whitespace before testing
1331         whether the line is empty.  Empty lines still contain the line
1332         terminator.
1333
1334 2002-01-15  Hrvoje Niksic  <hniksic@arsdigita.com>
1335
1336         * gen_sslfunc.c (ssl_iread): Call select on the file descriptor
1337         only if no data is pending in SSL buffers.
1338         From tony@bluetail.com.
1339
1340 2002-01-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1341
1342         * headers.c (header_get): Strip trailing whitespace from the
1343         header.
1344
1345 2002-01-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1346
1347         * url.c (parse_uname): URL-decode *USER and *PASSWD.
1348
1349 2002-01-07  Ian Abbott <abbotti@mev.co.uk>
1350
1351         * url.c (uri_merge_1): Deal with "net path" relative URL (one that
1352         starts with "//").
1353
1354 2002-01-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1355
1356         * http.c (gethttp): Invalidate SOCK if get_contents encountered an
1357         error.
1358
1359 2001-12-24  Hrvoje Niksic  <hniksic@arsdigita.com>
1360
1361         * version.c: Wget 1.8.1 is released.
1362
1363 2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1364
1365         * version.c: Wget 1.8.1-pre3 is released.
1366
1367 2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1368
1369         * recur.c (retrieve_tree): Enqueue the canonical representation of
1370         start_url, so that the test against dl_url_file_map works.
1371
1372 2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1373
1374         * log.c (logputs): Check for requested verbosity before printing
1375         anything.
1376
1377 2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
1378
1379         * html-url.c (tag_handle_link): Treat the "shortcut icon" link as
1380         inline.
1381
1382 2001-12-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1383
1384         * recur.c (retrieve_tree): Make a copy of file obtained from
1385         dl_url_file_map because the code calls xfree(file) later.
1386
1387 2001-12-18  Hrvoje Niksic  <hniksic@arsdigita.com>
1388
1389         * recur.c (register_html): Maintain a hash table of HTML files
1390         along with the list.  Disallow duplicates.
1391         (retrieve_tree): Use downloaded_html_set to check whether the file
1392         found in dl_url_file_map is an HTML file, and descend into it if
1393         so.
1394         (convert_all_links): Don't guard against duplicates in
1395         downloaded_html_list, since they are no longer possible.
1396
1397 2001-12-18  Ian Abbott  <abbotti@mev.co.uk>
1398
1399         * recur.c (retrieve_tree): Pass on referring URL when retrieving
1400         recursed URL.
1401
1402 2001-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
1403
1404         * version.c: Wget 1.8.1-pre2 is released.
1405
1406 2001-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
1407
1408         * retr.c (sleep_between_retrievals): Simplify indentation.
1409
1410 2001-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
1411
1412         * gen_sslfunc.c (ssl_init_prng): Use random_number to get a byte
1413         of "randomness" at a time.
1414         (ssl_init_prng): Don't seed the PRNG; random_number will do that.
1415
1416         * retr.c (sleep_between_retrievals): Use it.  Make sure that the
1417         random amount averages in opt.wait.
1418         (sleep_between_retrievals): Don't seed the PRNG; random_number
1419         will do that.
1420
1421         * utils.c (random_number): New function.
1422
1423 2001-12-14  Hrvoje Niksic  <hniksic@arsdigita.com>
1424
1425         * url.c (path_simplify): Move here from utils.c, and make static.
1426
1427 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
1428
1429         * init.c (wgetrc_file_name): Print correct message when loading
1430         getenv("WGETRC") fails.
1431
1432 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
1433
1434         * recur.c (register_download): Don't abort when one URL references
1435         two different files.
1436
1437 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
1438
1439         * http.c (gethttp): Check for conn->scheme, not u->scheme, before
1440         calling ssl_iwrite.
1441
1442 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
1443
1444         * version.c: Wget 1.8.1-pre1 is released.
1445
1446 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
1447
1448         * res.c (matches): Fix broken URL in the docstring.
1449
1450 2001-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
1451
1452         * html-url.c (tag_url_attributes): Mark <embed href=...> as
1453         external.
1454
1455 2001-12-12  Hrvoje Niksic  <hniksic@arsdigita.com>
1456
1457         * url.c (get_urls_file): Cosmetic changes.
1458
1459 2001-12-12  Hrvoje Niksic  <hniksic@arsdigita.com>
1460
1461         * html-url.c (append_one_url): Resurrect warning when unable to
1462         resolve a relative link.
1463
1464 2001-12-12  Hrvoje Niksic  <hniksic@arsdigita.com>
1465
1466         * html-url.c (collect_tags_mapper): Break into several functions.
1467         (tag_url_attributes): Collect <embed href=...>.
1468
1469 2001-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
1470
1471         * host.c: New type ipv4_address.  Use it consistently instead of
1472         `unsigned char[4]' and `unsigned char *'.
1473         (pretty_print_address): Accept a `const void *', to require even
1474         less casting.
1475
1476 2001-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
1477
1478         * ftp-ls.c (ftp_parse_vms_ls): Fix obvious memory leaks.
1479
1480 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
1481
1482         * main.c (main): Initialize progress after fork_to_background, so
1483         that it knows when to use dots.
1484
1485         * mswindows.c (ws_hangup): Call log_request_redirect_output.
1486
1487         * utils.c (fork_to_background): Print the PID of the child
1488         process.
1489
1490         * log.c (log_request_redirect_output): Set a flag that output
1491         redirection has been requested.  Doing anything else in a signal
1492         handler is unsafe.
1493         (check_redirect_output): New function: check whether redirection
1494         has been requested and, if so, call redirect_output().
1495         (logputs): Call check_redirect_output.
1496         (logprintf): Ditto.
1497         (debug_logprintf): Ditto.
1498         (redirect_output): Print clearer messages.
1499
1500         * main.c (redirect_output_signal): Don't call
1501         redirect_output_signal directly.  Instead, call
1502         log_request_redirect_output.
1503
1504         * utils.c (memfatal): Ditto.
1505
1506         * progress.c (display_image): Use it.
1507
1508         * log.c (log_set_save_context): New function: allow the caller to
1509         turn off saving log context lines.
1510
1511 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
1512
1513         * host.c (address_list_set_faulty): Uncomment a sanity check.
1514
1515 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
1516
1517         * utils.c (long_to_string): Return a pointer after where the
1518         number ends.
1519         (long_to_string): Rename to number_to_string.
1520
1521 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
1522
1523         * utils.c (path_simplify): Correctly handle the unlikely case that
1524         b starts out as path + 1.
1525
1526 2001-12-10  Hrvoje Niksic  <hniksic@arsdigita.com>
1527
1528         * utils.c (path_simplify): Rewrite, with better comments, and
1529         without the use of strcpy to move overlapping blocks.
1530
1531 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
1532
1533         * init.c (cmd_spec_progress): Resurrect.  Check whether VAL is a
1534         valid progress type before setting it.
1535
1536 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
1537
1538         * main.c (main): Remove stray debugging message.
1539
1540 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
1541
1542         * progress.c (create_image): Fix ETA padding when hours are prined.
1543
1544 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
1545
1546         * version.c: Wget 1.8 is released.
1547
1548 2001-12-09  Hrvoje Niksic  <hniksic@arsdigita.com>
1549
1550         * url.c (reencode_string): Declare static.
1551
1552         * res.c (registered_specs): Declare static.
1553
1554         * progress.c (current_impl_locked): Declare static.
1555
1556         * log.c (flush_log_p): Declare static.
1557         (needs_flushing): Ditto.
1558
1559         * http.c (digest_authentication_encode): Declare static.
1560
1561         * html-url.c (init_interesting): Declare static.
1562
1563         * host.c (host_name_addresses_map): Declare static.
1564
1565         * cookies.c (find_matching_chains): Declare static.
1566
1567         * ftp-ls.c (ftp_parse_vms_ls): Warn about the memory leak
1568         indicated by lint.
1569
1570         * utils.c (path_simplify): Remove unused variable STUB_CHAR.
1571
1572         * host.c (address_list_set_faulty): Document that INDEX is
1573         currently unused.
1574
1575         * url.c (rewrite_shorthand_url): Remove unused variable PATH.
1576
1577 2001-12-08  Hrvoje Niksic  <hniksic@arsdigita.com>
1578
1579         * version.c: Wget 1.8-pre2 is released.
1580
1581 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1582
1583         * progress.c (progress_handle_sigwinch): Set up the signal again.
1584
1585         * utils.c: Include <sys/termios.h>, where Solaris defines
1586         TIOCGWINSZ.
1587
1588         * progress.c (bar_create): Don't use the last column on the screen.
1589         (create_image): Pad ETA to constant size.  Pad SIZE to nine digits
1590         only until it exceeded them.
1591
1592 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1593
1594         * version.c: Wget 1.8-pre1 is released.
1595
1596 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1597
1598         * progress.c (progress_create): Make sure that, when the output is
1599         redirected, the progress implementation gets changed to the
1600         fallback one.
1601         (bar_set_params): Set current_impl_locked to 1 when "force" is
1602         specified.
1603         (progress_create): Don't change the progress implementation if
1604         current_impl_locked is non-zero.
1605
1606         * main.c (redirect_output_signal): Call
1607         progress_schedule_redirect.
1608
1609         * progress.c (progress_schedule_redirect): New function.
1610
1611 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1612
1613         * log.c (logvprintf): Restructure to allow being called multiple
1614         times.
1615         (logprintf): Call logvprintf in a loop.
1616         (debug_logprintf): Ditto.
1617
1618 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1619
1620         * gen_sslfunc.c (ssl_init_prng): Allow the user to disable EGD by
1621         setting egd_file it to empty string.
1622
1623         * main.c (main): Change the option name from --sslegdsock to
1624         --egd-file.
1625
1626 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1627
1628         * gen_sslfunc.c (ssl_init_prng): Make the printed message
1629         translatable.
1630
1631 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1632
1633         * url.c (scheme_disable): New function.
1634
1635         * main.c (main): Call ssl_init_prng from here rather than from
1636         init_ssl, so that it has a chance to disable support for https
1637         before a URL has been resolved.
1638
1639         * gen_sslfunc.c (ssl_init_prng): Seed with rand() if all else
1640         failed.
1641         (ssl_init_prng): Disable support for https if seeding the PRNG
1642         fails.
1643
1644 2001-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
1645
1646         * utils.c (read_whole_line): Handle lines beginning with \0.
1647
1648 2001-12-05  Hrvoje Niksic  <hniksic@arsdigita.com>
1649
1650         * recur.c (convert_all_links): Guard against duplicates in
1651         downloaded_html_files.
1652         (register_download): Don't invalidate similar-looking URLs.
1653         (match_except_index): New function.
1654
1655 2001-12-05  Hrvoje Niksic  <hniksic@arsdigita.com>
1656
1657         * utils.c (path_simplify): Document with test cases.
1658
1659 2001-12-04  Hrvoje Niksic  <hniksic@arsdigita.com>
1660
1661         * gen_sslfunc.c: Ditto.
1662
1663         * rbuf.c: Include <string.h>.
1664
1665 2001-12-04  Hrvoje Niksic  <hniksic@arsdigita.com>
1666
1667         * recur.c (retrieve_tree): Check whether the URL was already
1668         downloaded before downloading it again.
1669         (descend_child_p): Renamed to download_child_p.
1670         (register_download): When one URL is downloaded to a file already
1671         "owned" by another URL, delete all references that map any URL to
1672         that file.
1673         (register_delete_file): New function.
1674         (retrieve_tree): Use it after deleting a file.
1675
1676         * url.c (url_parse): Re-canonicalize the URL also if the path is
1677         empty, so that e.g. "http://www.server.com" ->
1678         "http://www.server.com/".
1679         (lowercase_str): Use ISUPPER instead of !ISLOWER.
1680
1681         * retr.c (retrieve_url): Use the canonical URL form when calling
1682         register_download().
1683
1684 2001-12-04  Ian Abbott <abbotti@mev.co.uk>
1685
1686         * snprintf.c (dopr): Use `unsigned int' as the second argument to
1687         va_arg when casting to `unsigned short' is intended.
1688
1689 2001-12-04  Herold Heiko  <Heiko.Herold@previnet.it>
1690
1691         * gen_sslfunc.c: on windows provide ssl crypto random 
1692           initialization through RAND_screen(); could possibly
1693           be not enough for strong ssl communication (see the 
1694           relevant manual page from the openssl package).
1695
1696 2001-12-04  Hrvoje Niksic  <hniksic@arsdigita.com>
1697
1698         * url.c (local_quote_string): Reenable quoting of question marks,
1699         but only when `--html-extension' is used.
1700
1701 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1702
1703         * version.c: Wget 1.8-beta3 is released.
1704
1705 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1706
1707         * snprintf.c (dopr): Cast the result of va_arg to short int and
1708         short unsigned int where these types are expected to be used.
1709
1710 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1711
1712         * snprintf.c (dopr): Replace `short int' and `unsigned short int'
1713         with `int' when using it as the second argument to `va_arg'.
1714
1715 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1716
1717         * host.c (address_list_new_one): New function.
1718         (lookup_host): Use it.
1719
1720 2001-12-03  Andre Majorel  <amajorel@teaser.fr>
1721
1722         * host.c (lookup_host): Don't initialize TMPSTORE directly because
1723         it's not legal C.
1724
1725 2001-12-03  Hrvoje Niksic  <hniksic@arsdigita.com>
1726
1727         * ftp-basic.c (ftp_port): Don't return HOSTERR if we fail getting
1728         the socket data.
1729
1730         * ftp.c: Ditto.
1731
1732         * http.c: No need to declare h_errno.
1733
1734         * host.c: Declare h_errno.
1735
1736 2001-12-02  Hrvoje Niksic  <hniksic@arsdigita.com>
1737
1738         * utils.c (file_merge): If BASE doesn't contain a slash, just
1739         return a copy of FILE.
1740
1741 2001-12-02  Hrvoje Niksic  <hniksic@arsdigita.com>
1742
1743         * version.c: Wget 1.8-beta2 is released.
1744
1745 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1746
1747         * ftp.c (getftp): When PWD fails, assume "/".
1748
1749         * ftp-basic.c (ftp_syst): Fix indentation.
1750
1751 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1752
1753         * url.c (get_urls_file): If opt.base_href is specified, merge each
1754         URL with the base.
1755
1756 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1757
1758         * main.c (print_help): Don't document the removed `-nh'.
1759
1760 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1761
1762         * url.c (url_full_path): Document better.
1763
1764         * http.c (gethttp): Use the full path when creating digest
1765         authorization.
1766
1767 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1768
1769         * cookies.c (path_matches): Return 0 if PREFIX doesn't begin with
1770         '/'.
1771
1772 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1773
1774         * cookies.c (path_matches): FULL_PATH doesn't begin with '/', but
1775         PREFIX does.
1776
1777 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1778
1779         * cookies.c (check_domain_match): Reimplement to match Netscape's
1780         "preliminary specification" for cookies.
1781
1782 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1783
1784         * url.c (replace_attr_refresh_hack): New function.
1785         (convert_links): Call replace_attr_refresh_hack for Refresh
1786         links.  It will add the "TMOUT; URL=" junk before the link.
1787
1788         * html-url.c (collect_tags_mapper): Set ID to the ID of the
1789         "content" attribute, not "http-equiv".
1790         (collect_tags_mapper): Don't use OFFSET to hack the raw_* values;
1791         instead, store the information that this entry belongs to a
1792         "refresh" link.
1793
1794 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1795
1796         * version.c: Wget 1.8-beta1 is released.
1797
1798 2001-12-01  Hrvoje Niksic  <hniksic@arsdigita.com>
1799
1800         * recur.c (retrieve_tree): Allow -p retrievals to exceed maximum
1801         depth by more than one.
1802
1803 2001-11-30  Hrvoje Niksic  <hniksic@arsdigita.com>
1804
1805         * retr.c (retrieve_url): Don't allow more than 20 redirections.
1806
1807 2001-11-30  Hrvoje Niksic  <hniksic@arsdigita.com>
1808
1809         * recur.c (retrieve_tree): Skip the non-inline entries when
1810         enqueuing the children of a leaf HTML node in -p mode.
1811         (descend_url_p): Ignore opt.no_parent when in -p mode and UPOS is
1812         "inline".
1813
1814         * html-url.c (get_urls_html): Don't accept dash_p_leaf_HTML.
1815         (collect_tags_mapper): When an entry is "inline", mark it as such.
1816
1817         * recur.c (descend_url_p): Fix test when checking for
1818         acceptance/rejection rules.
1819
1820 2001-10-31 Daniel BODEA <dali@dali-designs.com>
1821
1822         * netrc.c (search_netrc): When slack_default is 0, still look for
1823         an account with matching password, just not the "default account".
1824         HTTP Authorization using .netrc should now work as expected.
1825
1826 2001-11-30  T. Bharath  <TBharath@responsenetworks.com>
1827
1828         * http.c (persistent_available_p): Call SHUTDOWN_SSL if
1829         test_socket_open fails.
1830
1831 2001-11-30  Hrvoje Niksic  <hniksic@arsdigita.com>
1832
1833         * progress.c (display_image): Just print one CR to reset the
1834         cursor position.
1835
1836 2001-11-30  Christian Fraenkel  <c.fraenkel@gmx.net>
1837
1838         * init.c: New command `ssl_egd_sock'.
1839
1840         * main.c (main): New option `--sslegdsock'.
1841
1842         * gen_sslfunc.c (ssl_init_prng): Seed the RNG using EGD.
1843
1844 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1845
1846         * cmpt.c (memmove): Include a simple memmove implementation.
1847
1848 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1849
1850         * headers: Guard against header files being included twice.
1851
1852 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1853
1854         * gen-md5.c: Use unsigned char * as the buffer argument to
1855         gen_md5_update.
1856
1857 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1858
1859         * connect.h: Declare select_fd.
1860
1861 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1862
1863         * recur.c (descend_url_p): When resolving no_parent, compare with
1864         start_url, not parent url.  Otherwise link from /a/b/ to /a/c/
1865         wouldn't be followed, although the download started from /a/.
1866
1867 2001-01-23  Herold Heiko  <Heiko.Herold@previnet.it>
1868
1869         * config.h.ms, mswindows.h: defined HAVE_ISATTY, use _isatty for
1870         MS VC; somebody with Borland compiler please check and provide
1871         patch if possible;
1872
1873         * cmpt.c: provided a usleep emulation.
1874
1875 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1876
1877         * host.c (address_list_new): Initialize al->faulty.
1878
1879 2001-11-29  Hrvoje Niksic  <hniksic@arsdigita.com>
1880
1881         * http.c (http_process_range): Accept the broken output of
1882         "JavaWebServer/1.1.1".
1883
1884 2001-11-28  Hrvoje Niksic  <hniksic@arsdigita.com>
1885
1886         * progress.c (dot_set_params): If PARAMS is unspecified, use
1887         dot_style, if available.
1888
1889         * init.c: Ditto.
1890
1891         * main.c (main): Resurect --dot-style.
1892
1893         * progress.c (dot_finish): Print the quantity if we're left at the
1894         beginning of a row.
1895
1896 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1897
1898         * cmpt.c (random): Removed.
1899
1900         * retr.c (sleep_between_retrievals): Use the more portable rand()
1901         instead of random().
1902
1903 2001-11-27  Ian Abbott <abbotti@mev.co.uk>
1904
1905         * retr.c (retrieve_from_file): Initialize `new_file' to NULL to
1906         prevent seg fault.
1907
1908 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1909
1910         * connect.c (connect_to_many): Use address_list_set_faulty to
1911         prevent the faulty address from being reused.
1912
1913         * host.c (address_list_set_faulty): New function.
1914         (address_list_get_bounds): New function, instead of
1915         address_list_count.
1916
1917 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1918
1919         * url.c (convert_links): Don't translate %d-%d.
1920
1921         * main.c (print_help): Remove stray HAVE_RANDOM code.
1922
1923 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1924
1925         * ftp.c (getftp): Improve output after sending PASV.  Don't
1926         attempt to "look up" the IP address we already know; call
1927         connect_to_one directly.
1928
1929 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1930
1931         * progress.c: Change the default progress implementation to "bar".
1932
1933 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1934
1935         * progress.c (bar_create): Print two newlines.
1936
1937 2001-11-27  Hrvoje Niksic  <hniksic@arsdigita.com>
1938
1939         * cmpt.c (random): New function, a simple-minded replacement for
1940         random() on systems that don't have it.
1941
1942 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1943
1944         * config.h.in: Put a HAVE_USLEEP stub.
1945
1946         * cmpt.c (usleep): Replacement implementation of usleep using
1947         select.
1948
1949         * init.c: New option init_rate.
1950
1951         * main.c (main): New option --limit-rate.
1952
1953         * retr.c (limit_bandwidth): New function.
1954         (get_contents): Call it to limit the bandwidth used when
1955         downloading.
1956
1957         * progress.c (dot_update): Would print the wrong download speed on
1958         rows other than the first one when the download was continued.
1959         (dot_finish): Ditto.
1960
1961 2001-11-26  Ian Abbott <abbotti@mev.co.uk>
1962
1963         * http.c (gethttp): fix undeclared variable 'err' when compiled
1964         with HAVE_SSL.
1965
1966 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1967
1968         * progress.c: Don't allocate new timers; use the timing data
1969         propagated from the caller.
1970
1971         * retr.c (get_contents): Allocate and use a timer.
1972
1973 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
1974
1975         * http.c (last_host_ip): Made into an address_list.
1976         (invalidate_persistent): Release pc_last_host_ip.
1977         (register_persistent): Use lookup_host.
1978         (persistent_available_p): Check for equality of hosts using
1979         address_list_match_all.  Call address_list_release.
1980         (http_cleanup): New function.
1981
1982         * ftp.c (getftp): Use lookup_host and connect_to_many.
1983
1984         * http.c (gethttp): Use lookup_host and connect_to_many.
1985
1986         * connect.c (make_connection): Removed.
1987         (connect_to_one): New function.
1988         (connect_to_many): Ditto.
1989         (set_connection_host_name): Ditto.
1990
1991         * host.c (lookup_host): New function; new return type.
1992         (address_list_new): New function.
1993         (address_list_count): Ditto.
1994         (address_list_copy_one): Ditto.
1995         (address_list_delete): Ditto.
1996         (address_list_release): Ditto.
1997         (pretty_print_address): Ditto.
1998
1999 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
2000
2001         * recur.c (retrieve_tree): In case of followed redirection,
2002         blacklist the pre-redirection URL.
2003
2004 2001-11-26  Hrvoje Niksic  <hniksic@arsdigita.com>
2005
2006         * recur.c (descend_redirect_p): New function.
2007         (retrieve_tree): Make sure redirections are not blindly followed.
2008
2009 2001-11-04  Alan Eldridge  <alane@geeksrus.net>
2010
2011         * config.h.in: added HAVE_RANDOM.
2012
2013         * options.h: added random_wait to struct options.
2014
2015         * main.c (print_help [HAVE_RANDOM], main): added arg parsing, help
2016         for --random-wait.
2017
2018         * retr.c (sleep_between_retrievals) [HAVE_RANDOM]: added
2019         implementation of random wait times.
2020
2021         * init.c (commands): added "randomwait" keyword.
2022
2023 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2024
2025         * recur.c (descend_url_p): Be more conservative with blacklisting
2026         URLs.
2027         (convert_all_links): Print how many files have been converted, and
2028         how long it took.
2029
2030         * progress.c (create_image): Place the number of downloaded bytes
2031         right after the progress bar.
2032
2033         * utils.c (suffix): Return a pointer into the string.
2034
2035 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2036
2037         * url.c (convert_links): Handle CO_NULLIFY_BASE.
2038
2039         * recur.c (retrieve_tree): Ignore download-ignorable children.
2040         (convert_all_links): Specify CO_NULLIFY_BASE when link_base_p.
2041
2042         * html-url.c (handle_link): Return the newly created urlpos.
2043         (collect_tags_mapper): When dealing with BASE, store the base
2044         reference and mark it as download-ignorable.
2045
2046 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2047
2048         * url.c (convert_links): Attempt to quote '?' as "%3F" when
2049         linking to local files.  Given up on the attempt, as it breaks
2050         local browsing.
2051
2052 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2053
2054         * main.c (private_initialize): Removed.
2055         (main): Don't call private_initialize.
2056
2057         * http.c: Call lookup_host.
2058
2059         * host.c (host_init): Removed.
2060         (add_host_to_cache): Initialize host_name_address_map here, on
2061         demand.
2062         (ngethostbyname): Commented out.
2063
2064         * connect.c (make_connection): Remove dead code; use lookup_host.
2065
2066         * host.c (store_hostaddress): Renamed to lookup_host and reversed
2067         the args.
2068         Removed host_address_name_map and host_slave_master_map.
2069
2070 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2071
2072         * progress.c (dot_create): Align the "[ skipping ... ]" string
2073         with the dots.
2074
2075         * retr.c (rate): Split into two functions: calc_rate and
2076         retr_rate.
2077
2078         * progress.c (create_image): Draw a dummy progress bar even when
2079         total size is unknown.
2080         (display_image): Place the text cursor at the end of the "image".
2081
2082 2001-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2083
2084         * url.c (reencode_string): Use unsigned char, not char --
2085         otherwise the hex digits come out wrong for 8-bit chars such as
2086         nbsp.
2087         (lowercase_str): New function.
2088         (url_parse): Canonicalize u->url if needed.
2089         (get_urls_file): Parse each URL, and return only the valid ones.
2090         (free_urlpos): Call url_free.
2091         (mkstruct): Add :port if the port is non-standard.
2092         (mkstruct): Append the query string to the file name, if any.
2093         (urlpath_length): Use strpbrk_or_eos.
2094         (uri_merge_1): Handle the cases where LINK is an empty string,
2095         where LINK consists only of query, and where LINK consists only of
2096         fragment.
2097         (convert_links): Count and report both kinds of conversion.
2098         (downloaded_file): Use a hash table, not a list.
2099         (downloaded_files_free): Free the hash table.
2100
2101         * retr.c (retrieve_from_file): Ditto.
2102
2103         * main.c (main): Call either retrieve_url or retrieve_tree
2104         for each URL, not both.
2105
2106         * retr.c (register_all_redirections): New function.
2107         (register_redirections_mapper): Ditto.
2108         (retrieve_url): Register the redirections.
2109         (retrieve_url): Make the string "Error parsing proxy ..." 
2110         translatable.
2111
2112         * res.c (add_path): Strip leading slash from robots.txt paths so
2113         that the path representations are "compatible".
2114         (free_specs): Free each individual path, too.
2115         (res_cleanup): New function.
2116         (cleanup_hash_table_mapper): Ditto.
2117
2118         * recur.c (url_queue_new): New function.
2119         (url_queue_delete): Ditto.
2120         (url_enqueue): Ditto.
2121         (url_dequeue): Ditto.
2122         (retrieve_tree): New function, replacement for recursive_retrieve.
2123         (descend_url_p): New function.
2124         (register_redirection): New function.
2125
2126         * progress.c (create_image): Cosmetic changes.
2127
2128         * init.c (cleanup): Do all those complex cleanups only if
2129         DEBUG_MALLOC is defined.
2130
2131         * main.c: Removed --simple-check and the corresponding
2132         simple_host_check in init.c.
2133
2134         * html-url.c (handle_link): Parse the URL here, and propagate the
2135         parsed URL to the caller, who would otherwise have to parse it
2136         again.
2137
2138         * host.c (xstrdup_lower): Moved to utils.c.
2139         (realhost): Removed.
2140         (same_host): Ditto.
2141
2142 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2143
2144         * utils.c (path_simplify): Preserver the (non-)existence of
2145         leading slash.  Return non-zero if changes were made.
2146
2147 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2148
2149         * progress.c (bar_update): Don't modify bp->total_length if it is
2150         zero.
2151
2152 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2153
2154         * retr.c (retrieve_url): When the redirection URL doesn't parse,
2155         print the correct error message rather than "UNKNOWN".
2156
2157 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2158
2159         * progress.c (bar_finish): If the timer didn't record any time
2160         since the download beginning, fake 1ms.
2161
2162 2001-11-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2163
2164         * recur.c (recursive_retrieve): Fix typo.
2165
2166 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
2167
2168         * progress.c (create_image): Don't translate "%ld ".
2169
2170 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
2171
2172         * progress.c (bar_set_params): Allow the user to force the use of
2173         the bar.
2174
2175 2001-11-23  Lemble Gregory  <gregory.lemble@st.com>
2176
2177         * gen_sslfunc.c (ssl_init_prng): New function; seed the SSL RNG.
2178
2179 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
2180
2181         * progress.c: Renamed dp_* functions to dot_* for greater clarity
2182         and consistency with bar_*.
2183         (print_download_speed): Get rid of the unneeded '@' character.
2184         (create_image): Fix download rate geometry.
2185
2186         * progress.c (print_elapsed): Remove spurious space.
2187         (print_elapsed): Renamed to print_download_speed, since that's
2188         what it does.
2189
2190 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
2191
2192         * progress.c (bar_update): If the downloaded amount becomes larger
2193         than the expected amount, adjust the expected amount accordingly.
2194
2195 2001-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
2196
2197         * utils.c (determine_screen_width): New function.
2198
2199         * main.c (main): New option `--progress=TYPE'.
2200         (main): Implement compatibility with the old option `--dot-style'.
2201
2202         * init.c: Removed cmd_spec_dotstyle -- that logic is now in
2203         dp_set_params.
2204         (cmd_spec_progress): New function.
2205
2206         * retr.c (get_contents): Use the progress_* functions instead of
2207         the old show_progress().
2208         (show_progress): Removed.
2209         (rate): Print "xxxx.xx K/s" instead of "KB/s".  Ditto for MB/s,
2210         etc.
2211
2212         * progress.c (set_progress_implementation): New function.
2213         (valid_progress_implementation_p): Ditto.
2214         (progress_create): Ditto.
2215         (progress_update): Ditto.
2216         (progress_finish): Ditto.
2217         (dp_create): Ditto.
2218         (dp_update): Ditto.
2219         (dp_finish): Ditto.
2220         (dp_set_params): Ditto.
2221         (print_elapsed): Ditto.
2222
2223 2001-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
2224
2225         * retr.c (show_progress): Use it.
2226
2227         * log.c (log_set_flush): New function.
2228
2229 2001-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
2230
2231         * utils.c (path_simplify): Don't remove trailing slashes.
2232
2233         * ftp.c (ftp_get_listing): Use it.
2234
2235         * utils.c (file_merge): New function.
2236
2237         * url.c (opt_url): Removed.
2238
2239         * recur.c (recursive_retrieve): Inline "opt_url" logic.
2240
2241         * main.c (main): Use xfree(), not free().
2242
2243         * url.c (rewrite_url_maybe): Renamed to rewrite_shorthand_url.
2244
2245         * ftp.c (ccon): Move `ccon' typedef here, since it's only used
2246         internally.
2247
2248         * config.h.in: Include a stub for HAVE_STRPBRK.
2249
2250         * cmpt.c (strpbrk): Include a replacement for systems without
2251         strpbrk().
2252
2253         * ftp.c: Use url_set_dir and url_set_file when modifying the URL.
2254
2255         * url.c (url_set_dir): New function.
2256         (url_set_file): Ditto.
2257
2258         * ftp-basic.c (ftp_process_type): Process FTP type here; the URL
2259         parser makes the URL "params" available, so we can do that in this
2260         function.
2261
2262         * retr.c: Ditto.
2263
2264         * ftp.c: Ditto; pass the local file information in `ccon'.
2265
2266         * http.c: Get rid of the ugly kludge that had URL being replaced
2267         with the proxy URL when proxy retrieval was requested.  Use a
2268         separate parameter to http_loop and gethttp for the proxy URL.
2269
2270         * http.c: Changed to reflect the fact that local file, proxy, and
2271         referer information are no longer stored in struct url.  The local
2272         file information is passed in `struct hstat' now.
2273
2274         * url.c: Reworked URL parsing to be more regular.  Reencode the
2275         URL using reencode_string.
2276         Removed non-URL-related information from struct url.  This
2277         includes fields `proxy', `local', and `referer'.
2278
2279 2001-11-22  Jochen Hein  <jochen@jochen.org>
2280
2281         * main.c (main): Split the copyright notice for easier
2282         translation.
2283
2284 2001-08-21  Dave Turner <dct25@hermes.cam.ac.uk>
2285
2286         * ftp-basic.c (ftp_size): New function to send non-standard SIZE
2287           command to server to request file size.
2288         * ftp.h (ftp_size): Export it.
2289         * ftp.c (getftp): Use new ftp_size function if restoring
2290           transfer of a file with unknown size.
2291
2292 2001-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
2293
2294         * url.c (parseurl): Don't depend on the now-obsolete TYPE.
2295
2296 2001-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
2297
2298         * url.c (getproxy): Handle URL shorthands.
2299
2300 2001-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
2301
2302         * main.c: Remove --wait / --waitretry backwards compatibility
2303         code.
2304         
2305 2001-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
2306
2307         * main.c (main): Use it.
2308
2309         * url.c (rewrite_url_maybe): New function.
2310
2311 2001-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
2312
2313         * url.c: Clean up handling of URL schemes.
2314
2315 2001-05-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2316
2317         * url.c: Get rid of `protostrings'.
2318         (skip_proto): Don't use protostrings.
2319         (has_proto): Ditto.
2320
2321 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
2322
2323         * Makefile.in: Conditionally compile getopt.o.
2324
2325 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
2326
2327         * md5.h: Renamed to gnu-md5.h.
2328
2329         * md5.c: Renamed to gnu-md5.c.
2330
2331         * http.c: Ditto.
2332
2333         * ftp-opie.c: Use the new macros.
2334
2335         * sysdep.h: Define md5-related macros.
2336
2337         * config.h.in: Define HAVE_SOLARIS_MD5 or HAVE_BUILTIN_MD5
2338         depending on which md5 implementation is used.
2339
2340 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
2341
2342         * res.c (res_register_specs): Initialize OLD and HP_OLD to appease
2343         the compiler.
2344
2345 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
2346
2347         * http.c (gethttp): Print the whole response line when printing
2348         headers is requested.
2349
2350 2001-05-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2351
2352         * res.c: New file.  Implement all RES-related code here.
2353
2354 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
2355
2356         * version.c: Wget 1.7.1 is released.
2357
2358 2001-11-16  Hrvoje Niksic  <hniksic@arsdigita.com>
2359
2360         * headers.c (header_extract_number): Ignore trailing whitespace.
2361
2362 2001-08-24  Ian Abbott  <abbotti@mev.co.uk>
2363
2364         * html-url.c (collect_tags_mapper): Fix bug converting links
2365         with -k option for tags with multiple link attributes by
2366         handling links in the order they appear.
2367
2368 2001-08-15  Ian Abbott  <abbotti@mev.co.uk>
2369
2370         * ftp.c (ftp_loop_internal): Avoid a potential buffer overflow in
2371           the call to the 'rate' function by moving it past the error
2372           checking for the 'getftp' function return value.
2373
2374 2001-11-16  Hrvoje Niksic  <hniksic@arsdigita.com>
2375
2376         * html-parse.c (advance_declaration): Use 0x22 instead of '"' or
2377         '\"'.  Different compilers' assert macros are broken in different
2378         ways.
2379
2380 2001-09-29  Christian Fraenkel  <c.fraenkel@gmx.net>
2381
2382         * http.c (gethttp): print debug output for errors occuring during
2383         the ssl handshake.
2384
2385 2001-11-16  Chris Seawood  <cls@seawood.org>
2386
2387         * init.c: Ditto.
2388
2389         * host.c: Ditto.
2390
2391         * connect.c: Ditto.
2392
2393         * sysdep.h: Support compilation under BEOS.
2394
2395 2001-06-08  Edward J. Sabol  <sabol@alderaan.gsfc.nasa.gov>
2396
2397         * url.c (url_equal): Fix a memory leak when parseurl returns an
2398         error on the second URL. Also, since url_equal is not used at the
2399         moment, do not compile it.
2400
2401         * url.h: Ditto for the prototype of url_equal.
2402
2403 2001-11-16  Hrvoje Niksic  <hniksic@arsdigita.com>
2404
2405         * html-parse.c (map_html_tags): Support XML-style empty tags.
2406
2407 2001-06-26  Hrvoje Niksic  <hniksic@arsdigita.com>
2408
2409         * wget.h (DO_REALLOC_FROM_ALLOCA): Check for do_realloc_newsize in
2410         loop condition because we're no longer setting SIZEVAR here.
2411
2412 2001-06-26  Hrvoje Niksic  <hniksic@arsdigita.com>
2413
2414         * wget.h (DO_REALLOC_FROM_ALLOCA): Set SIZEVAR after the memcpy()
2415         call because it needs the old value.
2416
2417 2001-06-18  Hrvoje Niksic  <hniksic@arsdigita.com>
2418
2419         * cookies.c (ATTR_NAME_CHAR): Allow almost any character to be in
2420         an attribute name.
2421
2422 2001-06-18  Hrvoje Niksic  <hniksic@arsdigita.com>
2423
2424         * url.c (url_filename): Make sure that slashes that sneak in to
2425         u->file via query string get protected.
2426         (file_name_protect_query_string): New function.
2427
2428 2001-06-14  Hrvoje Niksic  <hniksic@arsdigita.com>
2429
2430         * recur.c (recursive_retrieve): Also check undesirable_urls with
2431         canonicalized URL.
2432
2433 2001-06-14  Hrvoje Niksic  <hniksic@arsdigita.com>
2434
2435         * http.c (gethttp): Search `.netrc' with real host, not the proxy
2436         one.
2437
2438 2001-06-14  Hrvoje Niksic  <hniksic@arsdigita.com>
2439
2440         * sysdep.h (MAP_FAILED): Provide MAP_FAILED for systems that don't
2441         define it.
2442
2443 2001-06-09  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2444
2445         * ftp.h: Provide correct prototype for ftp_parse_ls().
2446
2447 2001-06-04  Hrvoje Niksic  <hniksic@arsdigita.com>
2448
2449         * version.c: Wget 1.7 is released.
2450
2451 2001-06-03  Karl Eichwalder  <ke@suse.de>
2452
2453         * ftp-ls.c (ftp_parse_ls): Fix typo.
2454
2455 2001-05-27  Hrvoje Niksic  <hniksic@arsdigita.com>
2456
2457         * all: Update copyright information.
2458
2459 2001-05-26  Hrvoje Niksic  <hniksic@arsdigita.com>
2460
2461         * http.c (gethttp): Indicate that the continued download failed
2462         for *this* file.
2463
2464 2001-05-26  Hrvoje Niksic  <hniksic@arsdigita.com>
2465
2466         * version.c: Wget 1.7-pre1 is released.
2467
2468 2001-05-26  Hrvoje Niksic  <hniksic@arsdigita.com>
2469
2470         * version.c: Updated version to 1.7-pre1.
2471
2472 2001-05-14  Hrvoje Niksic  <hniksic@arsdigita.com>
2473
2474         * gen_sslfunc.c: Don't include <sys/time.h> directly.
2475
2476 2001-05-14  Hrvoje Niksic  <hniksic@arsdigita.com>
2477
2478         * http.c (gethttp): Use real URL data for cookies, not the proxy
2479         stuff.
2480
2481 2001-05-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2482
2483         * main.c (print_help): Document `--no-http-keep-alive'.
2484
2485         * utils.c (numdigit): Handle negative numbers *correctly*.
2486
2487         * hash.c (make_nocase_string_hash_table): Use term "nocase" rather
2488         than the confusing "unsigned".
2489
2490         * utils.c (string_set_contains): Renamed from string_set_exists.
2491
2492         * hash.c (hash_table_contains): Renamed from hash_table_exists.
2493
2494         * cookies.c: Move case-insensitive hash tables to hash.c.
2495
2496 2001-05-09  Hrvoje Niksic  <hniksic@arsdigita.com>
2497
2498         * http.c (gethttp): Before concluding that the file is already
2499         fully retrieved, make sure that the file existed and `Range' was
2500         actually requested.
2501
2502 2001-05-09  Hrvoje Niksic  <hniksic@arsdigita.com>
2503
2504         * cookies.c (eliminate_dups): New function.
2505         (build_cookies_request): Use it.
2506         (build_cookies_request): Set chain_store_size after reallocating
2507         all_chains.
2508         (check_domain_match): Annotated for easier future debugging.
2509         (store_cookie): In the debug message, print whether the cookie is
2510         permanent.
2511
2512 2001-05-08  Hrvoje Niksic  <hniksic@arsdigita.com>
2513
2514         * http.c (http_loop): Reset no_truncate before deciding whether to
2515         set it.
2516         (gethttp): Further clarify "-c conflicts with existing file" error
2517         message, based on input from Herold Heiko.
2518
2519 2001-05-07  Hrvoje Niksic  <hniksic@arsdigita.com>
2520
2521         * http.c (http_loop): If restval is set, set no_truncate to 1
2522         unconditionally.
2523
2524 2001-05-02  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2525
2526         * ftp-ls.c (ftp_parse_winnt_ls): Assure months are being correctly
2527         converted. Pointed out by <Stefan.Weil@de.heidelberg.com>.
2528         (ftp_parse_vms_ls): Ditto.
2529
2530 2001-04-30  Hrvoje Niksic  <hniksic@arsdigita.com>
2531
2532         * init.c (cmd_address): Zero SIN before using it; apparently
2533         needed on *BSD.
2534
2535 2001-04-29  Hrvoje Niksic  <hniksic@arsdigita.com>
2536
2537         * ftp.c (ftp_loop_internal): Don't set NO_TRUNCATE if the file is
2538         empty.
2539
2540 2001-04-29  Hrvoje Niksic  <hniksic@arsdigita.com>
2541
2542         * main.c (main): Make `--cookies' respect its argument.
2543
2544 2001-04-28  Hrvoje Niksic  <hniksic@arsdigita.com>
2545
2546         * main.c (main): Removed undocumented option `--email-address'.
2547
2548         * netrc.c: Use the latest read_whole_line.
2549
2550         * init.c (defaults): Set opt.ftp_pass to "-wget@".
2551
2552         * mswindows.c (pwd_cuserid): Ditto.
2553
2554         * utils.c (pwd_cuserid): Removed.
2555
2556         * host.c (ftp_getaddress): Removed.
2557
2558 2001-04-28  Hrvoje Niksic  <hniksic@arsdigita.com>
2559
2560         (http_loop): Allocate space for filename_plus_orig_suffix with
2561         alloca; this is more efficient and removes the need to free it
2562         before each and every return.
2563
2564 2001-04-28  Hrvoje Niksic  <hniksic@arsdigita.com>
2565
2566         * http.c (gethttp): Return RETRUNNEEDED when the retrieval is
2567         unneeded because the file is already there and fully downloaded,
2568         and -c is specified.
2569         (http_loop): Handle RETRUNNEEDED.
2570
2571         * wget.h (uerr_t): New value RETRUNNEEDED.
2572
2573         * http.c (http_loop): Set no_truncate for files that both exist
2574         and are non-empty.
2575         (gethttp): Consider the download finished when restval >= contlen,
2576         not only when restval==contlen.
2577         (gethttp): Handle redirection before giving up due to -c.
2578         (gethttp): Clarify error message which explains that -c will not
2579         truncate the file.
2580         (gethttp): When returning CONTNOTSUPPORTED, don't forget to free
2581         the stuff that needs freeing and release the socket.
2582
2583 2001-04-27  Hrvoje Niksic  <hniksic@arsdigita.com>
2584
2585         * main.c (print_help): Wget booleans accept "off", not "no".
2586
2587 2001-04-27  Hrvoje Niksic  <hniksic@arsdigita.com>
2588
2589         * http.c (http_loop): If allow_cache is zero, always disable
2590         caching, not only when retrieving through proxy.
2591
2592         * init.c: Ditto.
2593
2594         * options.h (struct options): Rename proxy_cache to allow_cache.
2595
2596 2001-04-27  Hrvoje Niksic  <hniksic@arsdigita.com>
2597
2598         * http.c (mktime_from_utc): Improve documentation.
2599         (http_atotm): Put format strings into a separate array.
2600
2601 2001-04-27  Hrvoje Niksic  <hniksic@arsdigita.com>
2602
2603         * safe-ctype.h: Instead of throwing #error when isalpha is
2604         defined, redefine it to something that will throw a compile-time
2605         error if actually *used*.  Do the same for the rest of the
2606         standard C macros.
2607
2608 2001-04-26  Hrvoje Niksic  <hniksic@arsdigita.com>
2609
2610         * url.c (getproxy): Ignore empty proxy vars.
2611
2612 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2613
2614         * http.c (http_loop): Would load cookies every time.
2615
2616         * cookies.c (load_cookies): Handle cookies whose values contain
2617         embedded spaces.
2618
2619 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2620
2621         * utils.c: Define each DIGITS_* in one line.
2622
2623 2001-04-25  Roger L. Beeman  <beeman@cisco.com>
2624
2625         * http.c (http_atotm): Initialize t.tm_isdst to 0.
2626         (mktime_from_utc): Prevent mktime() from having discontinuities at
2627         DST transition points.
2628
2629 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2630
2631         * html-url.c (get_urls_html): Fix documentation.
2632
2633 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2634
2635         * url.c (UNSAFE_CHAR): Reimplement using a static table.
2636         (url_init): Removed.
2637         (init_unsafe_char_table): Removed.
2638
2639 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2640
2641         * snprintf.c (dopr): Replace ISDIGIT with '0' <= ch && ch <= '9'.
2642
2643 2001-04-25  Hrvoje Niksic  <hniksic@arsdigita.com>
2644
2645         * utils.c: Document timer functions.
2646
2647         * retr.c (rate): Use it.
2648         (rate): Print in GB/s if transfer rate exceeds 1 GB/s.
2649
2650         * utils.c (wtimer_granularity): New function.
2651
2652 2001-04-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2653
2654         * retr.c (show_progress): Ditto.
2655
2656         * ftp.c (getftp): Ditto.
2657
2658         * http.c (gethttp): Use new timer functions.
2659
2660         * utils.c (wtimer_allocate): New function.
2661         (wtimer_new): Ditto.
2662         (wtimer_delete): Ditto.
2663         (wtimer_reset): Ditto.
2664         (wtimer_elapsed): Ditto.
2665
2666 2001-04-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2667
2668         * utils.c (long_to_string): New, faster version.  Favors smaller
2669         numbers; much of the calculation is now done at compile-time.
2670
2671 2001-04-24  Hrvoje Niksic  <hniksic@arsdigita.com>
2672
2673         * utils.c (numdigit): Handle negative numbers.
2674
2675 2001-04-23  Hrvoje Niksic  <hniksic@arsdigita.com>
2676
2677         * retr.c (show_progress): Print the download rate even when the
2678         percentages are not available.
2679
2680 2001-04-21  Hrvoje Niksic  <hniksic@arsdigita.com>
2681
2682         * ftp.c (getftp): Adjust expected_bytes if the length is
2683         authoritative.
2684
2685 2001-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
2686
2687         * url.c: Don't declare `construct'.
2688
2689         * hash.c (grow_hash_table): Speed up rehashing; inline storing of
2690         mappings to new locations.
2691         (hash_table_new): Make resize_threshold a field in the hash table,
2692         so we don't have to recalculate it in each hash_table_put.
2693         (grow_hash_table): Update resize_threshold.
2694         (MAX): Remove unused macro.
2695         (prime_size): Made static.
2696
2697 2001-04-14  Hrvoje Niksic  <hniksic@arsdigita.com>
2698
2699         * retr.c (retrieve_url): Call uri_merge, not url_concat.
2700
2701         * html-url.c (collect_tags_mapper): Call uri_merge, not
2702         url_concat.
2703
2704         * url.c (mkstruct): Use encode_string instead of xstrdup followed
2705         by URL_CLEANSE.
2706         (path_simplify_with_kludge): Deleted.
2707         (contains_unsafe): Deleted.
2708         (construct): Renamed to uri_merge_1.
2709         (url_concat): Renamed to uri_merge.
2710
2711 2001-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2712
2713         * url.c (str_url): Use encode_string instead of the unnecessary
2714         CLEANDUP.
2715         (encode_string_maybe): New function, returns input string if no
2716         encoding is needed.
2717         (encode_string): Call encode_string_maybe to do the dirty work,
2718         xstrdup if no work needed.
2719
2720 2001-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2721
2722         * wget.h (XDIGIT_TO_xchar): Define here.
2723
2724         * url.c (decode_string): Use new name.
2725         (encode_string): Ditto.
2726
2727         * http.c (XDIGIT_TO_xchar): Rename HEXD2asc to XDIGIT_TO_xchar.
2728         (dump_hash): Use new name.
2729
2730         * wget.h: Rename ASC2HEXD and HEXD2ASC to XCHAR_TO_XDIGIT and
2731         XDIGIT_TO_XCHAR respectively.
2732
2733 2001-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2734
2735         * init.c: Include cookies.h.
2736
2737         * cookies.h: Declare cookies_cleanup.
2738
2739         * cookies.c (check_domain_match): Remove unused variable.
2740         (save_cookies): Remove extraneous argument from debug statement.
2741
2742         * host.c (same_host): Don't call skip_url.
2743
2744         * url.c (skip_url): Removed.  Removed its calls from various
2745         functions in url.c.
2746
2747 2001-04-13  Hrvoje Niksic  <hniksic@arsdigita.com>
2748
2749         * cookies.c (unsigned_string_hash): Use the new code in
2750         string_hash as reference.
2751
2752         * hash.c (hash_table_map): Allow deletion and change of the
2753         element processed by MAPFUN.
2754         (string_hash): Use the function from glib.
2755
2756 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2757
2758         * config.h.in: Include #undef stub.
2759
2760         * hash.c (hash_table_remove): Rewrite to actually clear deleted
2761         entries instead of just marking them as deleted.
2762
2763 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2764
2765         * hash.h: Declare hash_table_get_pair and hash_table_count.
2766
2767 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2768
2769         * cookies.c: Declare http_atotm.
2770
2771 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2772
2773         * ftp-ls.c (ftp_parse_unix_ls): Use octal constants for
2774         permissions.  A compiler that doesn't accept octal constants is
2775         seriously broken and shouldn't be used -- octal constants were
2776         present in K&R C!
2777
2778 2001-01-20  Karl Eichwalder  <ke@suse.de>
2779
2780         * Makefile.in: Provide and use DESTDIR according to the Coding
2781         Standards.
2782
2783 2001-04-12  Hrvoje Niksic  <hniksic@arsdigita.com>
2784
2785         * ftp-ls.c (ftp_parse_vms_ls): Make seconds optional in time
2786         specification.
2787
2788 2001-04-11  Hrvoje Niksic  <hniksic@arsdigita.com>
2789
2790         * url.c (parseurl): Don't strip trailing slash when u->dir is "/"
2791         because that strips the *leading* slash, thus forcing relative
2792         FTP retrieval.
2793
2794 2001-04-10  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2795
2796         * ftp.c (getftp): Convert initial FTP directory from VMS to UNIX
2797         notation for VMS servers. 
2798         (ftp_retrieve_dirs): Do not prepend '/' to f->name when
2799         odir is an empty string.
2800
2801 2001-04-10  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2802
2803         * ftp-ls.c (ftp_parse_winnt_ls): Made the fix for AM/PM more
2804         effective. Suggested by Edward J. Sabol.
2805
2806 2001-04-10  Hrvoje Niksic  <hniksic@arsdigita.com>
2807
2808         * cookies.c (build_cookies_request): Use and sort cookies from all
2809         matching domains.
2810         (build_cookies_request): Check for duplicates before generating
2811         the `Cookies' header.
2812
2813         * main.c (main): Don't load cookies here.
2814         (main): Make loadcookies and savecookies call the correct command.
2815
2816         * http.c (http_loop): Load cookies on-demand.
2817
2818 2001-04-09  Hrvoje Niksic  <hniksic@arsdigita.com>
2819
2820         * http.c (gethttp): Fix indentation of SSL ifdef.
2821
2822 2001-04-09  Hrvoje Niksic  <hniksic@arsdigita.com>
2823
2824         * ftp.c (ftp_retrieve_dirs): Don't forcibly prepend "/" to u->dir;
2825         that hack is no longer necessary.
2826         (getftp): Prepend initial directory to *non*-absolute u->dir's.
2827
2828 2001-04-09  Hrvoje Niksic  <hniksic@arsdigita.com>
2829
2830         * init.c (cmd_file): New function.
2831         (enable_tilde_expansion): New variable.
2832         (run_wgetrc): Use it.
2833         (cmd_file): Use it.
2834
2835 2001-04-08  Hrvoje Niksic  <hniksic@arsdigita.com>
2836
2837         * init.c: Include cookie-related options.
2838
2839         * main.c (main): Include cookie-specific options.
2840         (main): Load cookies before download is finished.
2841         (main): Save cookies when done.
2842
2843         * http.c (gethttp): Process the `Set-Cookie' header.
2844         (gethttp): Include cookies in the response.
2845
2846         * cookies.c: New file.
2847
2848 2001-04-08  Hrvoje Niksic  <hniksic@arsdigita.com>
2849
2850         * utils.c (datetime_str): New function.
2851
2852 2001-04-08  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
2853
2854         * ftp-ls.c (ftp_parse_winnt_ls): The AM/PM change did assume
2855         12:01PM == 00:01, which was obviously wrong. Taken care of this
2856         anomaly.
2857
2858         * ChangeLog: Removed an excess conflict marker. Reformatted the
2859         entry by Philipp Thomas from 2001-03-09.
2860
2861         * ftp-ls.c (ftp_parse_winnt_ls): Ensure that adjusted PM hours lay
2862         between 0 and 23. Elminate unused variable `sec'.
2863
2864 2001-04-08  Hrvoje Niksic  <hniksic@arsdigita.com>
2865
2866         * hash.c (hash_table_count): New function.
2867
2868 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2869
2870         * utils.c (read_file): Cast MAP_FAILED to char *.  Enforced by
2871         Digital Unix cc.
2872
2873 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2874
2875         * config.h.in: Oops, do the namespace tweaks only on systems we
2876         know about.
2877
2878 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2879
2880         * hash.c: Include <string.h>.
2881
2882 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2883
2884         * config.h.in: Define "compilation environment" options that work
2885         under Linux and Solaris.  To be reviewed on other OS'es.
2886
2887 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2888
2889         * http.c (gethttp): Prepend literal newline with `\n\'.
2890
2891 2001-04-06  Hrvoje Niksic  <hniksic@arsdigita.com>
2892
2893         * sysdep.h: Don't define VERY_LONG_FORMAT.
2894
2895         * utils.c (very_long_to_string): New function.
2896         (legible_very_long): Use it; don't use VERY_LONG_FORMAT.
2897
2898 2001-04-04  Christian Fraenkel  <christian.fraenkel@gmx.net>
2899
2900         * url.c (parse_uname): Would run past the end of the string if the
2901         username was present, but the URL did not contain a slash, e.g.
2902         http://foo:bar@myhost.
2903
2904 2001-04-03  KOJIMA Hajime  <kjm@rins.ryukoku.ac.jp>
2905
2906         * http.c (http_atotm): Use %A instead of %a to match full
2907         weekday.  (On most systems there is no difference.)
2908
2909 2001-04-03  Paul Bludov  <paul@ozero.net>
2910
2911         * mswindows.c (sleep): Use SleepEx() instead of Sleep().
2912         (ws_changetitle): Use alloca() instead of malloc() to avoid memory
2913         leak.
2914         (ws_mypath): Use GetModuleFileName instead of argv[0].
2915         (ws_startup): Use data.wVersion for comparison.
2916
2917 2001-04-02  Hrvoje Niksic  <hniksic@arsdigita.com>
2918
2919         * http.c (http_loop): Ditto.
2920
2921         * ftp.c (ftp_loop_internal): Made the check whether to continue
2922         retrieval `-O'-friendly.
2923
2924 2001-04-02  Hrvoje Niksic  <hniksic@arsdigita.com>
2925
2926         * netrc.c (parse_netrc): Don't trim the line endings explicitly;
2927         they will be handled as whitespace.
2928         (parse_netrc): Correctly handle lines that end with whitespace.
2929
2930 2001-04-02  Hrvoje Niksic  <hniksic@arsdigita.com>
2931
2932         * retr.c (retrieve_url): New variable global_download_count used
2933         to identify first retrieval.
2934
2935         * ftp.c (getftp): Ditto.
2936
2937         * http.c (gethttp): Rewind opt.dfp only on first retrieval.
2938
2939 2001-04-02  Hrvoje Niksic  <hniksic@arsdigita.com>
2940
2941         * init.c (cmd_address): Heap-allocate the address that gets stored
2942         to CLOSURE.  Old code would simply assign an address on the stack.
2943
2944 2001-04-01  Nicolas Lichtmaier <nick@debian.org>
2945
2946         * ftp.c (ftp_get_listing): Propagate error status.
2947         (ftp_retrieve_glob): Use it.
2948         (ftp_loop): Ditto.
2949
2950 2001-04-01  Nicolas Lichtmaier <nick@debian.org>
2951
2952         * main.c (main): Add -C to the string that is the third arg to
2953         getopt_long().
2954
2955 2001-04-01  Hrvoje Niksic  <hniksic@arsdigita.com>
2956
2957         * ftp.c (getftp): Don't start the download from scratch if `-c'
2958         was specified, but the file is already fully downloaded.
2959
2960         * http.c (gethttp): Don't truncate a pre-existing file if `-c' was
2961         specified and the server doesn't support continued download.
2962         (gethttp): Don't start the download from scratch if `-c' was
2963         specified, but the file is already fully downloaded.
2964
2965 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2966
2967         (recursive_retrieve): Don't clear the hash tables at this point at
2968         all; it interferes with the normal operation of register_download.
2969
2970 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2971
2972         * recur.c (recursive_retrieve): Clear the hash tables only when
2973         they are defined.
2974
2975 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2976
2977         * http.c (gethttp): Make sure the socket is closed with
2978         CLOSE_INVALIDATE before we have drained the body.
2979
2980 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2981
2982         * retr.c (retrieve_url): Call register_download() for downloaded
2983         files and register_html() for downloaded HTML files.
2984
2985         * recur.c (register_download): New function; register here that a
2986         file has been downloaded, rather than in recursive_retrieve().
2987         (register_html): New function; enqueue the location of HTML files
2988         here rather than in recursive_retrieve().
2989
2990 2001-03-31  Hrvoje Niksic  <hniksic@arsdigita.com>
2991
2992         * main.c (print_help): Use multiple fputs instead of a single ugly
2993         printf().
2994         (main): Consistently assign numbers >128 to options without a
2995         corresponding character.
2996
2997 2001-03-09  Philipp Thomas  <pthomas@suse.de>
2998
2999         * safe-ctype.h: New file. Locale independent ctype.h replacement
3000         taken from libiberty.
3001
3002         * safe-ctype.c: New file. Tables for above.
3003
3004         * Makefile.in: Add safe-ctype$o to OBJS.  Add dependencies for
3005         safe-ctype$o.
3006
3007         * cmpt.c: Remove include of ctype.h. Use ISSPACE instead of
3008         isspace.
3009
3010         * ftp-basic.c: Don't include ctype.h.
3011
3012         * ftp-ls.c: Likewise.
3013
3014         * ftp.c: Likewise.
3015
3016         * headers.c: Likewise.
3017
3018         * host.c: Likewise.
3019
3020         * html-parse.c: Likewise.
3021
3022         * html-url.c: Likewise.
3023
3024         * http.c: Likewise.
3025
3026         * init.c: Likewise.
3027
3028         * main.c: Likewise. Set LC_CTYPE along with LC_MESSAGES.
3029
3030         * netrc.c: Likewise.
3031
3032         * recur.c: Likewise.
3033
3034         * retr.c: Likewise.
3035
3036         * snprintf.c: Replace ctype.h with safe-ctype.h. Use ISDIGIT
3037         instead of isdigit.
3038
3039         * sysdep.h: Remove defines of ctype macros as they aren't needed
3040         for safe-ctype-h.
3041
3042         * url.c: Don't include ctype.h.
3043
3044         * utils.c: Likewise.
3045
3046         * wget.h: Include safe-ctype.h.
3047
3048 2001-03-27  Dan Harkless  <wget@harkless.org>
3049
3050         * Makefile.in: Moved top_builddir out of "User configuration
3051         section" of top Makefile and analogous spot in this one.
3052
3053 2001-03-17  Dan Harkless  <wget@harkless.org>
3054
3055         * Makefile.in: Include @SSL_INCLUDES@ substition in INCLUDES.
3056         Define top_builddir.  Link wget with libtool so the user doesn't
3057         have to supply a bunch of custom environment variables to 
3058         correctly link with the OpenSSL shared libraries.
3059
3060 2001-03-06  Hack Kampbjorn  <hack@hackdata.com>
3061
3062         * http.c (gethttp): skip :port in host header if it is the
3063         DEFAULT_HTTPS_PORT when using SSL.
3064
3065         * url.c: move the #define of DEFAULT_HTTP_PORT, DEFAULT_FTP_PORT
3066         and DEFAULT_HTTPS_PORT to the header file so it can be use in the
3067         rest of the code. 
3068         * url.h: Ditto
3069
3070 2001-03-01  Jonas Jensen  <bones@huleboer.dk>
3071
3072         * retr.c (show_progress): Correctly calculate the number of bytes
3073         in the first line of the download that have been actually
3074         downloaded in this run.
3075
3076 2001-02-23  Dan Harkless  <wget@harkless.org>
3077
3078         * main.c (print_help): --help documentation for -N said it would
3079         re-download files if they had the _same_ timestamp on server.
3080         (print_help): -nr belongs in "FTP options" section of --help
3081         output, not "Recursive retrieval" section.  Alphabetized FTP
3082         options by long option name.
3083
3084 2001-02-16  Dan Harkless  <wget@harkless.org>
3085
3086         * init.c (commands): Hack Kampbjørn <hack@hackdata.com> discovered
3087         that "httpsproxy" had been inserted into commands[] out of
3088         alphabetical order, causing "BUG: unknown command `httpuser'".
3089
3090 2001-02-13  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
3091
3092         * ftp-ls.c (ftp_parse_ls): Added support of ST_MACOS (Unix-like
3093         listing without correct permissons).
3094
3095         * ftp.h (stype): Added ST_MACOS to identify the NetPresenz MacOS
3096         FTP server. 
3097
3098         * ftp.c (ftp_retrieve_list): New mirroring logic: A remote file
3099         shall be donwloaded only when it's newer than the local copy or
3100         when it has the same timeestamp but its size is different. ST_VMS
3101         and ST_MACOS as special cases that lie about file size. 
3102
3103         * ftp-ls.c (ftp_parse_ls): Support for ST_MACOS.
3104
3105         * Makefile.in: Removed dependency on ftpparse library due to unclear
3106         copyright issues and absence of any feedback to our queries. 
3107
3108         * ftp-ls.c: Removed dependency on ftpparse library due to unclear
3109         copyright issues and absence of any feedback to our queries.   
3110         (ftp_parse_ls): Added a warning message when remote server system
3111         does not seem to be suported by wget. 
3112         (ftp_parse_vms_ls): New function for parsing VMS ftp
3113         server listing output.
3114         (clean_line): New function responsible for removing
3115         end-of-line characters from FTP listing texts.
3116
3117         * ftp.c (getftp): Global variables pwd and host_type are now
3118         member of the ccon structure under names ccon.id and ccon.rs. 
3119
3120         * ftp.h (struct ccon): Added formed global variables from ftp.c,
3121         enum stype rs (remote system identification) and char *id (initial
3122         working directory), as suggested by Hrvoje.
3123
3124         * url.c (parse_uname): Added support for passwords containing '@'
3125         characters.
3126         (skip_uname): Ditto.
3127
3128 2001-02-11  Hrvoje Niksic  <hniksic@arsdigita.com>
3129
3130         * ftp.c (ftp_loop): Reset con.
3131
3132 2001-01-06  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
3133
3134         * url.c (parse_uname): Added support for passwords containing '@'
3135         characters.
3136         (skip_uname): Ditto.
3137
3138 2001-02-11  Hack Kampbjørn  <hack@hackdata.com>
3139
3140         * url.c (parseurl): Debug-print u->ftp_type.
3141
3142 2001-02-11  Hrvoje Niksic  <hniksic@arsdigita.com>
3143
3144         * ftp.c (ftp_loop_internal): Disable padding.
3145         (getftp): Ditto.
3146
3147         * http.c (http_loop): Disable padding.
3148
3149         * retr.c (show_progress): Use it to enable padding.
3150
3151         * retr.c (rate): Optional parameter PAD for padding the rate.
3152
3153 2001-02-10  Hrvoje Niksic  <hniksic@arsdigita.com>
3154
3155         * retr.c (show_progress): Make sure that the last output line
3156         includes progress.
3157
3158 2001-02-10  Jonas Jensen  <bones@huleboer.dk>
3159
3160         * retr.c (show_progress): Print the download rate along with the
3161         percentages.
3162         Along with Anders Thorsby <anders@thorsby.dk>.
3163
3164 2001-02-10  Tim Mooney  <mooney@dogbert.cc.ndsu.NoDak.edu>
3165
3166         * ftp.h: Rename enums `command' to `wget_ftp_command' and
3167         `fstatus' to `wget_ftp_status' because old names clash with Tru64
3168         net/if.h.
3169
3170 2001-02-08  Christian Fraenkel <christian.fraenkel@gmx.net>
3171
3172         * gen_sslfunc.c: verify_callback is now static
3173
3174         * gen_sslfunc.c (init_ssl): load certificate if specified
3175
3176         * gen_sslfunc.c (ssl_printerr): new function
3177
3178         * init.c: added new --sslcertfile and --sslcertkey switches
3179
3180         * main.c: ditto
3181
3182         * options.h: ditto
3183
3184         * http.c (gethttp): abort when init_ssl fails
3185
3186 2001-01-23  Herold Heiko  <Heiko.Herold@previnet.it>
3187
3188         * mswindows.h: Include <malloc.h>; it's needed for alloca().
3189
3190 2001-01-10  Dan Harkless  <wget@harkless.org>
3191
3192         * url.c (str_url): Clarified this function's comment header after
3193         Hrvoje answered my question on the list as to when hide != 1.
3194         Also Hrvoje pointed out I need to use xstrdup() on the string literal.
3195
3196 2001-01-06  Hrvoje Niksic  <hniksic@arsdigita.com>
3197
3198         * connect.c (bindport): Declare addrlen as int.  Diagnosed by
3199         Drazen Kacar <dave@arsdigita.com>.
3200         (conaddr): Ditto.
3201
3202 2001-01-09  Dan Harkless  <wget@harkless.org>
3203
3204         * html-url.c: A bunch of fixup of `--page-requisites'-related
3205         comments to reflect Hrvoje's changes to my code when transplanting
3206         it into this new file, to fix spelling mistakes, to clarify, etc.
3207
3208         * url.c (write_backup_file): Clarified a comment.
3209         (str_url): Henrik van Ginhoven pointed out on the list that we
3210         shouldn't give away the number of characters in the password by
3211         replacing each character with a 'x'.  Use "<password>" instead.
3212
3213         * ftp.c (ftp_retrieve_dirs): The bug where recursion into FTP
3214         directories didn't work if logging in put you in a directory other
3215         than "/" is fixed now.  Removed the comment here warning of the bug.
3216
3217         * main.c (print_help): --continue's description was misleading.
3218         We don't "restart", we "resume".  Also, better to say
3219         "partially-downloaded file" rather than just "existing file".
3220
3221 2001-01-06  Dan Harkless  <wget@harkless.org>
3222
3223         * ChangeLog: The '[Not in 1.6 branch.]'s were decided not to be
3224         the best way to go about my aim.  Removed them in favor of:
3225
3226         * ChangeLog-branches/1.6_branch.ChangeLog: New file.
3227
3228 2001-01-04  Hrvoje Niksic  <hniksic@arsdigita.com>
3229
3230         * url.c (replace_attr): New function, to be used by both
3231         TO_COMPLETE and TO_RELATIVE case in convert_links.
3232         (find_fragment): New function for finding URL fragments.
3233         (replace_attr): Better handle the case where the original string
3234         is not quoted.  Use find_fragment.
3235         (convert_links): Use replace_attr().
3236
3237 2000-12-31  Dan Harkless  <wget@harkless.org>
3238
3239         * ChangeLog: Since this flat file doesn't have multiple branches,
3240         looking at the dates would make you think that things went into
3241         1.6 that actually just went into the 1.7-dev branch.  Added "[Not
3242         in 1.6 branch.]" where appropriate to clarify.
3243         
3244 2000-12-30  Dan Harkless  <wget@harkless.org>
3245
3246         * ftp.c, http.c:  Applied Hack Kampbjørn <hack@hackdata.com>'s
3247         patch to deal with h_errno not being defined in netdb.h under Cygwin.
3248
3249 2000-12-18  Csaba Raduly  <csaba.raduly@sophos.com>
3250
3251         * sysdep.h: Include <malloc.h> and <io.h> under Watcom.
3252
3253 2000-12-17  Igor Khristophorov  <igor@atdot.org>
3254
3255         * http.c (check_end): Fix test for '+' or '-'.
3256
3257 2000-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
3258
3259         * url.c (parseurl): Rename inner loop var from i to ind to avoid
3260         clash with the function top-level-declared variable i.
3261         (str_url): Likewise, rename inner-loop i to j.
3262
3263         * recur.c (parse_robots): Don't declare LEN at top of function.
3264         (robots_match): Renamed parameter FORBIDDEN to avoid hiding of
3265         global variable.
3266
3267         * main.c (main): Change erroneous use of bitwise and to logical.
3268
3269         * init.c (cmd_address): Don't heap-allocate `sin'; it can be on
3270         the stack because it will be copied to closure.
3271
3272         Thanks to Csaba Raduly's run of PC-LINT over the sources.
3273
3274 2000-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
3275
3276         * http.c (basic_authentication_encode): Use xmalloc(), not
3277         malloc().  Thanks to Csaba Raduly's run of PC-LINT over the
3278         sources.
3279
3280 2000-12-17  Csaba Raduly  <csaba.raduly@sophos.com>
3281
3282         * sysdep.h: Test for __EMX__ rather than for EMXOS2 for OS/2
3283         compilation.
3284
3285 2000-12-17  Hrvoje Niksic  <hniksic@arsdigita.com>
3286
3287         * mswindows.c: Include <errno.h>.
3288
3289         * gen_sslfunc.c: Include <errno.h>.
3290
3291         * ftp-basic.c: Don't attempt to declare errno or h_errno because
3292         they're not used.
3293
3294         * main.c: Include <errno.h> because errno is used.
3295
3296         * ftp.c: Ditto.
3297
3298         * http.c: Include <netdb.h> for h_errno.
3299
3300 2000-12-13  Hrvoje Niksic  <hniksic@arsdigita.com>
3301
3302         * html-parse.c (advance_declaration): MSVC assert() chokes on
3303         '\"'.  Use '"' instead.
3304
3305 2000-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
3306
3307         * utils.c (xfree_real): Removed.
3308         (xfree_debug): Just call free().
3309
3310         * wget.h (xfree): Make it an alias for free.
3311
3312 2000-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
3313
3314         * http.c (http_loop): Furthermore, touch output_document only if
3315         it is known to be an existing regular file.
3316
3317 2000-12-11  Hrvoje Niksic  <hniksic@arsdigita.com>
3318
3319         * ftp.c (ftp_retrieve_list): Ditto.
3320
3321         * http.c (http_loop): Touch output_document if that is used for
3322         output.
3323
3324 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
3325
3326         * http.c: Include gen_sslfunc.h after including Wget's headers.
3327         (persistent_available_p): Needed coma before `int ssl'.
3328
3329 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
3330
3331         * ftp.c (ftp_loop_internal): Ditto.
3332
3333         * http.c (http_loop): Use it.
3334
3335         * retr.c (sleep_between_retrievals): New function that handles the
3336         logic of opt.wait and opt.waitretry.
3337
3338 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
3339
3340         * rbuf.h: Implement only a single version of RBUF_READCHAR, using
3341         rbuf_read_bufferful when the buffer is depleted.
3342
3343         * rbuf.c (rbuf_read_bufferful): New function.
3344
3345 2000-12-06  Hrvoje Niksic  <hniksic@arsdigita.com>
3346
3347         * gen_sslfunc.h: Use ansi2knr style function declarations.
3348
3349         * gen_sslfunc.c: Reformat according to the GNU coding standards.
3350         More should be done.
3351
3352         * http.c (persistent_available_p): Place the cheap SSL test nearer
3353         the top of the function.
3354         (CLOSE_FINISH, CLOSE_INVALIDATE): Define only one version of each.
3355
3356 2000-12-05  Hrvoje Niksic  <hniksic@arsdigita.com>
3357
3358         * url.c (init_unsafe_char_table): Reinstate space as an unsafe
3359         char.
3360
3361 2000-12-03  Christian Fraenkel <christian.fraenkel@gmx.net>
3362
3363         * Makefile.in: added gen_sslfunc object
3364         * config.h.in: added HAVE_SSL define
3365         * connect.c: changed select_fd from static int to int
3366         * connect.h: ditto
3367         * gen_sslfunc.h: New file
3368         * gen_sslfunc.c: ditto
3369         * http.c: added HTTPS fuctionality
3370         * retrc.c: ditto
3371         * url.c: ditto
3372         * init.c: added opt.httpsproxy
3373         * options.h: ditto
3374         * rbuf.h: added alternate rbuf struct
3375         * wget.h: added CONSSLERR
3376         * rbuf.c: ditto
3377
3378         * http.c: Added HTTPS fuctionality.
3379
3380         * retrc.c: Ditto.
3381
3382         * url.c: Ditto.
3383
3384         * init.c: Added opt.httpsproxy.
3385
3386         * options.h: Ditto.
3387
3388         * rbuf.h: Added alternate rbuf struct.
3389
3390         * wget.h: Added CONSSLERR.
3391
3392         * rbuf.c: Ditto.
3393
3394 2000-11-30  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
3395
3396         * ftp-ls.c (ftp_parse_unix_ls): Added second parameter
3397         "ignore_perms" to ignore file and directory permissions for
3398         Windows NT FTP server listings.
3399         (ftp_parse_winnt_ls): New function.
3400         (ftp_parse_ls): Parses UNIX and Windows NT listings
3401         separately. Simple heuristics for distinguishing between UNIX and
3402         MS-DOS-like FTP listing provided by Windows NT FTP service.
3403
3404 2000-11-18  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
3405
3406         * ftpparse.c, ftpparse.h: New files.
3407
3408         * ftp-ls.c (ftp_parse_ls): Use ftp_parse_unix_ls for UNIX servers
3409         only. Use ftp_parse_nonunix_ls otherwise.
3410         (ftp_parse_nonunix_ls): Stub to the ftpparse library handling all
3411         exotic FTP servers.
3412
3413         * ftp.h (stype): New enum, distinguishes UNIX, VMS, and "other"
3414         FTP servers.
3415
3416         * ftp.c: New static wariables host_type, pwd, and pwd_len. 
3417         (getftp): Support for VMS. Support for FTP servers that do not
3418         place you in the root directory after login.
3419         (ftp_retrieve_list): VMS is silent about the real file size, issue
3420         a more appropriate message.
3421         (ftp_get_listing): Pass host_type to ftp_parse_ls.
3422
3423         * ftp-basic.c (ftp_pwd, ftp_syst): New functions.
3424
3425 2000-11-30  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
3426
3427         * ftp-ls.c (ftp_parse_unix_ls): Added second parameter
3428         "ignore_perms" to ignore file and directory permissions for
3429         Windows NT FTP server listings.
3430         (ftp_parse_winnt_ls): New function.
3431         (ftp_parse_ls): Parses UNIX and Windows NT listings
3432         separately. Simple heuristics for distinguishing between UNIX
3433         and MS-DOS-like FTP listing provided by Windows NT FTP service.
3434
3435 2000-11-29  John Summerfield  <summer@OS2.ami.com.au>
3436
3437         * netrc.c (parse_netrc): Get rid of line ending.
3438
3439 2000-11-25  Hrvoje Niksic  <hniksic@arsdigita.com>
3440
3441         * ftp.c (ftp_retrieve_list): Undo typo "fix" until resolution by
3442         Dan.
3443
3444 2000-11-24  Karl Eichwalder  <ke@suse.de>
3445
3446         * main.c (print_help): Untabify.
3447
3448 2000-11-23  Hrvoje Niksic  <hniksic@arsdigita.com>
3449
3450         * utils.c (xrealloc_debug): Do the unregister/register thing only
3451         if the pointer has actually changed.
3452         (xmalloc_real): Declare `static' in DEBUG_MALLOC builds.
3453         (xfree_real): Ditto.
3454         (xrealloc_real): Ditto.
3455         (xstrdup_real): Ditto.
3456
3457 2000-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
3458
3459         * ftp.c (getftp): ftp_getaddress() returns a malloc'ed copy of the
3460         string; no need to strdup() it.
3461         (getftp): Make pwd_len a local variable.
3462         (ftp_loop): Free PWD before returning.
3463
3464         * init.c (cleanup): Free opt.ftp_pass only if it's non-NULL.
3465
3466 2000-11-22  Hrvoje Niksic  <hniksic@arsdigita.com>
3467
3468         * all: Use xfree() instead of free.
3469
3470         * utils.c (xfree): New function.
3471
3472 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
3473
3474         * url.c (convert_links): HTML-quote the converted string.
3475
3476         * utils.c (html_quote_string): Move here from ftp-ls.c
3477         (html_quote_string): Make non-static; declare in utils.h.
3478         (html_quote_string): Convert SP to &#32;.
3479
3480 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
3481
3482         * ftp.c (getftp): Reformat Jan's code according to GNU coding
3483         standards; remove (debugging?) printf's; use '\0' for the ASCII
3484         zero character.  Use alloca() instead of malloc() for
3485         inter-function temporary allocations.
3486
3487 2000-11-18  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
3488
3489         * ftpparse.c, ftpparse.h: New files.
3490
3491         * ftp-ls.c (ftp_parse_ls): Use ftp_parse_unix_ls for UNIX servers
3492         only. Use ftp_parse_nonunix_ls otherwise.
3493         (ftp_parse_nonunix_ls): Stub to the ftpparse library handling all
3494         exotic FTP servers.
3495
3496         * ftp.h (stype): New enum, distinguishes UNIX, VMS, and "other"
3497         FTP servers.
3498
3499         * ftp.c: New static wariables host_type, pwd, and pwd_len. 
3500         (getftp): Support for VMS. Support for FTP servers that do not
3501         place you in the root directory after login.
3502         (ftp_retrieve_list): VMS is silent about the real file size, issue
3503         a more appropriate message.
3504         (ftp_get_listing): Pass host_type to ftp_parse_ls.
3505
3506         * ftp-basic.c (ftp_pwd, ftp_syst): New functions.
3507
3508 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
3509
3510         * hash.c (hash_table_put): Don't overwrite deleted mappings.
3511
3512 2000-11-21  Hrvoje Niksic  <hniksic@arsdigita.com>
3513
3514         * hash.c (find_mapping): New function.
3515         (hash_table_get): Use it.
3516         (hash_table_get_pair): Ditto.
3517         (hash_table_exists): Ditto.
3518         (hash_table_remove): Ditto.
3519         (hash_table_remove): Really delete the entry if the mapping
3520         following LOCATION is empty.
3521
3522         * utils.c (string_set_add): Check whether the element has existed
3523         before.
3524
3525         * hash.c (hash_table_get_pair): New function.
3526
3527 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
3528
3529         * http.c (http_process_type): Ignore trailing whitespace; use
3530         strdupdelim().
3531
3532         * recur.c (recursive_retrieve): Use the new `convert' field.
3533         (convert_all_links): Ditto.
3534         (convert_all_links): Don't respect meta_disallow_follow.
3535
3536         * html-url.c (handle_link): Fill out link_relative_p and
3537         link_complete_p.
3538
3539         * url.h (struct _urlpos): Make elements more readable.
3540
3541         * recur.c (recursive_retrieve): Call slist_prepend instead of
3542         slist_append.
3543         (convert_all_links): Call slist_nreverse before iterating through
3544         urls_html.
3545
3546         * utils.c (slist_prepend): New function.
3547         (slist_nreverse): Ditto.
3548
3549 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
3550
3551         * http.c (check_end): Constify.
3552
3553 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
3554
3555         * http.c (http_loop): If username and password are known, try the
3556         `Basic' authentication scheme by default.
3557
3558         * connect.h: Declare test_socket_open.
3559
3560 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
3561
3562         * version.c: Bump version from 1.5.3+dev to 1.7-dev.
3563
3564 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
3565
3566         * http.c (gethttp): Don't use the return value of sprintf().
3567         (gethttp): Inhibit keep-alive if opt.http_keep_alive is 0.
3568
3569 2000-11-20  Hrvoje Niksic  <hniksic@arsdigita.com>
3570
3571         * recur.c (recursive_retrieve): Print the "so we don't load"
3572         debugging message only if we really don't load.
3573
3574         * http.c (gethttp): Inhibit keep-alive if proxy is being used.
3575         (gethttp): Don't request keep-alive if keep-alive is inhibited.
3576
3577 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
3578
3579         * http.c (gethttp): Make the HTTP persistent connections more
3580         robust.
3581
3582 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
3583
3584         * retr.c (get_contents): If use_expected, make sure that the
3585         appropriate amount of data is being read.
3586
3587         * http.c (gethttp): Check for both `Keep-Alive: ...' and
3588         `Connection: Keep-Alive'.
3589
3590         * wget.h (DEBUGP): Call debug_logprintf only if opt.debug is
3591         turned on.
3592
3593 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
3594
3595         * http.c (connection_available_p): Use it.
3596
3597         * connect.c (test_socket_open): New function.
3598
3599         * http.c (gethttp): Support persistent connections.  Based on the
3600         ideas, and partly on code, by Sam Horrocks <sam@daemoninc.com>.
3601         (register_persistent): New function.
3602         (connection_available_p): Ditto.
3603         (invalidate_connection): Ditto.
3604
3605 2000-11-19  Hrvoje Niksic  <hniksic@arsdigita.com>
3606
3607         * url.c (convert_links): Handle UREL2ABS case.
3608
3609         * recur.c (recursive_retrieve): Instead of the list
3610         urls_downloaded, use hash tables dl_file_url_map and
3611         dl_url_file_map.
3612         (convert_all_links): Use them to retrieve data.
3613
3614         * host.c (clean_hosts): Free the hash tables.
3615
3616         * main.c (private_initialize): Call host_init().
3617
3618         * host.c (store_hostaddress): Use a saner, hash table-based data
3619         model.
3620         (realhost): Ditto.
3621         (host_init): Initialize the hash tables.
3622
3623 2000-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
3624
3625         * utils.c (slist_append): Eviscerate NOSORT.  Hash tables are now
3626         used for what the sorted slists used to be used for.
3627         (slist_contains): Don't rely on the list being sorted.
3628         (slist_append): Simplify the code.
3629
3630         * recur.c (recursive_cleanup): Use free_string_set.
3631
3632         * utils.c (string_set_add, string_set_exists, string_set_free):
3633         New functions for easier freeing of hash tables whose keys are
3634         strdup'ed strings.
3635
3636         * recur.c (recursive_retrieve): Use the hash table functions for
3637         storing undesirable URLs.
3638
3639         * hash.c: New file.
3640
3641 2000-11-17  Hrvoje Niksic  <hniksic@arsdigita.com>
3642
3643         * main.c (private_initialize): Call url_init.
3644         (main): Call private_initialize.
3645
3646         * url.c (unsafe_char_table): New table.
3647         (UNSAFE_CHAR): Use it.
3648         (init_unsafe_char_table): New function.
3649         (url_init): New function; call init_unsafe_char_table.
3650
3651 2000-11-16  Hrvoje Niksic  <hniksic@arsdigita.com>
3652
3653         * mswindows.h: Define snprintf and vsnprintf to _snprintf and
3654         _vsnprintf respectively.
3655
3656 2000-11-15  Hrvoje Niksic  <hniksic@arsdigita.com>
3657
3658         * config.h.in: Do the _XOPEN_SOURCE and _SVID_SOURCE things only
3659         on Linux.
3660
3661 2000-11-15  Hrvoje Niksic  <hniksic@arsdigita.com>
3662
3663         * html-url.c (handle_link): Handle HTML fragment identifiers.
3664
3665         * recur.c (recursive_retrieve): If norobot info is respected and
3666         the file is specified not to be followed by robots, respect that.
3667
3668         * html-url.c (collect_tags_mapper): Handle <meta name=robots
3669         content=X>.  For us the important cases are where X is NONE or
3670         where X contains NOFOLLOW.
3671         (get_urls_html): Propagate that information to the caller.
3672
3673 2000-11-13  Hrvoje Niksic  <hniksic@arsdigita.com>
3674
3675         * url.c (convert_links): Unlink the file we might be reading from
3676         before writing to it.
3677         (convert_links): Use alloca instead of malloc for
3678         filename_plus_orig_suffix.
3679
3680 2000-11-12  Hrvoje Niksic  <hniksic@arsdigita.com>
3681
3682         * host.c (realhost): Add HOST to the list with quality==0 only if
3683         it wasn't already there.
3684         Based on analysis by Lu Guohan <feng@public.bjnet.edu.cn>.
3685
3686 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
3687
3688         * url.c (get_urls_file): Ditto.
3689         (convert_links): Ditto.
3690
3691         * html-url.c (get_urls_html): Use read_file() instead of
3692         load_file().
3693
3694         * utils.c (read_file): New function, instead of the old
3695         load_file().
3696         (read_file_free): Ditto.
3697
3698         * url.c (findurl): Search only for the supported protocols.
3699         (convert_links): Use fwrite() when writing out a region of
3700         characters.
3701
3702 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
3703
3704         * ftp-ls.c: Move html_quote_string and ftp_index here.
3705
3706         * url.c: Remove get_urls_html, since that's now in html-url.c.
3707
3708         * html-url.c: New file.
3709
3710         * html-parse.c: New file.
3711
3712 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
3713
3714         * init.c (run_wgetrc): Don't bother killing off '\r' since
3715         pars_line() skips whitespace at end of line anyway.
3716         (parse_line): Oops, it didn't.  Now it does.
3717
3718         * recur.c (parse_robots): Ditto here.
3719
3720         * ftp-ls.c (ftp_parse_unix_ls): Kill off the newline character
3721         manually because read_whole_line no longer does.
3722
3723         * utils.c (read_whole_line): Rewrite to: a) use less memory
3724         (reallocates to needed size after work), b) work faster -->
3725         fgets() instead of getc, c) be more correct --> doesn't kill the
3726         newline character at the end of line.
3727
3728 2000-11-10  Hrvoje Niksic  <hniksic@arsdigita.com>
3729
3730         * init.c (comind): Initialize MAX to array size - 1.
3731
3732 2000-11-08  Hrvoje Niksic  <hniksic@arsdigita.com>
3733
3734         * url.c (construct): Changed last_slash[-1] to *(last_slash - 1).
3735         Suggested by Edward J. Sabol.
3736
3737 2000-11-08  Hrvoje Niksic  <hniksic@arsdigita.com>
3738
3739         * url.c (construct): Handle the case where host name is not
3740         followed by a slash.
3741
3742 2000-11-06  Hrvoje Niksic  <hniksic@arsdigita.com>
3743
3744         * init.c: commands[] need to be sorted!  ("base" wasn't.)
3745
3746 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
3747
3748         * wget.h (DO_REALLOC_FROM_ALLOCA): Use braces to disambiguate
3749         `if'.
3750
3751 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
3752
3753         * url.c (construct): Insert unneeded initialization for the
3754         compiler to shut up.
3755
3756         * config.h.in: Define _XOPEN_SOURCE to 500 to get the prototype
3757         for strptime() (*duh*).  Define _SVID_SOURCE to get S_IFLNK which
3758         otherwise gets lost when you define _XOPEN_SOURCE.
3759
3760         * utils.c (touch): Include the file name in the error message.
3761         From Debian.
3762
3763 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
3764
3765         * log.c (logvprintf): Use vsnprintf() in all cases.  If necessary,
3766         resize the buffer to fit the formated message.  That way, messages
3767         of arbitrary size may be printed.
3768         (logvprintf): Use saved_append() to optionally log the last
3769         several lines of output.
3770         (logputs): Ditto.
3771         (log_close): Adapt to new data structures.
3772         (log_dump): Ditto.
3773         (redirect_output): Print messages to stderr, not to stdout.
3774
3775         * log.c (saved_append_1): New function.  Replaces the old logging
3776         system ("log all output until 10M characters") with a new, much
3777         more reasonable one ("log last screenful of text").
3778         (saved_append): New function; call saved_append_1.
3779         (free_log_line): New function.
3780
3781 2000-11-05  Hrvoje Niksic  <hniksic@arsdigita.com>
3782
3783         * url.c (construct): Fix comment.
3784         (find_last_char): Document.
3785
3786 2000-11-04  Hrvoje Niksic  <hniksic@arsdigita.com>
3787
3788         * snprintf.c: New file.
3789
3790 2000-11-03  Hrvoje Niksic  <hniksic@arsdigita.com>
3791
3792         * wget.h: If HAVE_STDARG_H is not defined, don't declare argument
3793         types to logprintf() and debug_logprintf().
3794
3795 2000-11-02  Hrvoje Niksic  <hniksic@arsdigita.com>
3796
3797         * ftp.c (ftp_loop_internal): Hide the password from the URL when
3798         printing non-verbose.  Problem spotted by Dariusz Mlynarczyk
3799         <darekm@bydg.lomac.com.pl>.
3800
3801 2000-11-02  Junio Hamano  <junio@twinsun.com>
3802
3803         * ftp-basic.c (ftp_login): Make comparison case-insensitive.
3804
3805 2000-11-02  Tyler Riddle  <triddle@liquidmarket.com>
3806
3807         * http.c (known_authentication_scheme_p): Recognize NTML
3808         authentication.
3809         (create_authorization_line): Treat NTML the same as `Basic'.
3810
3811 2000-11-02  Hrvoje Niksic  <hniksic@arsdigita.com>
3812
3813         * retr.c (retrieve_url): Free url before returning.
3814         (retrieve_url): Free mynewloc before returning.
3815         Spotted by Mark A. Mankins <Mankins_Mark@prc.com>.
3816
3817 2000-11-02  Hrvoje Niksic  <hniksic@arsdigita.com>
3818
3819         * url.c (parseurl): Remove possible reading past the end of
3820         sup_protos[].  Spotted by Mark A. Mankins <Mankins_Mark@prc.com>.
3821
3822 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3823
3824         * main.c (main): In case of opt.downloaded overflowing, print
3825         <overflow> instead of a totally bogus random value.
3826
3827         * retr.c (retrieve_from_file): Ditto.
3828
3829         * recur.c (recursive_retrieve): Ditto.
3830
3831         * main.c (main): Ditto.
3832
3833         * http.c (http_loop): Ditto.
3834
3835         * ftp.c (ftp_loop_internal): Use downloaded_increase() instead of
3836         `+=', and downloaded_exceeds_quota() instead of the simple-minded
3837         check.
3838         (ftp_retrieve_list): Ditto.
3839         (ftp_retrieve_dirs): Ditto.
3840         (ftp_retrieve_glob): Ditto.
3841
3842         * retr.c (downloaded_increase): New function.  Notice overflows of
3843         opt.downloaded.
3844         (downloaded_exceeds_quota): Make sure that opt.downloaded is not
3845         used if it overflowed.
3846
3847         * options.h (struct options): New member downloaded_overflow.
3848
3849 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3850
3851         * wget.h (enum): Remove extra space after last enumeration.
3852
3853 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3854
3855         * main.c (main): Use legible_very_long() for printing
3856         opt.downloaded.
3857
3858         * utils.c (legible_1): New function that operates on strings and
3859         does the brunt of legible()'s work.
3860         (legible): Use legible_1().
3861         (legible_very_long): New function; dump the argument with
3862         sprintf(), and call legible_1().
3863
3864         * options.h (struct options): Use VERY_LONG_TYPE for
3865         opt.downloaded.
3866
3867         * sysdep.h (VERY_LONG_TYPE): Define it to have a 64-bit or greater
3868         type.
3869
3870         * config.h.in: Make sure that SIZEOF_LONG and SIZEOF_LONG_LONG get
3871         defined.  Define HAVE_LONG_LONG if long long is available.
3872
3873 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3874
3875         * utils.c (long_to_string): Update with a later, better version.
3876
3877 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3878
3879         * url.c (path_simplify_with_kludge): New function.
3880         (path_simplify_with_kludge): Disable it.  Instead...
3881         (parse_dir): ...make sure that at this point the right thing is
3882         done, i.e. that "query" part of the URL (?...) is always assigned
3883         to the file, never to the directory portion of the path.
3884
3885 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3886
3887         * retr.c (retrieve_url): Detect redirection cycles.
3888
3889 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3890
3891         * url.c (get_urls_html): Decode HTML entities using
3892         html_decode_entities.
3893
3894         * html.c (htmlfindurl): Don't count the `#' in numeric entities
3895         (&#NNN;) as an HTML fragemnt.
3896         (html_decode_entities): New function.
3897
3898 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3899
3900         * html.c (htmlfindurl): Fix recognition of # HTML fragments.
3901
3902 2000-11-01  Hrvoje Niksic  <hniksic@arsdigita.com>
3903
3904         * url.c (construct): Rewritten for clarity.  Avoids the
3905         unnecessary copying and stack-allocation the old version
3906         performed.
3907
3908 2000-10-31  Hrvoje Niksic  <hniksic@arsdigita.com>
3909
3910         * ftp.c (getftp): Ditto.
3911
3912         * http.c (gethttp): Rewind the stream when retrying from scratch.
3913
3914 2000-10-31  Hrvoje Niksic  <hniksic@arsdigita.com>
3915
3916         * retr.c (retrieve_url): Use url_concat() to handle relative
3917         redirections instead of /ad hoc/ code.
3918
3919         * url.c (url_concat): New function encapsulating weird
3920         construct().
3921         (urllen_http_hack): New function.
3922         (construct): When constructing new URLs, recognize that `?' does
3923         not form part of the file name in HTTP.
3924
3925 2000-10-13  Adrian Aichner  <adrian@xemacs.org>
3926
3927         * retr.c: Add msec timing support for WINDOWS.
3928         * retr.c (reset_timer): GetSystemTime() on WINDOWS.
3929         * retr.c (elapsed_time): Calculate delta time to msec on WINDOWS.
3930
3931 2000-10-27  Dan Harkless  <wget@harkless.org>
3932
3933         * retr.c (retrieve_url): Manually applied T. Bharath
3934         <TBharath@responsenetworks.com>'s patch to get wget to grok
3935         illegal relative URL redirects.  Reformatted and re-commented it.
3936
3937 2000-10-23  Dan Harkless  <wget@harkless.org>
3938
3939         * connect.c (make_connection and bindport): Manually applied Rob
3940         Mayoff <mayoff@dqd.com>'s 1.5.3 patch to add --bind-address,
3941         changing coding style to GNU's.
3942
3943         * ftp.c (ftp_loop_internal): --delete-after wasn't implemented for
3944         files downloaded via FTP.  Per a comment, .listing files were not
3945         counted towards number of bytes and files downloaded because they're 
3946         deleted anyway.  Well, they aren't under -nr, so count them then.
3947
3948         * init.c: Manually applied Rob Mayoff's 1.5.3 patch to add
3949         --bind-address, alphabetizing, changing coding style to GNU's,
3950         commenting, and renaming cmd_ip_address() to cmd_address() to
3951         imply hostnames also okay.
3952                 
3953         * main.c (main): --delete-after didn't delete the root of the
3954         tree.  Ignore --convert-links if --delete-after was specified.
3955         Manually applied Rob Mayoff's 1.5.3 patch to add --bind-address,
3956         fixing duplicate use of added-since-1.5.3 case value.
3957         (print_help): Clarified that --delete-after deletes local files.
3958         Rob forgot to add a line for his new --bind-address option.
3959                 
3960         * options.h (struct options): Manually applied Rob Mayoff's patch
3961         to add --bind-address (bind_address structure member).
3962                 
3963         * recur.c (recursive_retrieve): Improved comment; added DEBUGP().
3964         Ignore --convert-links if --delete-after was specified.
3965                 
3966         * retr.c (retrieve_from_file): Just added a DEBUGP().
3967                 
3968 2000-10-19  Dan Harkless  <wget@harkless.org>
3969
3970         * ftp.c (ftp_loop_internal): downloaded_file() enumerators changed.
3971         (getftp): Applied Piotr Sulecki <Piotr.Sulecki@ios.krakow.pl>'s
3972         patch to work around FTP servers that incorrectly respond to the
3973         "REST" command with the remaining size rather than the total file size.
3974                 
3975         * http.c (gethttp): Improved a comment and added code to tack on
3976         ".html" to text/html files without that extension when -E specified.
3977         (http_loop): Use new downloaded_file() enumerators and deal with
3978         the case of gethttp() called xrealloc() on u->local.
3979
3980         * init.c (commands): Added new "htmlextension" command.
3981         Also renamed John Daily's cmd_quad() to the more descriptive
3982         cmd_lockable_boolean(), alpha-sorted the CMD_DECLARE()s and
3983         removed duplicate cmd_boolean() declaration.
3984
3985         * main.c (print_help): Added my new -E / --html-extension option.
3986         (main): Undocumented --email-address option previously used -E synonym.
3987         Stole it away for the much more deserving --html-extension's use.
3988
3989         * options.h (struct options): Added html_extension field.
3990
3991         * url.c (convert_links): URL X that we saved as X.html locally due
3992         to -E needs to be backed up as X.orig, not X.html.orig.  Added comments.
3993         (downloaded_file): Now remembers if we added .html extension to a file.
3994
3995         * url.h (downloaded_file_t): Added extra enumerators to support above.
3996         (downloaded_file): Now takes and returns a downloaded_file_t.
3997
3998         * wget.h (unnamed "dt" enum): Added ADDED_HTML_EXTENSION enumerator.
3999         
4000 2000-10-09  Dan Harkless  <wget@harkless.org>
4001
4002         * html.c (htmlfindurl): Added unneeded initialization to quiet warning.
4003                 
4004         * main.c (print_help): Clarified what --retr-symlinks does.
4005         
4006 2000-09-15  John Daily  <jdaily@cyberdude.com>
4007
4008         * init.c: Add support for "always" and "never" values to allow
4009         .wgetrc to override commandline (useful e.g. with .pm files
4010         calling `wget --passive-ftp' when your firewall doesn't allow that).
4011
4012         * ftp.c (getftp): passive_ftp is first option to support always/never.
4013
4014 2000-08-30  Dan Harkless  <wget@harkless.org>
4015
4016         * ftp.c (ftp_retrieve_list): Use new INFINITE_RECURSION #define.
4017         
4018         * html.c: htmlfindurl() now takes final `dash_p_leaf_HTML' parameter.
4019         Wrapped some > 80-column lines.  When -p is specified and we're at a 
4020         leaf node, do not traverse <A>, <AREA>, or <LINK> tags other than 
4021         <LINK REL="stylesheet">.
4022         
4023         * html.h (htmlfindurl): Now takes final `dash_p_leaf_HTML' parameter.
4024         
4025         * init.c: Added new -p / --page-requisites / page_requisites option.
4026
4027         * main.c (print_help): Clarified that -l inf and -l 0 both allow
4028         infinite recursion.  Changed the unhelpful --mirrior description
4029         to simply give the options it's equivalent to.  Added new -p option.
4030         (main): Added some comments; handle new -p / --page-requisites.
4031         
4032         * options.h (struct options): Added new page_requisites field.
4033
4034         * recur.c: Changed "URL-s" to "URLs" and "HTML-s" to "HTMLs".
4035         Calculate and pass down new `dash_p_leaf_HTML' parameter to
4036         get_urls_html().  Use new INFINITE_RECURSION #define.
4037
4038         * retr.c: Changed "URL-s" to "URLs".  get_urls_html() now takes
4039         final `dash_p_leaf_HTML' parameter.
4040
4041         * url.c: get_urls_html() and htmlfindurl() now take final
4042         `dash_p_leaf_HTML' parameter.
4043
4044         * url.h (get_urls_html): Now takes final `dash_p_leaf_HTML' parameter.
4045
4046         * wget.h: Added some comments and new INFINITE_RECURSION #define.
4047         
4048 2000-08-23  Dan Harkless  <wget@harkless.org>
4049
4050         * main.c (print_help): -B / --base was not mentioned.
4051
4052 2000-08-22  Dan Harkless  <wget@harkless.org>
4053
4054         * main.c (print_help): Modified -nc description to mention that it
4055         also prevents the creation of multiple versions of the same file
4056         with ".<number>" suffixes.
4057
4058 2000-07-14  Jan Prikryl  <prikryl@cg.tuwien.ac.at>
4059
4060         * retr.c (retrieve_url): Consistently strdup opt.referer when
4061         setting u->referer.
4062
4063 2000-06-09  Dan Harkless  <wget@harkless.org>
4064
4065         * main.c (print_help): --help output for --waitretry was over 80 cols.
4066
4067 2000-06-09  Hrvoje Niksic  <hniksic@iskon.hr>
4068
4069         * url.c (encode_string): Fix comment.
4070         Suggested by Herold Heiko <Heiko.Herold@previnet.it>.
4071
4072 2000-06-01  Const Kaplinsky  <const@ce.cctpu.edu.ru>
4073
4074         * ftp.c (ftp_retrieve_list): Change permissions only on plain
4075         files.
4076
4077 2000-06-01  Hrvoje Niksic  <hniksic@iskon.hr>
4078
4079         * url.c (str_url): Print the port number only if it's different
4080         from the default port number for that protocol.
4081
4082 2000-05-22  Dan Harkless  <wget@harkless.org>
4083
4084         * main.c (print_help): Added --help line for Damir Dzeko
4085         <ddzeko@zesoi.fer.hr>'s until-now-undocumented --referer option.
4086         Removed comments that --referer and --waitretry were undocumented.
4087         Changed "`.wgetrc' command" to "`.wgetrc'-style command" on --help
4088         line for --execute.
4089
4090 2000-05-18  Hrvoje Niksic  <hniksic@iskon.hr>
4091
4092         * ftp.c (getftp): Ditto.
4093
4094         * http.c (gethttp): Check for return value of fclose/fflush.
4095
4096 2000-04-12  Hrvoje Niksic  <hniksic@iskon.hr>
4097
4098         * host.c (store_hostaddress): Instead of shifting ADDR, start
4099         copying from the correct address.
4100
4101 2000-04-12  Hrvoje Niksic  <hniksic@iskon.hr>
4102
4103         * http.c (gethttp): Don't free REQUEST -- it was allocated with
4104         alloca().
4105         Pointed out by Gisle Vanem <gvanem@eunet.no>.
4106
4107 2000-04-04  Dan Harkless  <wget@harkless.org>
4108
4109         * host.c (store_hostaddress): R. K. Owen's patch introduces a
4110         "left shift count >= width of type" warning on 32-bit
4111         architectures.  Got rid of it by tricking the compiler w/ a variable.
4112         
4113         * url.c (UNSAFE_CHAR): The macro didn't include all the illegal
4114         characters per RFC1738, namely everything above '~'.  It also
4115         generated a warning on OSes where char =~ unsigned char.  Fixed.
4116         
4117 1998-10-17  Hrvoje Niksic  <hniksic@srce.hr>
4118
4119         * http.c (http_process_type): Removed needless strdup(), a memory
4120         leak.
4121
4122 1998-09-25  Hrvoje Niksic  <hniksic@srce.hr>
4123
4124         * html.c (htmlfindurl): Set PH to the first occurrence of `#'.
4125
4126 1998-09-25  Simon Munton  <simonm@m4data.co.uk>
4127
4128         * init.c (wgetrc_file_name): Don't free HOME under Windows.
4129
4130 1998-12-01  "R. K. Owen"  <rkowen@Nersc.GOV>
4131
4132         * host.c (store_hostaddress): Fix for big endian 64-bit machines.
4133
4134 1998-12-01  Hrvoje Niksic  <hniksic@srce.hr>
4135
4136         * url.c (UNSAFE_CHAR): New macro.
4137         (contains_unsafe): Use it.
4138         (encode_string): Ditto.
4139
4140 1998-12-01  Hrvoje Niksic  <hniksic@srce.hr>
4141
4142         * main.c (i18n_initialize): Use LC_MESSAGES only if available.
4143
4144 2000-03-31  Hrvoje Niksic  <hniksic@srce.hr>
4145
4146         * Use TOUPPER/TOLOWER.
4147
4148 1998-12-22  Alexander V. Lukyanov  <lav@yars.free.net>
4149
4150         * ftp-opie.c (btoe): Zero-terminate OSTORE.
4151
4152 2000-03-21  Hrvoje Niksic  <hniksic@iskon.hr>
4153
4154         * wget.h (DO_REALLOC_FROM_ALLOCA): Ditto.
4155
4156         * sysdep.h (ISALNUM): New macro.
4157         (TOLOWER): Ditto.
4158         (TOUPPER): Ditto.
4159
4160 2000-03-10  Dan Harkless  <wget@harkless.org>
4161
4162         * html.c (idmatch): Implemented checking of my new --follow-tags
4163         and --ignore-tags options.
4164         
4165         * init.c (commands): Added comment reminding people adding new
4166         entries doing allocation to add corresponding freeing in cleanup().
4167         (commands): Added new followtags and ignoretags commands.
4168         (cleanup): Free storage for new followtags and ignoretags.
4169         
4170         * main.c: Use of "comma-separated list" was random -- normalized
4171         it.  Did some alphabetization.  Added comments pointing out
4172         "Options without arguments" and "Options accepting an argument"
4173         sections of long_options[].  Added new options --follow-tags and
4174         -G / --ignore-tags.  Added comment that Damir's --referer is
4175         currently undocumented.  Added comment that Heiko's --waitretry is
4176         partially undocumented (mentioned in --help but not in
4177         wget.texi).  Moved improperly sorted 24, 129, and 'G' cases.
4178         
4179         * options.h (struct options): Added new fields follow_tags and
4180         ignore_tags. 
4181         
4182         * wget.h: Added "#define EQ 0" so we can say "strcmp(a, b) == EQ".
4183         
4184 2000-03-02  Dan Harkless  <wget@harkless.org>
4185
4186         * ftp.c (ftp_loop_internal): Heiko introduced "suggest explicit
4187         braces to avoid ambiguous `else'" warnings.  Eliminated them.
4188         
4189         * http.c (gethttp): Dan Berger's query string patch is totally
4190         bogus.  If you have two different URLs, gen_page.cgi?page1 and
4191         get_page.cgi?page2, they'll both be saved as get_page.cgi and the
4192         second will overwrite the first.  Also, parameters to implicit
4193         CGIs, like "http://www.host.com/db/?2000-03-02" cause the URLs to
4194         be printed with trailing garbage characters, and could seg fault.
4195         Backing out the patch, which Dan B. informed me by email was just
4196         a kludge to download StarOffice from Sun made necessary due to
4197         wget's unconditional escaping of certain characters (room for an
4198         option there?).
4199         (http_loop): Heiko introduced "suggest explicit braces to avoid
4200         ambiguous `else'" warnings.  Eliminated them.
4201         
4202         * main.c: Heiko's --wait / --waitretry backwards compatibility
4203         code looks to have been totally untested -- automatic variable
4204         'wr' was used without being initialized, and a long int was passed
4205         into setval()'s char* val parameter.
4206         
4207         * recur.c (parse_robots): Applied Edward J. Sabol
4208         <sabol@alderaan.gsfc.nasa.gov>'s patch for Guan Yang's reported
4209         problem with "User-agent:<space>*<space>" lines in robots.txt.
4210         
4211         * url.c (parseurl, str_url): Removing Dan Berger's code (see
4212         http.c above for explanation).
4213         
4214 1999-08-25  Heiko Herold  <Heiko.Herold@previnet.it>
4215
4216         * ftp.c: Respect new option waitretry.
4217
4218 2000-01-30  Damir Dzeko  <ddzeko@zesoi.fer.hr>
4219
4220         * http.c (gethttp): Send custom Referer, if required.
4221
4222 1999-09-24  Charles G Waldman  <cgw@fnal.gov>
4223
4224         * netrc.c (parse_netrc): Allow passwords to contain spaces.
4225
4226         * netrc.c (parse_netrc): New function.
4227
4228 1999-09-17  Dan Berger  <dberger@ix.netcom.com>
4229
4230         * http.c (gethttp): Send it.
4231
4232         * url.c (parseurl): Detect query string in HTTP URL-s.
4233         (str_url): Print it.
4234
4235 2000-03-02  HIROSE Masaaki  <hirose31@t3.rim.or.jp>
4236
4237         * html.c (html_allow): Add <link href=...> and <script src=...>.
4238
4239 1999-05-02  andrew deryabin  <djsf@softhome.net>
4240
4241         * http.c (gethttp): Specify port in `Host' header only if it's
4242         different from 80.
4243
4244 1998-11-03  Edward J. Sabol  <sabol@alderaan.gsfc.nasa.gov>
4245
4246         * recur.c (recursive_retrieve): If a finite maximum depth is
4247         specified, and we're are already at that depth, don't download the
4248         HTML file for parsing.
4249
4250 2000-03-01  Dan Harkless  <wget@harkless.org>
4251
4252         * ftp.c (ftp_loop_internal): Call new downloaded_file() function,
4253         even though we don't do conversion on HTML files retrieved via
4254         FTP, so _current_ usage of downloaded_file() makes this call unneeded. 
4255         (ftp_retrieve_list): Added a comment saying where we need to
4256         stat() a .orig file if FTP'd HTML file conversion is ever implemented.
4257         (ftp_retrieve_list): "Local file '%s' is more recent," is sometimes
4258         a lie -- reworded as "Server file no newer than local file '%s' --".
4259         
4260         * http.c (http_loop): Fixed a typo and clarified a comment.
4261         (http_loop): When -K and -N are specified together, compare size
4262         and timestamp of server file X against local file X.orig (if
4263         extant) rather than converted local file X.
4264         (http_loop): "Local file '%s' is more recent," is sometimes a lie
4265         -- reworded as "Server file no newer than local file '%s' --".
4266         (http_loop): Call new downloaded_file() function to prevent
4267         wrongful overwriting of .orig file when -N is specified.
4268         
4269         * url.c (convert_links): When -K specified, only rename X to
4270         X.orig if downloaded_file() returns TRUE.  Otherwise when we skip
4271         file X due to -N, we clobber an X.orig from a previous invocation.
4272         (convert_links): Call the failsafe xstrdup(), not the real strdup().
4273         (convert_links): Added a note asking anyone who understands how
4274         multiple URLs can correspond to a single file to comment it.
4275         (downloaded_file): Added this new function.
4276         
4277         * url.h (downloaded_file): Added prototype for this new function
4278         as well as its downloaded_file_t enum type.
4279
4280         * wget.h (boolean): Added this new typedef and TRUE and FALSE #defines.
4281
4282 2000-02-29  Dan Harkless  <wget@harkless.org>
4283
4284         * version.c: Upped version to developer-only "1.5.3+dev".
4285
4286 2000-02-18  Dan Harkless  <wget@harkless.org>
4287
4288         * init.c (backup_converted): Added this new option.
4289
4290         * main.c (-K / --backup-converted): Added this new option.
4291
4292         * options.h (backup_converted): Added this new option.
4293
4294         * url.c (convert_links): When backup_converted is specified, save
4295         file X as X.orig before converting.
4296
4297         * url.h (urlpos): Fixed typo -- said "Rekative" instead of "Relative".
4298
4299 1998-09-21  Hrvoje Niksic  <hniksic@srce.hr>
4300
4301         * version.c: Wget 1.5.3 is released.
4302
4303 1998-09-21  Hrvoje Niksic  <hniksic@srce.hr>
4304
4305         * host.c (ftp_getaddress): Don't warn when reverse-lookup of local 
4306         address doesn't yield FQDN.
4307
4308 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4309
4310         * cmpt.c (strerror): Fix declaration of sys_errlist.
4311
4312 1998-09-11  Hrvoje Niksic  <hniksic@srce.hr>
4313
4314         * main.c (main): Don't use an array subscript as the first
4315         argument to STRDUP_ALLOCA.
4316         From Kaveh R. Ghazi.
4317
4318 1998-09-11  Szakacsits Szabolcs  <szaka@sienet.hu>
4319
4320         * html.c (htmlfindurl): Download table background.
4321
4322 1998-09-11  Hans Grobler  <grobh@conde.ee.sun.ac.za>
4323
4324         * init.c (parse_line): Would free *com before allocating it.
4325         (parse_line): Would free com instead of *com.
4326
4327 1998-09-10  Howard Gayle  <howard@fjst.com>
4328
4329         * url.c (get_urls_html): Would drop the last character of the
4330         link.
4331
4332 1998-09-10  Hrvoje Niksic  <hniksic@srce.hr>
4333
4334         * http.c (http_loop): Don't print status code if quiet.
4335
4336 1998-09-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4337
4338         * log.c: Use <stdarg.h> only when __STDC__.
4339
4340 1998-09-10  Adam D. Moss  <adam@foxbox.org>
4341
4342         * html.c (htmlfindurl): Download <layer src=...>.
4343
4344 1998-09-10  Howard Gayle  <howard@fjst.com>
4345
4346         * ftp.c (ftp_retrieve_list): Don't update the time stamp of a file 
4347         not retrieved.
4348
4349 1998-06-27  Hrvoje Niksic  <hniksic@srce.hr>
4350
4351         * utils.c: Include <libc.h> on NeXT.
4352
4353 1998-06-26  Heinz Salzmann  <heinz.salzmann@intermetall.de>
4354
4355         * url.c (get_urls_html): Fix calculation of URL position.
4356
4357 1998-06-23  Hrvoje Niksic  <hniksic@srce.hr>
4358
4359         * version.c: Wget 1.5.2 is released.
4360
4361 1998-06-23  Dave Love  <d.love@dl.ac.uk>
4362
4363         * ftp.c, init.c, netrc.c: Include errno.h.
4364
4365         * http.c: Include errno.h and time header.
4366
4367         * Makefile.in (exext): Define.
4368         (install.bin, uninstall.bin): Use it.
4369
4370 1998-06-21  Hrvoje Niksic  <hniksic@srce.hr>
4371
4372         * http.c (http_loop): Don't attempt to compare local and remote
4373         sizes if the remote size is unknown.
4374
4375 1998-06-16  Hrvoje Niksic  <hniksic@srce.hr>
4376
4377         * url.c (get_urls_html): Use malloc() instead of alloca in the
4378         loop.
4379
4380 1998-06-13  Hrvoje Niksic  <hniksic@srce.hr>
4381
4382         * version.c: Wget 1.5.2-b4 is released.
4383
4384 1998-06-13  Hrvoje Niksic  <hniksic@srce.hr>
4385
4386         * url.c (get_urls_html): Ignore spaces before and after the URI.
4387
4388 1998-06-08  Wanderlei Antonio Cavassin  <cavassin@conectiva.com.br>
4389
4390         * ftp.c (getftp): Translate `done'.
4391
4392 1998-06-06  Hrvoje Niksic  <hniksic@srce.hr>
4393
4394         * version.c: Wget 1.5.2-b3 is released.
4395
4396 1998-06-06  Alexander Kourakos  <awk@bnt.com>
4397
4398         * init.c (cleanup): Close dfp, don't free it.
4399
4400 1998-06-06  Hrvoje Niksic  <hniksic@srce.hr>
4401
4402         * utils.c (make_directory): Twiddle.
4403
4404         * config.h.in: Added template for access().
4405
4406 1998-06-05  Mathieu Guillaume  <mat@cythere.com>
4407
4408         * html.c (htmlfindurl): Download <input src=...>
4409
4410 1998-06-03  Hrvoje Niksic  <hniksic@srce.hr>
4411
4412         * utils.c (file_exists_p): Use access() with two arguments.
4413
4414 1998-05-27  Martin Kraemer  <Martin.Kraemer@mch.sni.de>
4415
4416         * netrc.c (parse_netrc): Correct logic.
4417
4418 1998-05-27  Hrvoje Niksic  <hniksic@srce.hr>
4419
4420         * ftp.c (getftp): Added `break'; suggested by Lin Zhe Min
4421         <ljm@ljm.wownet.net>.
4422
4423 1998-05-24  Hrvoje Niksic  <hniksic@srce.hr>
4424
4425         * version.c: Wget 1.5.2-b2 is released.
4426
4427 1998-05-18  Juan Jose Rodriguez  <jcnsoft@jal1.telmex.net.mx>
4428
4429         * mswindows.h: Don't translate mkdir to _mkdir under Borland.
4430
4431 1998-05-17  Hrvoje Niksic  <hniksic@srce.hr>
4432
4433         * retr.c (elapsed_time): Return correct value when
4434         HAVE_GETTIMEOFDAY is undefined.
4435
4436 1998-05-13  Hrvoje Niksic  <hniksic@srce.hr>
4437
4438         * version.c: Wget 1.5.2-b1 is released.
4439
4440 1998-05-08  Hrvoje Niksic  <hniksic@srce.hr>
4441
4442         * getopt.c (_getopt_internal): Use exec_name instead of argv[0].
4443         (_getopt_internal): Don't translate `#if 0'-ed strings.
4444
4445 1998-05-06  Douglas E. Wegscheid  <wegscd@whirlpool.com>
4446
4447         * mswindows.c (ws_handler): Use fork_to_background().
4448
4449 1998-05-05  Hrvoje Niksic  <hniksic@srce.hr>
4450
4451         * version.c: Wget 1.5.1 is released.
4452
4453 1998-05-05  Hrvoje Niksic  <hniksic@srce.hr>
4454
4455         * http.c (parse_http_status_line): Avoid `minor' and `major'
4456         names.
4457
4458 1998-05-02  Hrvoje Niksic  <hniksic@srce.hr>
4459
4460         * utils.c (mkdirhier): Renamed to make_directory.
4461
4462 1998-05-01  Hrvoje Niksic  <hniksic@srce.hr>
4463
4464         * mswindows.c (fork_to_background): Define under Windows.
4465
4466         * utils.c (fork_to_background): New function.
4467
4468         * html.c (htmlfindurl): Removed rerdundant casts.
4469
4470 1998-05-01  Douglas E. Wegscheid  <wegscd@whirlpool.com>
4471
4472         * mswindows.c (ws_mypath): Cache the path.
4473
4474 1998-04-30  Douglas E. Wegscheid  <wegscd@whirlpool.com>
4475
4476         * ftp.h: Prefix enum ftype members with FT_.
4477
4478         * ftp-ls.c, ftp.c, html.h: Adjust accordingly.
4479
4480         * mswindows.h: Use stat under Borland, _stat under MSVC.
4481
4482 1998-04-28  Hrvoje Niksic  <hniksic@srce.hr>
4483
4484         * http.c (known_authentication_scheme_p): New function.
4485         (gethttp): Handle authorization more correctly.
4486
4487         * ftp-basic.h: Removed.
4488
4489         * cmpt.h: Removed.
4490
4491         * utils.c: Include <unistd.h> before <pwd.h>; needed under SunOS
4492         with gcc 2.8.
4493         (numdigit): Use `while' loop.
4494
4495         * http.c (create_authorization_line): Detect authentication
4496         schemes case-insensitively.
4497
4498         * http.c (extract_header_attr): Use strdupdelim().
4499         (digest_authentication_encode): Move declaration of local
4500         variables to smaller scope.
4501         (digest_authentication_encode): Reset REALM, OPAQUE and NONCE.
4502         (create_authorization_line): Detect authentication schemes
4503         case-insensitively.
4504
4505         * utils.c (touch): Constify.
4506
4507         * http.c (gethttp): Report a nicer error when no data is received.
4508
4509         * rbuf.h (RBUF_READCHAR): Ditto.
4510
4511         * ftp-basic.c (ftp_response): Use sizeof.
4512
4513 1998-04-27  Hrvoje Niksic  <hniksic@srce.hr>
4514
4515         * retr.c (print_percentage): EXPECTED is long, not int.
4516         (print_percentage): Use floating-point arithmetic to avoid
4517         overflow with large files' sizes multiplied with 100.
4518
4519 1998-04-27  Gregor Hoffleit  <flight@mathi.uni-heidelberg.de>
4520
4521         * config.h.in: Added pid_t stub.
4522
4523         * sysdep.h (S_ISREG): Moved here from mswindows.h (NeXT doesn't
4524         define it).
4525
4526 1998-04-20  Hrvoje Niksic  <hniksic@srce.hr>
4527
4528         * version.c: Wget 1.5.0 is released.
4529
4530 1998-04-18  Hrvoje Niksic  <hniksic@srce.hr>
4531
4532         * url.c (str_url): Ditto.
4533
4534         * ftp-basic.c (ftp_rest): Use new name.
4535
4536         * utils.c (long_to_string): Renamed from prnum().
4537
4538 1998-04-16  Hrvoje Niksic  <hniksic@srce.hr>
4539
4540         * version.c: Wget 1.5-b17 is released.
4541
4542 1998-04-08  Hrvoje Niksic  <hniksic@srce.hr>
4543
4544         * headers.c (header_get): New argument FLAGS.
4545
4546         * http.c (gethttp): If request is malformed, bail out of the
4547         header loop.
4548         (gethttp): Check for empty header *after* the status line checks.
4549         (gethttp): Disallow continuations for status line.
4550
4551 1998-04-08  Hrvoje Niksic  <hniksic@srce.hr>
4552
4553         * version.c: Wget 1.5-b16 is released.
4554
4555 1998-04-08  Hrvoje Niksic  <hniksic@srce.hr>
4556
4557         * init.c (commands): Renamed `always_rest' to `continue'.
4558
4559 1998-04-05  Hrvoje Niksic  <hniksic@srce.hr>
4560
4561         * all: Use it.
4562
4563         * log.c (logputs): New argument.
4564         (logvprintf): Ditto.
4565         (logprintf): Ditto.
4566
4567 1998-04-04  Hrvoje Niksic  <hniksic@srce.hr>
4568
4569         * http.c (http_atotm): Update comment.
4570
4571         * main.c (i18n_initialize): Set LC_MESSAGES, not LC_ALL.
4572
4573         * wget.h: Renamed ENABLED_NLS to HAVE_NLS.
4574
4575         * main.c (i18n_initialize): New function.
4576         (main): Use it.
4577
4578         * log.c: Include <unistd.h>.
4579
4580         * retr.c (show_progress): Cast alloca to char *.
4581
4582 1998-04-04  Hrvoje Niksic  <hniksic@srce.hr>
4583
4584         * version.c: Wget 1.5-b15 is released.
4585
4586 1998-04-04  Hrvoje Niksic  <hniksic@srce.hr>
4587
4588         * utils.h: Declare file_non_directory_p().
4589
4590 1998-04-03  Hrvoje Niksic  <hniksic@srce.hr>
4591
4592         * main.c (main): It's `tries', not `numtries' now.
4593
4594 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
4595
4596         * init.c (getperms): Removed.
4597
4598 1998-04-01  Tim Charron  <tcharron@interlog.com>
4599
4600         * log.c (logvprintf): Don't use ARGS twice.
4601
4602 1998-04-01  John  <john@futuresguide.com>
4603
4604         * mswindows.c: Cleaned up.
4605
4606 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
4607
4608         * version.c: Wget 1.5-b14 is released.
4609
4610 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
4611
4612         * ftp-opie.c (STRLEN4): New macro.
4613         (btoe): Use it.
4614
4615 1998-04-01  Junio Hamano  <junio@twinsun.com>
4616
4617         * http.c: Document all the Digest functions.
4618
4619 1998-04-01  Hrvoje Niksic  <hniksic@srce.hr>
4620
4621         * utils.c (file_non_directory_p): Renamed from isfile().
4622
4623         * mswindows.h (S_ISREG): New macro, suggested by Tim Adam.
4624
4625 1998-03-31  Hrvoje Niksic  <hniksic@srce.hr>
4626
4627         * utils.c (mkdirhier): Use 0777 instead of opt.dirmode.
4628
4629         * init.c (cmd_spec_dotstyle): Use 48 dots per line for binary
4630         style.
4631         (cmd_permissions): Removed.
4632
4633         * config.h.in: Add template for WORDS_BIGENDIAN.
4634
4635 1998-03-31  Junio Hamano  <junio@twinsun.com>
4636
4637         * http.c (HEXD2asc): New macro.
4638         (dump_hash): Use it.
4639
4640 1998-03-31  Hrvoje Niksic  <hniksic@srce.hr>
4641
4642         * version.c: Wget 1.5-b13 is released.
4643
4644 1998-03-31  Hrvoje Niksic  <hniksic@srce.hr>
4645
4646         * main.c (main): Don't try to use `com'.
4647
4648 1998-03-30  Hrvoje Niksic  <hniksic@srce.hr>
4649
4650         * init.c (cmd_permissions): New function.
4651
4652 1998-03-30  Hrvoje Niksic  <hniksic@srce.hr>
4653
4654         * version.c: Wget 1.5-b12 is released.
4655
4656 1998-03-30  Hrvoje Niksic  <hniksic@srce.hr>
4657
4658         * init.c (commands): Renamed `numtries' to `tries'.
4659         (cmd_spec_debug): Removed.
4660         (home_dir): Under Windows, return `C:\' if HOME is undefined.
4661
4662 1998-03-29  Hrvoje Niksic  <hniksic@srce.hr>
4663
4664         * config.h.in: Define _XOPEN_SOURCE.
4665
4666         * init.c (check_user_specified_header): New function.
4667         (cmd_spec_header): Use it.
4668         (cmd_spec_useragent): New function.
4669
4670 1998-03-29  Hrvoje Niksic  <hniksic@srce.hr>
4671
4672         * version.c: Wget 1.5-b11 is released.
4673
4674 1998-03-28  Hrvoje Niksic  <hniksic@srce.hr>
4675
4676         * wget.h: Include <libintl.h> only if NLS is enabled.
4677
4678 1998-03-26  Hrvoje Niksic  <hniksic@srce.hr>
4679
4680         * options.h (struct options): Made `wait' a long.
4681         (struct options): Ditto for `timeout'.
4682
4683 1998-03-19  Hrvoje Niksic  <hniksic@srce.hr>
4684
4685         * utils.c (exists): Renamed to file_exists_p.
4686         (file_exists_p): Use access() if available.
4687
4688 1998-03-17  Hrvoje Niksic  <hniksic@srce.hr>
4689
4690         * utils.c (memfatal): Set save_log_p to 0 to avoid potential
4691         infloop.
4692
4693         * log.c: do_logging -> save_log_p.
4694
4695         * config.h.in: Added template for HAVE_VSNPRINTF.
4696
4697 1998-03-16  Hrvoje Niksic  <hniksic@srce.hr>
4698
4699         * init.c: Ditto.
4700
4701         * http.c: Protect declaration against non-ANSI compiler.
4702
4703         * log.c (logvprintf): Use vsnprintf() if available.
4704
4705         * getopt.c (main): Don't translate test stuff.
4706
4707 1998-03-16  Hrvoje Niksic  <hniksic@srce.hr>
4708
4709         * version.c: Wget 1.5-b10 is released.
4710
4711 1998-03-11  Hrvoje Niksic  <hniksic@srce.hr>
4712
4713         * ftp.c (getftp): Don't translate "CWD %s".
4714
4715         * wget.h (GCC_FORMAT_ATTR): Renamed from FORMAT_ATTR.
4716
4717 1998-03-07  Hrvoje Niksic  <hniksic@srce.hr>
4718
4719         * ftp-opie.c (btoe): Use memcpy() instead of strncat().
4720
4721         * log.c (logputs): New function.
4722         (logvprintf): Renamed from vlogmsg; use logputs().
4723
4724         * retr.c (show_progress): Print `[100%]' when the retrieval is
4725         finished.
4726
4727         * init.c (run_wgetrc): Use FILE, not PATH.
4728         (wgetrc_file_name): Ditto.
4729
4730 1998-03-07  Tim Adam  <tma@osa.com.au>
4731
4732         * recur.c (parse_robots): Correctly reset `entries' on empty
4733         disallow.
4734
4735 1998-03-07  Hrvoje Niksic  <hniksic@srce.hr>
4736
4737         * init.c (cmd_spec_debug): Use cmd_boolean().
4738
4739 1998-02-23  Hrvoje Niksic  <hniksic@srce.hr>
4740
4741         * http.c (gethttp): Create proxy-authorization correctly.
4742
4743 1998-02-22  Hrvoje Niksic  <hniksic@srce.hr>
4744
4745         * md5.c: Ditto.
4746
4747         * getopt.c: Use ANSI function definitions.
4748
4749         * ftp-opie.c: New file.
4750
4751         * options.h: Don't redefine EXTERN.
4752
4753         * init.c: Sort it correctly.
4754
4755 1998-02-22  Hrvoje Niksic  <hniksic@srce.hr>
4756
4757         * version.c: Wget 1.5-b9 is released.
4758
4759 1998-02-22  Hrvoje Niksic  <hniksic@srce.hr>
4760
4761         * recur.c (recursive_retrieve): Reset `first_time'.
4762
4763         * ftp.c (getftp): Added `default' clause to switches of uerr_t.
4764
4765         * rbuf.c (rbuf_peek): Simplified.
4766         (rbuf_flush): Use MINVAL.
4767
4768         * wget.h (MINVAL): Moved from url.h.
4769
4770         * rbuf.h (RBUF_FD): New macro.
4771
4772         * url.c (add_url): Add to the head of the list.
4773
4774         * ftp.c (ftp_retrieve_list): Set the permissions to downloaded
4775         file.
4776         (getftp): Set the default permissions to 0600.
4777
4778 1998-02-21  Hrvoje Niksic  <hniksic@srce.hr>
4779
4780         * url.c (get_urls_html): Ditto.
4781         (convert_links): Ditto.
4782
4783         * recur.c (parse_robots): Ditto.
4784
4785         * html.c (ftp_index): Ditto.
4786
4787         * ftp-ls.c (ftp_parse_unix_ls): Open file as binary.
4788
4789         * init.c (defaults): Initialize `opt' to zero via memset.
4790
4791         * http.c (digest_authentication_encode): goto considered harmful.
4792
4793 1998-02-19  Hrvoje Niksic  <hniksic@srce.hr>
4794
4795         * ftp.c (delelement): Simplify and fix leak.
4796
4797 1998-02-18  Hrvoje Niksic  <hniksic@srce.hr>
4798
4799         * http.c (dump_hash): Use HEXD2ASC instead of home-grown stuff.
4800
4801         * url.h (HEXD2ASC): Removed warning.
4802
4803         * init.c (comind): Use binary search.
4804         (commands): Reorganized.
4805         (setval): Ditto.
4806         (cmd_boolean): New function.
4807         (cmd_number): Ditto.
4808         (cmd_number_inf): Ditto.
4809         (cmd_string): Ditto.
4810         (cmd_vector): Ditto.
4811         (cmd_directory_vector): Ditto.
4812         (cmd_bytes): Ditto.
4813         (cmd_time): Ditto.
4814         (cmd_spec_debug): Ditto.
4815         (cmd_spec_dirmode): Ditto.
4816         (cmd_spec_dirstruct): Ditto.
4817         (cmd_spec_dotstyle): Ditto.
4818         (cmd_spec_header): Ditto.
4819         (cmd_spec_htmlify): Ditto.
4820         (cmd_spec_mirror): Ditto.
4821         (cmd_spec_outputdocument): Ditto.
4822         (cmd_spec_recursive): Ditto.
4823         (settime): Merged with cmd_time().
4824         (setbytes): Merged with cmd_bytes().
4825         (setonoff): Merged with cmd_boolean().
4826         (onoff): Ditto.
4827
4828 1998-02-17  Hrvoje Niksic  <hniksic@srce.hr>
4829
4830         * Makefile.in (distclean): Remove `config.h'.
4831
4832 1998-02-17  Hrvoje Niksic  <hniksic@srce.hr>
4833
4834         * version.c: Wget 1.5-b8 is released.
4835
4836 1998-02-17  Hrvoje Niksic  <hniksic@srce.hr>
4837
4838         * http.c (digest_authentication_encode): New function.
4839         (create_authorization_line): Use it.
4840         (dump_hash): New function.
4841         (digest_authentication_encode): Use it.
4842
4843         * fnmatch.c: Renamed from `mtch.c'.
4844
4845 1998-02-15  Karl Eichwalder  <ke@suse.de>
4846
4847         * main.c (main): Tag "Written by..." string as translatable.
4848
4849 1998-02-15  Hrvoje Niksic  <hniksic@srce.hr>
4850
4851         * wget.h (FREE_MAYBE): New macro.
4852
4853         * http.c (create_authorization_line): Don't use ANSI C string
4854         concatenation feature.
4855         (basic_authentication_encode): Use alloca() for temporary
4856         variables.
4857
4858         * recur.h: Ditto.
4859
4860         * http.c: Ditto.
4861
4862         * headers.h: Ditto.
4863
4864         * ftp-basic.c: Protect declaration against non-ANSI compiler.
4865
4866         * http.c (create_authorization_line): Cast `unsigned char *' to
4867         `char *' for sprintf, to shut up the noisy Digital Unix cc.
4868
4869 1998-02-15  Hrvoje Niksic  <hniksic@srce.hr>
4870
4871         * version.c: Wget 1.5-b7 is released.
4872
4873 1998-02-15  Hrvoje Niksic  <hniksic@srce.hr>
4874
4875         * cmpt.c (strstr): Synched with glibc-2.0.6.
4876
4877         * ftp-basic.c (calculate_skey_response): Ditto.
4878         (calculate_skey_response): Use alloca().
4879
4880         * http.c (create_authorization_line): Work with FSF's version of
4881         md5.c.
4882
4883         * md5.c: New file, from GNU libc.
4884
4885 1998-02-14  Hrvoje Niksic  <hniksic@srce.hr>
4886
4887         * url.h (URL_CLEANSE): Name the temporary variable more carefully.
4888
4889 1998-02-13  Hrvoje Niksic  <hniksic@srce.hr>
4890
4891         * http.c (basic_authentication_encode): New function, instead of
4892         the macro.
4893
4894 1998-02-13  Junio Hamano  <junio@twinsun.com>
4895
4896         * http.c: Add HTTP-DA support.
4897         * ftp-basic.c: Add Opie/S-key support.
4898         * config.h.in, Makefile.in: Add HTTP-DA and Opie/S-key support.
4899         * md5.c, md5.h: New files.
4900
4901 1998-02-13  Hrvoje Niksic  <hniksic@srce.hr>
4902
4903         * http.c (http_process_range): Renamed from hprocrange().
4904         (http_process_range): Parse the whole header.
4905
4906         * headers.c: New file.
4907         (header_process): New function.
4908         (header_get): Renamed from fetch_next_header.
4909
4910         * all: Include utils.h only where necessary.
4911
4912         * wget.h: Declare xmalloc(), xrealloc() and xstrdup() here.
4913
4914         * wget.h: Add provisions for dmalloc.
4915
4916 1998-02-12  Hrvoje Niksic  <hniksic@srce.hr>
4917
4918         * version.c: Wget 1.5-b6 is released.
4919
4920 1998-02-12  Hrvoje Niksic  <hniksic@srce.hr>
4921
4922         * ftp.c (ftp_loop): Determine `filename' more precisely.
4923
4924         * init.c (setval): Don't set `opt.quiet' if output-document is
4925         `-'.
4926
4927         * log.c (log_init): Print to STDERR instead of STDOUT.
4928         (vlogmsg): Use STDERR by default.
4929         (logflush): Ditto.
4930
4931 1998-02-11  Simon Josefsson  <jas@pdc.kth.se>
4932
4933         * host.c: Use addr_in again.
4934
4935 1998-02-08  Karl Eichwalder  <karl@suse.de>
4936
4937         * http.c (gethttp): Fixed typo.
4938
4939 1998-02-08  Hrvoje Niksic  <hniksic@srce.hr>
4940
4941         * version.c: Wget 1.5-b5 is released.
4942
4943 1998-02-08  Hrvoje Niksic  <hniksic@srce.hr>
4944
4945         * retr.c (show_progress): Use it.
4946
4947         * log.c (logflush): New function.
4948
4949         * wget.h: Utilize __attribute__ if on gcc.
4950
4951 1998-02-07  Hrvoje Niksic  <hniksic@srce.hr>
4952
4953         * http.c (base64_encode_line): New argument LENGTH.
4954         (BASIC_AUTHENTICATION_ENCODE): Use it.
4955         (BASIC_AUTHENTICATION_ENCODE): Take length of HEADER into account.
4956
4957         * main.c (main): Fixed fprintf() format mismatch.
4958
4959 1998-02-06  Hrvoje Niksic  <hniksic@srce.hr>
4960
4961         * version.c: Wget 1.5-b4 is released.
4962
4963 1998-02-03  Simon Josefsson  <jas@pdc.kth.se>
4964
4965         * host.c: use sockaddr_in instead of addr_in.
4966
4967 1998-02-04  Hrvoje Niksic  <hniksic@srce.hr>
4968
4969         * init.c (cleanup): Use it.
4970
4971         * recur.c (recursive_cleanup): New function.
4972
4973         * retr.c (retrieve_from_file): Ditto.
4974
4975         * main.c (main): Use it.
4976
4977         * recur.c (recursive_reset): New function.
4978
4979         * retr.c (retrieve_from_file): Ditto.
4980
4981         * main.c (main): Simplify call to recursive_retrieve().
4982
4983         * recur.c (recursive_retrieve): Removed FLAGS argument.
4984
4985         * http.c (gethttp): Changed call to iwrite().
4986
4987 1998-02-03  Hrvoje Niksic  <hniksic@srce.hr>
4988
4989         * url.c (get_urls_html): Ditto.
4990         (free_urlpos): Ditto.
4991         (mkstruct): Ditto.
4992         (construct): Ditto.
4993
4994         * retr.c (retrieve_url): Move declaration of local variables to
4995         smaller scope.
4996
4997         * url.c (urlproto): Use it.
4998         (parseurl): Ditto.
4999         (str_url): Ditto.
5000         (get_urls_html): Ditto.
5001
5002         * utils.h (ARRAY_SIZE): New macro.
5003
5004         * url.c (proto): Moved from url.h.
5005
5006         * url.h (URL_CLEANSE): Reformatted.
5007         (USE_PROXY_P): Renamed from USE_PROXY.
5008
5009         * ftp-basic.c: Adjust to the new interface of iwrite().
5010
5011         * ftp-basic.c (ftp_port): Use alloca().
5012
5013 1998-02-03  Hrvoje Niksic  <hniksic@srce.hr>
5014
5015         * version.c: Wget 1.5-b3 is released.
5016
5017         * host.c (ftp_getaddress): Don't print to stderr directly.
5018
5019         * init.c (setbytes): Support `g' for gigabytes.
5020         (cmdtype): New specification CTIME.
5021         (setval): Use it with settime().
5022         (commands): Use it for WAIT and TIMEOUT.
5023
5024 1998-02-02  Hrvoje Niksic  <hniksic@srce.hr>
5025
5026         * http.c (BASIC_AUTHENTICATION_ENCODE): New macro.
5027         (gethttp): Use it.
5028
5029         * utils.c (unique_name_1): Moved from url.c.
5030         (unique_name): Ditto.
5031
5032         * url.c (url_filename): Ditto.
5033
5034         * log.c (redirect_output): Changed call to unique_name().
5035
5036         * url.c (unique_name_1): Renamed from unique_name().
5037         (unique_name): Changed interface.
5038
5039         * init.c (enum cmdid): Moved from init.h.
5040         (cmdtype): Ditto.
5041         (struct cmd): Ditto.
5042
5043         * main.c (main): Use it.
5044         (main): Moved `--backups' to not have a short option.
5045
5046         * options.h (struct options): New member BACKGROUND.
5047
5048         * main.c (print_help): Rearranged.
5049         (main): New long options for -n* short options: --no-directories,
5050         --no-host-directories, --non-verbose, --no-host-lookup and
5051         --dont-remove-listing.
5052
5053 1998-02-01  Hrvoje Niksic  <hniksic@srce.hr>
5054
5055         * main.c (main): Use log_close().
5056
5057         * log.c: New variable LOGFP.
5058         (vlogmsg): Use it.
5059         (redirect_output): Don't open /dev/null; set LOGFP to stdin
5060         instead.
5061         (log_close): New function.
5062
5063         * options.h (struct options): Removed LFILE.
5064
5065         * log.c (log_enable): Removed.
5066
5067         * main.c (main): Use it.
5068
5069         * log.c (log_init): New function.
5070
5071         * url.c (get_urls_html): Removed needless assignment to BASE.
5072
5073         * host.c (add_hlist): Don't set CMP needlessly.
5074
5075         * utils.c (match_backwards): Ditto.
5076         (in_acclist): Ditto.
5077
5078         * url.c (findurl): Ditto.
5079
5080         * netrc.c (parse_netrc): Ditto.
5081
5082         * log.c (log_dump): Ditto.
5083
5084         * html.c (html_quote_string): Ditto.
5085
5086         * ftp-basic.c (ftp_request): Made static.
5087
5088         * connect.c: Made global variables static.
5089
5090         * url.c (construct): Ditto.
5091
5092         * init.c (init_path): Avoid assignment inside `if'-condition.
5093
5094         * ftp.c: Don't include in.h or winsock.h.
5095
5096         * ftp.c (ftp_loop): Use SZ.
5097
5098         * connect.c (bindport): Cast &addrlen to int *.
5099         (conaddr): Ditto.
5100
5101         * init.c (initialize): Don't use SYSTEM_WGETRC unconditionally.
5102
5103 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
5104
5105         * ftp.c (getftp): Initialize opt.ftp_pass here.
5106         (ftp_retrieve_dirs): Use alloca().
5107
5108         * init.c (defaults): Don't initialize opt.ftp_pass.
5109
5110         * sysdep.h (S_ISLNK): Declare for OS/2; ditto for lstat.
5111         From Ivan F. Martinez <ivanfm@ecodigit.com.br>.
5112
5113 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
5114
5115         * recur.c (parse_robots): Check for comments more correctly.
5116
5117         * host.c (ftp_getaddress): Use STRDUP_ALLOCA.
5118         (ftp_getaddress): Add diagnostics when reverse-lookup yields only
5119         hostname.
5120
5121 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
5122
5123         * version.c: Wget 1.5-b2 is released.
5124
5125         * netrc.c (NETRC_FILE_NAME): Moved from netrc.h.
5126
5127         * utils.c (proclist): Pass FNM_PATHNAME to fnmatch().
5128
5129         * ftp-basic.c (ftp_pasv): Avoid unnecessary casting to unsigned
5130         char.
5131
5132         * log.c: Don't attempt to hide arguments from ansi2knr.
5133
5134         * cmpt.c: Synched strptime() and mktime() with glibc-2.0.6.
5135
5136         * ansi2knr.c: Use a later version, from fileutils-3.16l alpha.
5137
5138         * ftp.c (getftp): Ditto.
5139
5140         * http.c (gethttp): Use it.
5141
5142         * retr.c (get_contents): New argument EXPECTED; pass it to
5143         show_progress().
5144         (show_progress): New argument EXPECTED; use it to display
5145         percentages.
5146
5147         * init.c (setval): Ditto.
5148
5149         * http.c (gethttp): Ditto.
5150         (http_loop): Ditto.
5151
5152         * ftp.c (getftp): Ditto.
5153         (ftp_loop_internal): Ditto.
5154
5155         * ftp-ls.c (ftp_parse_unix_ls): Use abort() instead of assert(0).
5156
5157         * sysdep.h (CLOSE): Simplify; use DEBUGP.
5158
5159         * netrc.c (search_netrc): Use alloca().
5160
5161         * init.c (defaults): Initialize no_flush.
5162
5163         * log.c (vlogmsg): Don't flush if no_flush.
5164
5165         * options.h (struct options): New variable no_flush.
5166
5167         * main.c (main): Don't play games with buffering.
5168
5169         * log.c (vlogmsg): Flush the output after every message.
5170
5171 1998-01-31  Hrvoje Niksic  <hniksic@srce.hr>
5172
5173         * init.c (parse_line): Ditto.
5174
5175         * url.c (get_urls_html): Ditto.
5176
5177         * main.c (main): Don't cast to unsigned char.
5178
5179         * init.c (run_wgetrc): Don't cast to unsigned char.
5180         (parse_line): Accept char instead of unsigned char.
5181
5182         * html.c (htmlfindurl): Use char instead of unsigned char.
5183
5184         * all: Use them.
5185
5186         * sysdep.h: Add wrappers to ctype macros to make them
5187         eight-bit-clean:
5188
5189 1998-01-30  Hrvoje Niksic  <hniksic@srce.hr>
5190
5191         * html.c (htmlfindurl): Download <img lowsrc=...>
5192
5193         * main.c (main): Ignore SIGPIPE.
5194
5195         * connect.c (select_fd): New argument WRITEP.
5196         (iwrite): Call select_fd().
5197
5198 1997-02-27  Fila Kolodny <fila@ibi.com>
5199
5200         * ftp.c (ftp_retrieve_list): If retrieving symlink and the proper
5201         one already exists, just skip it.
5202
5203 1998-01-30  Hrvoje Niksic  <hniksic@srce.hr>
5204
5205         * http.c (gethttp): Cosmetic changes.
5206
5207         * http.c (check_end): Allow `+D...' instead of `GMT'.
5208         From Fabrizio Pollastri <pollastri@cstv.to.cnr.it>.
5209
5210         * url.c (process_ftp_type): New function.
5211         (parseurl): Use it.
5212
5213         * connect.c (iwrite): Allow writing in a few chunks.
5214         (bindport): Made SRV static, so addr can point to it.
5215         (select_fd): Removed HPUX kludge.
5216
5217         * host.c (free_hlist): Incorporated into clean_hosts().
5218
5219 1998-01-29  Hrvoje Niksic  <hniksic@srce.hr>
5220
5221         * host.c (hlist): Made static.
5222         (search_address): Cosmetic change.
5223
5224 1998-01-29  Hrvoje Niksic  <hniksic@srce.hr>
5225
5226         * version.c: Wget v1.5-b1 is released.
5227
5228         * http.c (hgetlen): Use sizeof() to get the header length.
5229         (hgetrange): Ditto.
5230         (hgettype): Ditto.
5231         (hgetlocation): Ditto.
5232         (hgetmodified): Ditto.
5233         (haccepts_none): Ditto.
5234
5235         * main.c (main): Updated `--version' and `--help' output, as per
5236         Francois Pinard's suggestions.
5237
5238         * main.c: Include locale.h; call setlocale(), bindtextdomain() and 
5239         textdomain().
5240
5241         * config.h.in: Define stubs for I18N3.
5242
5243         * wget.h: Include libintl.h.
5244
5245 1998-01-28  Hrvoje Niksic  <hniksic@srce.hr>
5246
5247         * url.c (mkstruct): Check for opt.cut_dirs.
5248         (mkstruct): alloca()-te more, xmalloc() less.
5249
5250         * utils.c (load_file): Check for ferror().
5251
5252         * url.c (get_urls_file): Close only the files we opened.
5253         (get_urls_html): Ditto.
5254         (count_slashes): New function.
5255
5256         * http.h: Removed.
5257
5258         * http.c (gethttp): Respect username and password provided by
5259         proxy URL.
5260         (base64_encode_line): Write into an existing buffer instead of
5261         malloc-ing a new one.
5262         (struct http_stat): Moved from http.h
5263
5264         * retr.c (retrieve_url): Free SUF.
5265
5266         * all: Removed lots of unnecessary .h dependencies.
5267
5268         * html.c (global_state): Made static.
5269
5270         * utils.h (ALLOCA_ARRAY): New macro.
5271
5272         * main.c (main): New option `--cut-dirs'.
5273
5274         * url.c (construct): Use alloca() for T.
5275
5276         * utils.c (mkdirhier): Use STRDUP_ALLOCA.
5277
5278         * host.c (_host_t): Moved from host.h.
5279         (struct host): Renamed from _host_t.
5280         (store_hostaddress): Use STRDUP_ALLOCA for INET_S.
5281         (realhost): Ditto.
5282
5283         * host.h: Don't include url.h.
5284
5285         * ftp.c (LIST_FILENAME): Moved from ftp.h.
5286
5287         * init.c (DEFAULT_FTP_ACCT): Moved from ftp.h.
5288
5289         * main.c (main): Enable log if the output goes to a TTY.
5290
5291         * connect.h: Removed unused constant `BACKLOG'.
5292
5293         * config.h.in: Check for isatty().
5294
5295         * Makefile.in (LINK): Use CFLAGS when linking.
5296
5297 1998-01-27  Hrvoje Niksic  <hniksic@srce.hr>
5298
5299         * mswindows.c (ws_hangup): Use redirect_output().
5300
5301         * main.c (redirect_output_signal): New function; use
5302         redirect_output().
5303
5304         * log.c (redirect_output): New function, based on hangup(), which
5305         is deleted.
5306
5307         * log.c (vlogmsg): New function.
5308
5309         * wget.h (DEBUGP): Use debug_logmsg().
5310
5311         * main.c (hangup): Use it.
5312
5313         * log.c (log_dump): New function.
5314
5315         * utils.h (DO_REALLOC): Use `long' for various sizes.
5316
5317         * http.c (hskip_lws): Use `while', for clarity.
5318         (HTTP_DYNAMIC_LINE_BUFFER): New constant.
5319         (fetch_next_header): Use it instead of DYNAMIC_LINE_BUFFER.
5320
5321         * ftp-basic.c (FTP_DYNAMIC_LINE_BUFFER): New constant.
5322         (ftp_response): Use it instead of DYNAMIC_LINE_BUFFER.
5323
5324         * utils.c (DYNAMIC_LINE_BUFFER): Moved from utils.c.
5325         (LEGIBLE_SEPARATOR): Ditto.
5326         (FILE_BUFFER_SIZE): Ditto.
5327
5328         * retr.c (BUFFER_SIZE): Moved from retr.h.
5329
5330         * log.c: New file.
5331         (logmsg): Moved from utils.c.
5332         (debug_logmsg): New function.
5333
5334         * mswindows.h: Include it here.
5335
5336         * init.c: Ditto.
5337
5338         * utils.c: Don't include <windows.h>.
5339
5340 1998-01-25  Hrvoje Niksic  <hniksic@srce.hr>
5341
5342         * host.c (ftp_getaddress): Ditto.
5343
5344         * main.c (main): Use it.
5345
5346         * utils.h (STRDUP_ALLOCA): New macro.
5347
5348         * init.c: Prepend `wget: ' to error messages printed on stderr.
5349
5350         * utils.c (mkdirhier): Renamed from mymkdir.
5351         (touch): Renamed from my_touch.
5352         (pwd_cuserid): Renamed from my_cuserid().
5353
5354 1998-01-24  Andy Eskilsson  <andy.eskilsson@telelogic.se>
5355
5356         * utils.c (accdir): Process wildcards.
5357         (proclist): New function.
5358         (accdir): Use it to avoid code repetition.
5359
5360 1998-01-24  Hrvoje Niksic  <hniksic@srce.hr>
5361
5362         * recur.c (parse_robots): Respect opt.useragent; use alloca().
5363
5364         * http.c (gethttp): Construct useragent accordingly.
5365
5366         * version.c: Changed version string to numbers-only.
5367
5368         * main.c (print_help): List all the options.
5369
5370         * mswindows.c (windows_main_junk): Initialize argv0 here.
5371
5372 1998-01-24  Karl Heuer  <kwzh@gnu.org>
5373
5374         * netrc.c (search_netrc): Initialize `l' only after processing
5375         netrc.
5376
5377         * main.c (main): Don't trap SIGHUP if it's being ignored.
5378
5379 1998-01-24  Hrvoje Niksic  <hniksic@srce.hr>
5380
5381         * all: Use logmsg().
5382
5383         * utils.c (time_str): Moved from retr.c.
5384         (logmsg): New function.
5385         (logmsg_noflush): Ditto.
5386
5387         * rbuf.c: New file, moved buf_* functions here.
5388
5389         * ftp.c (ftp_expected_bytes): Moved from ftp-basic.c.
5390
5391         * ftp-basic.c (ftp_rest): Use prnum().
5392
5393         * ftp-basic.c: Ditto.
5394
5395         * ftp.c: Use the new reading functions and macros.
5396
5397         * retr.c (buf_initialize): New function.
5398         (buf_initialized_p): Ditto.
5399         (buf_uninitialize): Ditto.
5400         (buf_fd): Ditto.
5401
5402         * http.c (fetch_next_header): Use the BUF_READCHAR macro for
5403         efficiency.
5404         (gethttp): Use alloca() where appropriate.
5405
5406         * retr.c (buf_readchar): Use it.
5407         (buf_peek): Use rstreams.
5408
5409         * retr.h (BUF_READCHAR): New macro.
5410
5411         * init.c (home_dir): Rewritten for clarity.
5412         (init_path): Ditto.
5413
5414         * mswindows.c (ws_backgnd): Made static.
5415         (read_registry): Ditto.
5416         (ws_cleanup): Ditto.
5417         (ws_handler): Ditto.
5418
5419 1998-01-23  Hrvoje Niksic  <hniksic@srce.hr>
5420
5421         * alloca.c: New file.
5422
5423         * Makefile.in (ALLOCA): Define.
5424
5425         * mswindows.c (ws_help): Constify.
5426         (ws_help): Use alloca.
5427
5428         * mswindows.c: Reformat.
5429
5430         * all: Added _(...) annotations for I18N snarfing and translation.
5431
5432         * host.c (ftp_getaddress): Nuke SYSINFO.
5433         (ftp_getaddress): Don't use getdomainname().
5434         (ftp_getaddress): Use uname(), where available.
5435
5436         * http.c (gethttp): Protect a stray fprintf().
5437
5438         * init.c (settime): New function.
5439         (setval): Treat WAIT specially, allowing suffixes like `m' for
5440         minutes, etc.
5441
5442 1998-01-21  Hrvoje Niksic  <hniksic@srce.hr>
5443
5444         * url.c (get_urls_html): Use alloca() for TEMP.
5445
5446 1998-01-21  Jordan Mendelson  <jordy@wserv.com>
5447
5448         * url.c (rotate_backups): New function.
5449
5450         * http.c (gethttp): Ditto.
5451
5452         * ftp.c (getftp): Rotate backups.
5453
5454 1997-12-18  Hrvoje Niksic  <hniksic@srce.hr>
5455
5456         * all: Renamed nmalloc(), nrealloc() and nstrdup() to xmalloc(),
5457         xrealloc() and xstrdup().  Use the new functions.
5458
5459         * url.c (decode_string): Made static.
5460         (has_proto): Ditto.
5461         (parse_dir): Ditto.
5462         (parse_uname): Ditto.
5463         (mkstruct): Ditto.
5464         (construct): Ditto.
5465         (construct_relative): Ditto.
5466
5467         * retr.c (show_progress): Made static.
5468
5469         * recur.c (robots_url): Made static.
5470         (retrieve_robots): Ditto.
5471         (parse_robots): Ditto.
5472         (robots_match): Ditto.
5473
5474         * main.h: Removed.
5475
5476         * main.c (printhelp): Made static.
5477         (hangup): Ditto.
5478
5479         * init.c (comind): Made static.
5480         (defaults): Ditto.
5481         (init_path): Ditto.
5482         (run_wgetrc): Ditto.
5483         (onoff): Ditto.
5484         (setonoff): Ditto.
5485         (setnum): Ditto.
5486         (myatoi): Ditto.
5487         (getperms): Ditto.
5488         (setbytes): Ditto.
5489
5490         * http.c (fetch_next_header): Made static.
5491         (hparsestatline): Ditto.
5492         (hskip_lws): Ditto.
5493         (hgetlen): Ditto.
5494         (hgetrange): Ditto.
5495         (hgettype): Ditto.
5496         (hgetlocation): Ditto.
5497         (hgetmodified): Ditto.
5498         (haccepts_none): Ditto.
5499         (gethttp): Ditto.
5500         (base64_encode_line): Ditto.
5501         (mktime_from_utc): Ditto.
5502         (http_atotm): Ditto.
5503
5504         * html.c (idmatch): Made static.
5505
5506         * host.c (search_host): Made static.
5507         (search_address): Ditto.
5508         (free_hlist): Ditto.
5509
5510         * ftp.c (getftp): Made static.
5511         (ftp_loop_internal): Ditto.
5512         (ftp_get_listing): Ditto.
5513         (ftp_retrieve_list): Ditto.
5514         (ftp_retrieve_dirs): Ditto.
5515         (ftp_retrieve_glob): Ditto.
5516         (freefileinfo): Ditto.
5517         (delelement): Ditto.
5518
5519         * ftp-ls.c (symperms): Made static.
5520         (ftp_parse_unix_ls): Ditto.
5521
5522         * connect.c (select_fd): Made static.
5523
5524         * utils.c (xmalloc): Renamed from nmalloc.
5525         (xrealloc): Renamed from nrealloc.
5526         (xstrdup): Renamed from nstrdup.
5527
5528         * getopt.c (exchange): Use alloca.
5529
5530         * mswindows.c (mycuserid): Use strncpy.
5531
5532         * New files mswindows.c, mswindows.h, sysdep.h.  winjunk.c,
5533         systhings.h, windecl.h and winjunk.h removed.
5534
5535         * mswindows.c (sleep): New function.
5536
5537         * utils.c: Include <windows.h> under Windows.
5538
5539 1997-06-12  Darko Budor  <dbudor@zesoi.fer.hr>
5540
5541         * url.h (URL_UNSAFE): Change default under Windows.
5542
5543         * retr.c (retrieve_from_file): Respect opt.delete_after.
5544
5545         * main.c (main): Call ws_help on Windows.
5546
5547         * winjunk.c (windows_main_junk): New function.
5548
5549         * main.c (main): Junk-process argv[0].
5550
5551         * http.c (mktime_from_utc): Return -1 if mktime failed.
5552
5553         * http.c (http_loop): Ditto.
5554
5555         * ftp.c (ftp_loop_internal): Change title on Windows when using a
5556         new URL.
5557
5558         * winjunk.c (getdomainname): Lots of functions.
5559
5560 1997-06-12  Hrvoje Niksic  <hniksic@srce.hr>
5561
5562         * cmpt.c (strptime_internal): Handle years more correctly for
5563         `%y'.
5564
5565 1997-06-09  Mike Thomas <mthomas@reality.ctron.com>
5566
5567         * http.c (gethttp): Allocate enough space for
5568         `Proxy-Authorization' header.
5569
5570 1997-05-10  Hrvoje Niksic  <hniksic@srce.hr>
5571
5572         * version.c: Wget/1.4.5 is released.
5573
5574 1997-05-10  Hrvoje Niksic  <hniksic@srce.hr>
5575
5576         * retr.c (get_contents): Check return value of fwrite more
5577         carefully.
5578
5579 1997-03-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5580
5581         * cmpt.c (strptime_internal) [case 'Y']: Always subtract 1900 from
5582         year, regardless of century.
5583
5584 1997-03-30  Hrvoje Niksic  <hniksic@srce.hr>
5585
5586         * utils.c (isfile): Use `lstat' instead of `stat'.
5587
5588 1997-03-29  Hrvoje Niksic  <hniksic@srce.hr>
5589
5590         * utils.c (numdigit): Use explicit test.
5591
5592 1997-03-21  Hrvoje Niksic  <hniksic@srce.hr>
5593
5594         * http.c (http_loop): Always use `url_filename' to get u->local.
5595
5596 1997-03-20  Hrvoje Niksic  <hniksic@srce.hr>
5597
5598         * url.c: Recognize https.
5599
5600 1997-03-13  Hrvoje Niksic  <hniksic@srce.hr>
5601
5602         * recur.c (recursive_retrieve): Lowercase just the host name.
5603
5604 1997-03-09  Hrvoje Niksic  <hniksic@srce.hr>
5605
5606         * url.c (get_urls_file): Use the correct test.
5607         (get_urls_html): Ditto.
5608
5609 1997-03-07  Hrvoje Niksic  <hniksic@srce.hr>
5610
5611         * connect.c: Reverted addrlen to int.
5612
5613         * init.c (parse_line): Check for -1 instead of NONE.
5614
5615         * version.c: Changed version to 1.4.5.
5616
5617 1997-02-17  Hrvoje Niksic  <hniksic@srce.hr>
5618
5619         * init.c: New option netrc.
5620         (initialize): Don't parse .netrc.
5621
5622         * cmpt.c (recursive): Return rp.
5623         (strptime_internal): Match the long strings first, the abbreviated
5624         second.
5625
5626 1997-02-16  Hrvoje Niksic  <hniksic@srce.hr>
5627
5628         * http.c (check_end): New function.
5629         (http_atotm): Use it.
5630  
5631 1997-02-13  gilles Cedoc  <gilles@cedocar.fr>
5632
5633         * http.c (gethttp): Use them.
5634
5635         * init.c: New options proxy_user and proxy_passwd.
5636
5637 1997-02-14  Hrvoje Niksic  <hniksic@srce.hr>
5638
5639         * ftp.c (ftp_retrieve_list): Create links even if not relative.
5640
5641 1997-02-10  Hrvoje Niksic  <hniksic@srce.hr>
5642
5643         * recur.c (recursive_retrieve): Lowercase the host name, if the
5644         URL is not "optimized".
5645
5646         * host.c (realhost): Return l->hostname, even if it matches with
5647         host.
5648
5649 1997-02-10  Marin Purgar  <pmc@asgard.hr>
5650
5651         * connect.c: Make addrlen size_t instead of int.
5652         (conaddr): Ditto.
5653
5654 1997-02-09  Gregor Hoffleit  <flight@mathi.uni-heidelberg.DE>
5655
5656         * systhings.h: Define S_ISLNK on NeXT too.
5657
5658 1997-02-09  Hrvoje Niksic  <hniksic@srce.hr>
5659
5660         * version.c: Released 1.4.3.
5661
5662         * url.c: Futher update to list of protostrings.
5663         (skip_proto): Skip `//' correctly for FTP and HTTP.
5664
5665         * url.c (get_urls_html): Handle bogus `http:' things a little
5666         different.
5667
5668         * main.c (main): Removed `follow-ftp' from `f'.
5669         (main): Dumped the `prefix-files' and `file-prefix' options and
5670         features; old and bogus.
5671         (main): Exit on failed setval() in `-e'.
5672
5673         * http.c (fetch_next_header): Use it to detect header continuation
5674         correctly.
5675
5676         * retr.c (buf_peek): New function.
5677
5678 1997-02-08  Hrvoje Niksic  <hniksic@srce.hr>
5679
5680         * wget.h: Include time.h and stuff.
5681
5682 1997-02-08  Roger Beeman  <beeman@cisco.com>
5683
5684         * ftp.c: Include <time.h>
5685
5686 1997-02-07  Hrvoje Niksic  <hniksic@srce.hr>
5687
5688         * url.c (findurl): Would read over buffer limits.
5689
5690 1997-02-06  Hrvoje Niksic  <hniksic@srce.hr>
5691
5692         * ftp-ls.c (ftp_parse_unix_ls): Allow spaces in file names.
5693
5694 1997-02-05  Hrvoje Niksic  <hniksic@srce.hr>
5695
5696         * http.c (http_atotm): Initialize tm.is_dst.
5697
5698 1997-02-02  Hrvoje Niksic  <hniksic@srce.hr>
5699
5700         * http.c (gethttp): Don't print the number of retrieved headers.
5701
5702         * main.c (main): New option `--no-clobber', alias for `-nc'.
5703
5704         * url.c: Recognize `https://'.
5705
5706 1997-02-01  Hrvoje Niksic  <hniksic@srce.hr>
5707
5708         * host.c (herrmsg): Don't use h_errno.
5709
5710 1997-01-30  Hrvoje Niksic  <hniksic@srce.hr>
5711
5712         * host.c (accept_domain): Use it.
5713
5714         * main.c (main): New option `--exclude-domains'.
5715
5716         * retr.c (retrieve_url): Use it.
5717         (retrieve_url): Bail out when an URL is redirecting to itself.
5718
5719         * url.c (url_equal): New function.
5720
5721 1997-01-29  Hrvoje Niksic  <hniksic@srce.hr>
5722
5723         * connect.c: Include arpa/inet.h instead of arpa/nameser.h.
5724
5725         * http.c (mk_utc_time): New function.
5726         (http_atotm): Use it; handle time zones correctly.
5727
5728 1997-01-28  Hrvoje Niksic  <hniksic@srce.hr>
5729
5730         * http.c: Ditto.
5731
5732         * ftp-basic.c: Use it instead of WRITE.
5733
5734         * connect.c (iwrite): New function.
5735
5736 1997-01-27  Hrvoje Niksic  <hniksic@srce.hr>
5737
5738         * cmpt.c (mktime): New function.
5739
5740         * netrc.c: Include <sys/types.h>.
5741
5742         * main.c (main): Wouldn't recognize --spider.
5743
5744         * retr.c (rate): Use `B', `KB' and `MB'.
5745         (reset_timer,elapsed_time): Moved from utils.c.
5746
5747         * ftp.c (ftp_retrieve_list): Ditto.
5748
5749         * http.c (http_loop): Don't touch the file if opt.dfp.
5750
5751 1997-01-24  Hrvoje Niksic  <hniksic@srce.hr>
5752
5753         * cmpt.c: New file.
5754
5755         * ftp.c (ftp_retrieve_glob): New argument semantics.
5756         (ftp_retrieve_dirs): Use it.
5757         (ftp_loop): Ditto.
5758
5759         * html.c (htmlfindurl): Recognize `'' as the quote char.
5760
5761 1997-01-23  Hrvoje Niksic  <hniksic@srce.hr>
5762
5763         * ftp.c (ftp_loop_internal): Use it.
5764
5765         * utils.c (remove_link): New function.
5766
5767 1997-01-22  Hrvoje Niksic  <hniksic@srce.hr>
5768
5769         * retr.c (retrieve_url): Require STRICT redirection URL.
5770
5771         * url.c (parseurl): New argument STRICT.
5772
5773         * http.c (hparsestatline): Be a little-bit less strict about
5774         status line format.
5775
5776 1997-01-21  Hrvoje Niksic  <hniksic@srce.hr>
5777
5778         * http.c (gethttp): Use it.
5779
5780         * main.c (main): Don't use '<digit>' as options.
5781
5782         * init.c: New option ignore_length.
5783
5784         * http.c (gethttp): Ditto.
5785         (http_loop): Check for redirection without Location:.
5786         (gethttp): Don't print Length unless RETROKF.
5787
5788         * ftp.c (getftp): Use it.
5789
5790         * url.c (mkalldirs): New function.
5791
5792         * utils.c (mymkdir): Don't check for existing non-directory.
5793
5794         * url.c (mkstruct): Don't create the directory.
5795
5796 1997-01-20  Hrvoje Niksic  <hniksic@srce.hr>
5797
5798         * init.c (setval): Removed NO_RECURSION checks.
5799
5800 1997-01-19  Hrvoje Niksic  <hniksic@srce.hr>
5801
5802         * version.c: "Released" 1.4.3-pre2.
5803
5804         * recur.c (recursive_retrieve): Bypass host checking only if URL
5805         is ftp AND parent URL is not ftp.
5806
5807         * ftp-basic.c (ftp_request): Print out Turtle Power.
5808
5809         * ftp.c (ftp_loop): Call ftp_retrieve_glob with 0 if there's no
5810         wildcard.
5811         (ftp_retrieve_glob): Call ftp_loop_internal even on empty list, if
5812         not glob.
5813
5814         * http.c (gethttp): Be a little bit smarter about status codes.
5815
5816         * recur.c (recursive_retrieve): Always reset opt.recursive when
5817         dealing with FTP.
5818
5819 1997-01-18  Hrvoje Niksic  <hniksic@srce.hr>
5820
5821         * retr.c (retrieve_url): New variable location_changed; use it for
5822         tests instead of mynewloc.
5823         (retrieve_url): Allow heuristic adding of html.
5824
5825         * url.c (url_filename): Don't use the `%' in Windows file names.
5826
5827         * http.c (http_loop): Always time-stamp the local file.
5828
5829         * http.c (http_loop): Ditto.
5830
5831         * ftp.c (ftp_retrieve_list): Use it.
5832
5833         * utils.c (my_touch): New function.
5834
5835         * ftp.c (ftp_retrieve_list): Use #ifdef HAVE_STRUCT_UTIMBUF
5836         instead of #ifndef NeXT.
5837
5838         * utils.c (strptime): New version, by Ulrich Drepper.
5839
5840 1997-01-17  Hrvoje Niksic  <hniksic@srce.hr>
5841
5842         * http.c (haccepts_none): Renamed from `haccepts_bytes'.
5843         (gethttp): If haccepts_none(), disable ACCEPTRANGES.
5844         (http_loop): Would remove ACCEPTRANGES.
5845
5846         * ftp.c (getftp): Call ftp_list with NULL.
5847
5848 1997-01-15  Hrvoje Niksic  <hniksic@srce.hr>
5849
5850         * html.c (ftp_index): Don't print minutes and seconds if we don't
5851         know them; beautify the output.
5852
5853         * ftp.c (getftp): Don't close the socket on FTPNSFOD.
5854
5855 1997-01-14  Hrvoje Niksic  <hniksic@srce.hr>
5856
5857         * utils.c (strptime): New function.
5858         (strptime): Don't use get_alt_number.
5859         (strptime): Don't use locale.
5860         (match_string): Made it a function.
5861
5862 1997-01-12  Hrvoje Niksic  <hniksic@srce.hr>
5863
5864         * http.c (http_atotm): New function.
5865         (http_loop): Use it.
5866
5867         * atotm.c: Removed from the distribution.
5868
5869         * http.c (base64_encode_line): Rewrite.
5870
5871 1997-01-09  Hrvoje Niksic  <hniksic@srce.hr>
5872
5873         * ftp.c (getftp): Use ftp_expected_bytes; print size.
5874
5875         * ftp-basic.c (ftp_response): Use ftp_last_respline.
5876         (ftp_expected_bytes): New function.
5877
5878         * ftp.c (getftp): Print the unauthoritative file length.
5879
5880         * ftp-ls.c: Renamed from ftp-unix.c.
5881         (ftp_parse_ls): Moved from ftp.c.
5882         (ftp_parse_unix_ls): Recognize seconds in time spec.
5883         (ftp_parse_unix_ls): Recognize year-less dates of the previous
5884         year.
5885
5886 1997-01-08  Hrvoje Niksic  <hniksic@srce.hr>
5887
5888         * ftp-basic.c: Don't declare errno if #defined.
5889
5890         * host.c (ftp_getaddress): Check for sysinfo legally.
5891
5892 1997-01-08  Darko Budor  <dbudor@diana.zems.fer.hr>
5893
5894         * connect.c (iread): Use READ.
5895
5896 1996-12-23  Hrvoje Niksic  <hniksic@srce.hr>
5897
5898         * url.c: Recognize finger, rlogin, tn3270, mid and cid as valid
5899         schemes.
5900
5901 1996-12-22  Hrvoje Niksic  <hniksic@srce.hr>
5902
5903         * host.c (ftp_getaddress): Allow `.' in hostname.
5904
5905 1996-12-26  Darko Budor <dbudor@zems.fer.hr>
5906
5907         * wget.h: READ and WRITE macros for use instead of read and write
5908         on sockets, grep READ *.c, grep WRITE *.c
5909
5910         * wsstartup.c: new file - startup for winsock
5911
5912         * wsstartup.h: new file
5913
5914         * win32decl.h: new file - fixup for <errno.h> and winsock trouble
5915
5916         * configure.bat: Configure utility for MSVC
5917
5918         * src/Makefile.ms,config.h.ms: new files for use with MSVC 4.x
5919
5920 1996-12-22  Hrvoje Niksic  <hniksic@srce.hr>
5921
5922         * version.c: Released 1.4.3-pre.
5923
5924         * utils.c (prnum): Accept long.
5925         (legible): Use prnum().
5926
5927         * connect.c (make_connection): Accept port as short.
5928         (bindport): Ditto.
5929
5930         * http.c (gethttp): Use search_netrc.
5931
5932 1996-12-21  Hrvoje Niksic  <hniksic@srce.hr>
5933
5934         * ftp.c (getftp): Use search_netrc.
5935
5936         * netrc.c (free_netrc): New function.
5937
5938         * init.c (home_dir): New function.
5939
5940         * url.c (convert_links): Allow REL2ABS changes.
5941
5942 1996-12-21  Gordon Matzigkeit  <gord@gnu.ai.mit.edu>
5943
5944         * netrc.c: New file.
5945         (parse_netrc, maybe_add_to_list): New functions.
5946
5947 1996-12-17  Hrvoje Niksic  <hniksic@srce.hr>
5948
5949         * retr.c (retrieve_url): Reset opt.recursion before calling
5950         ftp_loop if it is reached through newloc.
5951
5952         * init.c (run_wgetrc): Print the wgetrc path too, when reporting
5953         error; don't use "Syntax error", since we don't know if it is
5954         really a syntax error.
5955
5956 1996-12-16  Hrvoje Niksic  <hniksic@srce.hr>
5957
5958         * utils.c (acceptable): Extract the filename part of the path.
5959
5960         * recur.c (recursive_retrieve): Call acceptable() with the right
5961         argument; would bug out on wildcards.
5962
5963         * init.c (parse_line): Likewise.
5964
5965         * html.c (htmlfindurl): Cast to char * when calling stuff.
5966
5967 1996-12-15  Hrvoje Niksic  <hniksic@srce.hr>
5968
5969         * ftp.c (getftp): Use ftp_pasv.
5970
5971         * ftp-basic.c (ftp_request): Accept NULL value.
5972         (ftp_pasv): New function.
5973
5974         * options.h (struct options): Add passive FTP option.
5975
5976 1996-12-15  Hrvoje Niksic  <hniksic@srce.hr>
5977
5978         * url.c (parseurl): Debug output.
5979
5980         * utils.c (path_simplify): New one, adapted from bash's
5981         canonicalize_pathname().
5982
5983 1996-12-14  Hrvoje Niksic  <hniksic@srce.hr>
5984
5985         * ftp.c (getftp): Don't discard the buffer.
5986
5987         * retr.c (get_contents): New parameter nobuf.
5988
5989 1996-12-13  Shawn McHorse  <riffraff@txdirect.net>
5990
5991         * html.c (htmlfindurl): Recognize <meta contents="d; URL=...".
5992
5993         * init.c (setval): Strip the trailing slashes on CVECDIR.
5994
5995 1996-12-13  Hrvoje Niksic  <hniksic@srce.hr>
5996
5997         * init.c: Make excludes and includes under CVECDIR instead of
5998         CVEC.
5999
6000 1996-12-13  Shawn McHorse  <riffraff@txdirect.net>
6001
6002         * url.c (get_urls_html): Skip "http:".
6003
6004 1996-12-13  Hrvoje Niksic  <hniksic@srce.hr>
6005
6006         * utils.c (strcasecmp): From glibc.
6007         (strncasecmp): Also.
6008         (strstr): Also.
6009
6010         * url.c: Added javascript: to the list of URLs prefixes.
6011
6012 1996-12-12  Shawn McHorse  <riffraff@txdirect.net>
6013
6014         * recur.c (retrieve_robots): Print the warning message only if
6015         verbose.
6016
6017 1996-12-12  Gregor Hoffleit  <flight@mathi.uni-heidelberg.DE>
6018
6019         * ftp.c (ftp_retrieve_list): Use NeXT old utime interface.
6020
6021 1996-12-12  Hrvoje Niksic  <hniksic@srce.hr>
6022
6023         * systhings.h: New file.
6024
6025         * ../configure.in: Check for utime.h
6026
6027         * ftp.c: Check whether we have unistd.h.
6028
6029 1996-11-27  Hrvoje Niksic  <hniksic@srce.hr>
6030
6031         * recur.c (recursive_retrieve): Send the canonical URL as referer.
6032         (recursive_retrieve): Call get_urls_html with the canonical URL.
6033
6034 1996-12-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6035
6036         * (configure.in, config.h.in, src/Makefile.in, src/*.[ch]): Add
6037         ansi2knr support for compilers which don't support ANSI style
6038         function prototypes and signatures.
6039
6040         * (aclocal.m4, src/ansi2knr.c, src/ansi2knr.1): New files.
6041
6042 1996-11-26  Hrvoje Niksic  <hniksic@srce.hr>
6043
6044         * url.c: Use it; Recognize paths ending with "." and ".." as
6045         directories.
6046         (url_filename): Append .n whenever file exists and could be a
6047         directory.
6048
6049         * url.h (ISDDOT): New macro.
6050
6051         * init.c (parse_line): Use unsigned char.
6052
6053         * url.c (get_urls_html): Cast to unsigned char * when calling
6054         htmlfindurl.
6055
6056         * html.c (htmlfindurl): Use unsigned char.
6057
6058         * version.c: Changed version to 1.4.3.
6059
6060 1996-11-25  Hrvoje Niksic  <hniksic@srce.hr>
6061
6062         * version.c: Released 1.4.2.
6063
6064         * ftp.c (getftp): Simplified assertion.
6065         (ftp_loop_internal): Remove symlink before downloading.
6066         (ftp_retrieve_list): Unlink the symlink name before attempting to
6067         create a symlink!
6068
6069         * options.h (struct options): Renamed print_server_response to
6070         server_response.
6071
6072         * ftp.c (rel_constr): Removed.
6073         (ftp_retrieve_list): Don't use it.
6074         (ftp_retrieve_list): Use opt.retr_symlinks.
6075
6076 1996-11-24  Hrvoje Niksic  <hniksic@srce.hr>
6077
6078         * main.c (main): New option retr_symlinks.
6079
6080         * url.c (convert_links): Print verbose message.
6081
6082 1996-11-24  Hrvoje Niksic  <hniksic@srce.hr>
6083
6084         * http.c (http_loop): Reset newloc in the beginning of function;
6085         would cause FMR in retrieve_url.
6086
6087 1996-11-23  Hrvoje Niksic  <hniksic@srce.hr>
6088
6089         * recur.c (convert_all_links): Find the URL of each HTML document,
6090         and feed it to get_urls_html; would bug out.
6091         (convert_all_links): Check for l2 instead of dl; removed dl.
6092
6093         * url.c (convert_links): Don't refer to freed newname.
6094
6095         * recur.c (recursive_retrieve): Add this_url to urls_downloaded.
6096
6097         * main.c (main): Print the OS_TYPE in the debug output, too.
6098
6099         * recur.c (recursive_retrieve): Check for opt.delete_after.
6100
6101         * main.c (main): New option delete-after.
6102
6103         * init.c (setval): Cleaned up.
6104
6105 1996-11-21  Hrvoje Niksic  <hniksic@srce.hr>
6106
6107         * Makefile.in (wget): Make `wget' the default target.
6108
6109         * ftp.c (ftp_loop_internal): Move noclobber checking out of the
6110         loop.
6111         (ftp_retrieve_list): Warn about non-matching sizes.
6112
6113         * http.c (http_loop): Made -nc non-dependent on opt.recursive.
6114
6115         * init.c (setnum): Renamed from setnuminf; New argument flags.
6116         (setval): Use it.
6117
6118         * main.c (main): Sorted the options.
6119         (main): New option --wait.
6120
6121 1996-11-21  Shawn McHorse  <riffraff@txdirect.net>
6122
6123         * html.c (htmlfindurl): Reset s->in_quote after getting out of
6124         quotes.
6125
6126 1996-11-20  Hrvoje Niksic  <hniksic@srce.hr>
6127
6128         * version.c: Changed version to 1.4.2.
6129
6130 1996-11-20  Hrvoje Niksic  <hniksic@srce.hr>
6131
6132         * version.c: Released 1.4.1.
6133
6134         * html.c (html_quote_string): New function.
6135         (ftp_index): Use it.
6136         (htmlfindurl): A more gentle ending debug message.
6137
6138         * ftp.c (ftp_loop): Check for opt.htmlify.
6139
6140         * init.c: New command htmlify.
6141
6142         * ftp.c (getftp): Nicer error messages, with `'-encapsulated
6143         strings.
6144         (ftp_loop): Print size of index.html.
6145
6146         * init.c (setval): Implement "styles".
6147
6148         * main.c (main): New option dotstyle.
6149
6150 1996-11-19  Hrvoje Niksic  <hniksic@srce.hr>
6151
6152         * ftp.c (getftp): Close the master socket in case of errors, after
6153         bindport().
6154
6155         * connect.c (bindport): Initialize msock to -1.
6156
6157         * ftp.c (getftp): Initialize dtsock to -1.
6158
6159         * connect.c (closeport): Don't close sock if sock == -1.
6160
6161 1996-11-18  Hrvoje Niksic  <hniksic@srce.hr>
6162
6163         * init.c (setnuminf): Nuked default value -- just leave unchanged.
6164         (setval): Don't send default values.
6165         (defaults): Use DEFAULT_TIMEOUT -- aaargh.
6166
6167         * options.h (struct options): Use long for dot_bytes.
6168
6169         * init.c (setquota): Renamed to setbytes.
6170         (setval): Use setbytes on DOTBYTES.
6171
6172 1996-11-17  Hrvoje Niksic  <hniksic@srce.hr>
6173
6174         * ftp.c (getftp): Initialize con->dltime.
6175
6176         * recur.c (recursive_retrieve): Use same_host instead of
6177         try_robots; simply load robots_txt whenever the host is changed.
6178         (recursive_retrieve): Free forbidden before calling parse_robots.
6179
6180 1996-11-16  Hrvoje Niksic  <hniksic@srce.hr>
6181
6182         * retr.c (show_progress): Use them.
6183
6184         * options.h (struct options): New options dot_bytes, dots_on_line
6185         and dot_spacing.
6186
6187 1996-11-16  Mark Boyns  <boyns@sdsu.edu>
6188
6189         * recur.c (recursive_retrieve): Retrieve directories regardless of
6190         acc/rej rules; check for empty u->file.
6191
6192 1996-11-14  Hrvoje Niksic  <hniksic@srce.hr>
6193
6194         * init.c (setval): Use it.
6195
6196         * utils.c (merge_vecs): New function.
6197
6198         * init.c (setval): Reset the list-type functions when encountering
6199         "".
6200
6201 1996-11-14  Shawn McHorse  <riffraff@txdirect.net>
6202
6203         * recur.c (recursive_retrieve): Use base_url instead of this_url
6204         for no_parent.
6205
6206 1996-11-14  Shawn McHorse  <riffraff@txdirect.net>
6207
6208         * html.c (htmlfindurl): Reset s->in_quote after exiting the quote.
6209
6210 1996-11-13  Hrvoje Niksic  <hniksic@srce.hr>
6211
6212         * utils.c (sepstring): Rewrote; don't use strtok.
6213
6214         * recur.c (recursive_retrieve): Enter assorted this_url to slist
6215         when running the first time.
6216         (retrieve_robots): Warn to ignore errors when robots are loaded.
6217
6218         * utils.c (load_file): Moved from url.c.
6219
6220         * http.c: Made static variables const too in h* functions.
6221
6222         * main.c (main): Renamed --continue-ftp to --continue.
6223
6224         * recur.c (recursive_retrieve): Use it.
6225
6226         * utils.c (frontcmp): New function.
6227
6228         * url.c (accdir): New function.
6229
6230         * html.c (htmlfindurl): Recognize <area href=...>.
6231
6232         * ftp.c (ftp_retrieve_dirs): Implemented opt.includes.
6233
6234         * init.c (setval): Free the existing opt.excludes and
6235         opt.includes, if available.
6236
6237         * main.c (main): New option -I.
6238
6239 1996-11-12  Hrvoje Niksic  <hniksic@srce.hr>
6240
6241         * ftp.c (ftp_retrieve_glob): Do not weed out directories.
6242
6243         * version.c: Changed version to 1.4.1.
6244
6245 1996-11-11  Hrvoje Niksic  <hniksic@srce.hr>
6246
6247         * version.c: Released 1.4.0.
6248
6249 1996-11-10  Hrvoje Niksic  <hniksic@srce.hr>
6250
6251         * main.c (main): Free com and val after parse_line.
6252         (printhelp): Reorder the listing.
6253
6254         * http.c: More robust header parsing.
6255
6256         * http.c: Allow any number of spaces, or no spaces, precede ':'.
6257         (hskip_lws): New function.
6258         (haccepts_bytes): New function.
6259         (gethttp): Use it.
6260
6261         * init.c (setval): Check header sanity.
6262         (setval): Allow resetting of headers.
6263
6264 1996-11-10  Hrvoje Niksic  <hniksic@srce.hr>
6265
6266         * http.c (http_loop): Don't use has_wildcards.
6267
6268         * http.c (gethttp): Free all_headers -- would leak.
6269
6270         * recur.c (recursive_retrieve): Initialize depth to 1 instead of
6271         0 -- this fixes a long-standing bug in -rl.
6272
6273 1996-11-09  Hrvoje Niksic  <hniksic@srce.hr>
6274
6275         * ftp.c: Use -1 as "impossible" value for con->fd.
6276
6277         * url.h (URL_SEPARATOR): Don't treat `*' and `+' as separators.
6278
6279         * init.c (parse_line): Use isalpha.
6280
6281         * ftp-unix.c: Use HAVE_UNISTD_H.
6282
6283         * mtch.c (has_wildcards): Don't match \.
6284
6285         * http.c (http_loop): Warn on HTTP wildcard usage.
6286
6287 1996-11-08  Hrvoje Niksic  <hniksic@srce.hr>
6288
6289         * url.c (url_filename): Do not create numbered suffixes if
6290         opt.noclobber -- would bug out on -nc.
6291
6292 1996-11-07  Hrvoje Niksic  <hniksic@srce.hr>
6293
6294         * recur.c (parse_robots): Don't chuck out the commands without
6295         arguments (`Disallow:<empty>' didn't work).
6296         (parse_robots): Compare versions lowercase.
6297         (parse_robots): Match on base_version, not version_string!
6298         (parse_robots): Handle comments properly.
6299         (parse_robots): Match versions in a sane way.
6300
6301         * init.c: Print nicer error messages.
6302
6303         * version.c: Changed version to 1.4.0.
6304
6305 1996-11-06  Hrvoje Niksic  <hniksic@srce.hr>
6306
6307         * version.c: Released 1.4.0-test2.
6308
6309         * init.c (run_wgetrc): Close fp.
6310
6311         * ftp.c (ftp_retrieve_dirs): Allocate the correct length for
6312         u->dir.
6313
6314 1996-11-06  Hrvoje Niksic  <hniksic@srce.hr>
6315
6316         * init.c (setquota): Allow inf as quota specification.
6317
6318 1996-11-05  Hrvoje Niksic  <hniksic@srce.hr>
6319
6320         * ftp.c (ftp_retrieve_dirs): Return QUOTEXC if quota exceeded.
6321         (ftp_retrieve_glob): Return QUOTEXC on quota exceeded.
6322
6323         * main.c (main): Check for quota by comparison with downloaded
6324         stuff, not from status.
6325
6326         * connect.c (select_fd): Should compile on HPUX without warnings now.
6327
6328         * ftp.c (ftp_get_listing): Check whether ftp_loop_internal
6329         returned RETROK.
6330
6331 1996-11-04  Hrvoje Niksic  <hniksic@srce.hr>
6332
6333         * ftp.c (ftp_retrieve_glob): Print the pattern nicely.
6334         (getftp): Return FTPRETRINT on control connection error.
6335
6336         * html.c (htmlfindurl): Recognize <embed src=...> and
6337         <bgsound src=...>.
6338         (ftp_index): Handle username and password correctly.
6339
6340         * main.c (main): Made `-np' a synonim for --no-parent.
6341
6342 1996-11-02  Hrvoje Niksic  <hniksic@srce.hr>
6343
6344         * ftp.c (ftp_loop): Check for opt.ftp_glob too before calling
6345         ftp_retrieve_glob.
6346
6347         * version.c: Changed version to 1.4.0-test2.
6348
6349 1996-11-02  Hrvoje Niksic  <hniksic@srce.hr>
6350
6351         * version.c: Released 1.4.0-test1.
6352
6353         * url.c (str_url): Don't use sprintf when creating %2F-prefixed
6354         directory.
6355         (convert_links): Removed definition of make_backup.
6356
6357         * http.h: Removed definition of MAX_ERROR_LENGTH.
6358
6359         * host.c (ftp_getaddress): Check for "(none)" domains.
6360
6361         * ftp.c (ftp_retrieve_dirs): Docfix.
6362
6363         * http.c (gethttp): Use ou->referer instead of u->referer.
6364
6365         * retr.c (retrieve_url): Reset u to avoid freeing pointers twice;
6366         this was known to cause coredumps on Linux.
6367
6368         * html.c (ftp_index): Cast the argument to local_time to time_t *.
6369
6370 1996-11-01  Hrvoje Niksic  <hniksic@srce.hr>
6371
6372         * connect.c (select_fd): Use exceptfds -- once and for all.
6373
6374         * retr.c (retrieve_from_file): Free filename after
6375         recursive_retrieve.
6376         (retrieve_from_file): Send RFIRST_TIME to recursive_retrieve on
6377         first-time retrieval.
6378         (retrieve_from_file): Return uerr_t; new argument, count.
6379         (retrieve_from_file): Break on QUOTEXC.
6380
6381         * init.c (setquota): Fixed a bug that caused rejection of
6382         non-postfixed values..
6383
6384 1996-10-30  Hrvoje Niksic  <hniksic@srce.hr>
6385
6386         * version.c: Changed name to wget.
6387
6388         * connect.c (iread): Smarter use of select.
6389         (select_fd): Set errno on timeout.  If not timeout, return 1
6390         instead of 0.
6391
6392 1996-10-29  Hrvoje Niksic  <hniksic@srce.hr>
6393
6394         * ftp.c (ftp_loop_internal): Don't use con->cmd before
6395         establishing it.
6396
6397 1996-10-26  Hrvoje Niksic  <hniksic@srce.hr>
6398
6399         * http.c (gethttp): Send correct referer when using proxy.
6400         (gethttp): Use struct urlinfo ou to access the relevant data; send
6401         correct authorization in all cases.
6402
6403         * host.c (same_host): Use skip_uname to skip username and
6404         password.
6405
6406         * url.c (skip_uname): New function.
6407         (parseurl): Use it.
6408
6409         * host.c (same_host): Do not assume HTTP -- same_host should now
6410         be totally foolproof.
6411
6412         * url.c (skip_proto): New function.
6413         (parse_uname): Use it.
6414
6415         * http.c (gethttp): Create local user and passwd from what is
6416         given.
6417
6418         * url.c (parseurl): Check for HTTP username and password too.
6419
6420 1996-10-25  Hrvoje Niksic  <hniksic@srce.hr>
6421
6422         * config.h.in: Removed #define gethostbyname R...
6423
6424 1996-10-22  Hrvoje Niksic  <hniksic@srce.hr>
6425
6426         * version.c: Changed version to 1.4.0-test1.
6427
6428 1996-10-21  Hrvoje Niksic  <hniksic@srce.hr>
6429
6430         * version.c: "Released" 1.4b29.
6431
6432         * recur.c (recursive_retrieve): Check for no_parent.
6433
6434         * init.c (setval): Option update.
6435
6436         * main.c (main): New option no-parent.
6437
6438         * options.h (struct options): New variable no_parent.
6439
6440         * recur.c (recursive_retrieve): Only files are checked for
6441         opt.accepts and opt.rejects.
6442         (recursive_retrieve): Check directories for opt.excludes.
6443         (recursive_retrieve): Make the dir absolute when checking
6444         opt.excludes.
6445
6446         * html.c (htmlfindurl): Recognize <applet code=...> and <script
6447         src=...>
6448
6449 1996-10-18  Hrvoje Niksic  <hniksic@srce.hr>
6450
6451         * ftp.c (getftp): Do not line-break assert entries at all.
6452         (ftp_retrieve_dirs): docfix.
6453
6454         * connect.c (select_fd): Use fd + 1 as nfds.
6455
6456         * version.c: Changed version to 1.4b29.
6457
6458 1996-10-18  Hrvoje Niksic  <hniksic@srce.hr>
6459
6460         * version.c: "Released" 1.4b28.
6461
6462         * ftp.c (ftp_loop_internal): Check whether f->size == len and
6463         don't continue the loop if it is.
6464         (ftp_get_listing): Remove list_filename on unsuccesful loop.
6465
6466 1996-10-17  Hrvoje Niksic  <hniksic@srce.hr>
6467
6468         * ftp.c (ftp_loop_internal): Use strcpy to initialize tmp.
6469         (getftp): Do not use multiline assert.
6470
6471         * http.c (hparsestatline): Use mjr and mnr instead of major and
6472         minor, which don't compile on Ultrix.
6473         (http_loop): Use strcpy() to initialize tmp.
6474
6475         * all: Geturl -> Fetch
6476
6477 1996-10-17  Hrvoje Niksic  <hniksic@srce.hr>
6478
6479         * recur.c (parse_robots): Fixed an off-by-one bug when looking for
6480         ':'.
6481
6482         * html.c (htmlfindurl): Fixed several possible off-by-one bugs by
6483         moving `bufsize &&' to the beginning of each check in for-loops.
6484
6485         * recur.c (parse_robots): Close fp on exit.
6486
6487         * url.c (mymkdir): Check for each directory before creating.
6488
6489 1996-10-16  Hrvoje Niksic  <hniksic@srce.hr>
6490
6491         * version.c: Changed version to 1.4b28.
6492
6493 1996-10-16  Hrvoje Niksic  <hniksic@srce.hr>
6494
6495         * version.c: "Released" 1.4b27.
6496
6497         * init.c (parse_line): Use isspace.
6498         (parse_line): Free *com on all errors.
6499
6500         * ftp.c (ftp_loop): Change FTPOK to RETROK before exiting.
6501         (delelement): Use next instead of f->next and prev instead of
6502         f->prev.
6503         (delelement): Free the members of the deleted element.
6504
6505         * http.c (http_loop): Do not return RETROK on code != 20x.
6506
6507         * init.c (cleanup): Free opt.user_header.
6508         (cleanup): Free opt.domains.
6509
6510         * url.c (freelists): Moved to cleanup().
6511
6512         * http.c (hparsestatline): Docfix.
6513
6514         * main.c (main): Return with error status on unsuccesful
6515         retrieval.
6516
6517         * init.c (setval): Do not remove listing when mirroring.
6518
6519         * url.c (url_filename): Use opt.fileprefix.
6520
6521         * ftp.c (ftp_get_listing): Use url_filename to get filename for
6522         .listing.
6523
6524         * main.c (main): New option: -rn.
6525
6526 1996-10-15  Hrvoje Niksic  <hniksic@srce.hr>
6527
6528         * Makefile.in (RM): Added RM = rm -f.
6529
6530         * host.c (clean_hosts): New function.
6531         (free_hlist): Just free the list, no reset.
6532
6533         * version.c: Changed version to 1.4b27.
6534
6535 1996-10-13  Hrvoje Niksic  <hniksic@srce.hr>
6536
6537         * version.c: "Released" 1.4b26.
6538
6539         * retr.c (retrieve_from_file): If call get_urls_html with
6540         opt.spider to make it silent in spider mode.
6541
6542         * url.c (str_url): Use CLEANDUP instead of URL_CLEANSE.
6543
6544         * url.h (CLEANDUP): New macro.
6545
6546         * http.c (gethttp): Fixed a bug that freed location only when it
6547         was NULL.
6548
6549         * retr.c (retrieve_url): Free url if it will not be stored,
6550         i.e. newloc is NULL.
6551
6552         * html.c (htmlfindurl): Handle exiting from quotes correctly; the
6553         old version would bug out on <a href="x#a"href="y">.
6554
6555         * html.h (state_t): New member in_quote.
6556
6557         * html.c (htmlfindurl): Free s->attr at the beginning of
6558         attr-loop.
6559
6560         * recur.c (recursive_retrieve): Recognize RCLEANUP.
6561         (tried_robots): Make hosts a global variable.
6562         (recursive_retrieve): Free constr after URL host optimization.
6563         (tried_robots): Free urlinfo before exiting.
6564
6565         * utils.c (free_slist): New function.
6566
6567         * recur.c (recursive_retrieve): Use flags to add cleanup
6568         possibility.
6569
6570         * main.c (main): Free filename after recursive_retrieve.
6571
6572         * http.c (gethttp): Store successful responses too.
6573
6574 1996-10-12  Hrvoje Niksic  <hniksic@srce.hr>
6575
6576         * all: Constified the whole source.  This required some minor
6577         changes in many functions in url.c, possibly introducing bugs -- I
6578         hope not.
6579
6580         * ftp-basic.c: Removed last_respline.
6581
6582         * http.c (gethttp): Free type.
6583
6584         * host.c (same_host): Free real1 and real2.
6585
6586         * main.c (main): New option --spider.
6587
6588         * retr.c (get_contents): Don't reset errno.
6589
6590         * main.c (main): Sorted the options.
6591
6592         * connect.c (iread): Set errno to ETIMEDOUT only if it was left
6593         uninitialized by select().
6594
6595         * http.c (http_loop): Print the time when the connection is
6596         closed.
6597         (gethttp): Debug-print the HTTP request.
6598
6599 1996-10-11  Hrvoje Niksic  <hniksic@srce.hr>
6600
6601         * connect.c (iread): Do not try reading after timeout.
6602
6603         * main.c (main): Would bug out on -T.
6604
6605         * connect.c (select_fd): Do not use exceptfds.
6606         (iread): Set ETIMEDOUT on select_fd <= 0.
6607
6608         * version.c: Changed version to 1.4b26.
6609
6610 1996-10-10  Hrvoje Niksic  <hniksic@srce.hr>
6611
6612         * version.c: "Released" 1.4b25.
6613
6614         * ftp-unix.c (ftp_parse_unix_ls): Ignore lines without file name
6615         or link name.
6616
6617         * http.c (gethttp): Add errcode to struct hstat.
6618         (http_loop): Use it.
6619
6620         * url.c (no_proxy_match): Simplify using char** for no_proxy.
6621
6622         * options.h (struct options): Make opt.no_proxy a vector.
6623
6624         * utils.c (sepstring): Use !*s instead of !strlen(s).
6625
6626         * init.c (setval): Set opt.maxreclevel to 0 on --mirror.
6627         (getperms): Use ISODIGIT instead of isdigit.
6628
6629         * ftp.c (getftp): Print time.
6630
6631         * main.c (main): Use legible output of downloaded quantity.
6632
6633         * ftp.c (getftp): Use elapsed_time().
6634         (ftp_loop_internal): Use rate().
6635
6636         * http.c (http_loop): Add download ratio output; Use rate().
6637
6638         * utils.c (rate): New function.
6639
6640 1996-10-09  Hrvoje Niksic  <hniksic@srce.hr>
6641
6642         * http.c (http_loop): Use timer.
6643
6644         * ftp.c: Split to ftp-basic.c and ftp.c
6645
6646         * utils.c (reset_timer): New function.
6647         (elapsed_time): New function.
6648
6649         * retr.c (show_progress): Make bytes_in_line and offs long; should
6650         work on 16-bit machines.
6651
6652 1996-10-08  Hrvoje Niksic  <hniksic@srce.hr>
6653
6654         * url.c (in_acclist): New argument backward.
6655
6656         * ftp.c (ftp_retrieve_glob): Use acceptable() to determine whether
6657         a file should be retrieved according to suffix.
6658         (ftp_get_listing): Check the return value of unlink; Do not call
6659         ftp_retrieve_dirs if depth reached maxreclevel.
6660         (ftp_retrieve_dirs): Check whether the directory is in
6661         exclude-list.
6662
6663         * main.c (main): Print the version number at the beginning of
6664         DEBUG output.
6665         (main): Use strrchr when creating exec_name.
6666
6667         * ftp.c (ftp_retrieve_glob): Do not close control connection.
6668
6669         * version.c: Changed version to 1.4b25.
6670
6671 1996-10-07  Hrvoje Niksic  <hniksic@srce.hr>
6672
6673         * version.c: "Released" 1.4b24.
6674
6675         * Makefile.in: Rewrite.
6676
6677         * ftp.c (ftp_loop_internal): Likewise.
6678
6679         * retr.c (time_str): Check for failed time().
6680
6681         * html.c (htmlfindurl): Recognize <fig src> and <overlay src> from
6682         HTML3.0.
6683
6684         * retr.c (time_str): Return time_t *.
6685
6686         * connect.c (bindport): Close msock on unsuccesful bind.
6687         (bindport): The same for getsockname and listen.
6688
6689         * retr.c (retrieve_url): Allow any number of retries on
6690         proxy.
6691
6692         * http.c (gethttp): Do not treat errno == 0 as timeout.
6693         (http_loop): Likewise.
6694         (http_loop): Cosmetic changes.
6695
6696         * connect.c (iread): Set errno to ETIMEDOUT in case of timeout.
6697
6698         * retr.c (get_contents): Reset errno.
6699
6700         * ftp.c (getftp): Minor fixes.
6701
6702 1996-10-06  Hrvoje Niksic  <hniksic@srce.hr>
6703
6704         * http.c: Do not use backups.
6705
6706         * geturl.1 (WARNING): Warn that man-page could be obsolete.
6707
6708         * getopt.c (getopt_long): Moved to getopt.c
6709
6710         * geturl.texi: Enhanced.
6711
6712         * main.c (main): Use it.
6713
6714         * recur.c (convert_all_links): New function.
6715
6716         * utils.c (add_slist): New argument flags.
6717
6718         * recur.c (recursive_retrieve): Update a list of downloaded URLs.
6719         (parse_robots): Do not chuck out empty value fields.
6720         (parse_robots): Make yourself welcome on empty Disallow.
6721
6722         * version.c: Changed version to 1.4b24.
6723
6724 1996-10-06  Hrvoje Niksic  <hniksic@srce.hr>
6725
6726         * version.c: "Released" 1.4b23.
6727
6728         * ftp.c (ftp_loop_internal): Get the time after getftp.
6729
6730         * Makefile.in (install.info): New target.
6731         (install): Use it.
6732
6733         * http.c (http_loop): Fix output when doing -O.
6734
6735 1996-10-05  Hrvoje Niksic  <hniksic@srce.hr>
6736
6737         * geturl.texi: New file.
6738
6739         * main.c (main): Do not print the warnings and download summary if
6740         opt.quiet is set.
6741
6742         * version.c: Changed version to 1.4b23.
6743
6744 1996-10-05  Hrvoje Niksic  <hniksic@srce.hr>
6745
6746         * "Released" 1.4b22.
6747
6748         * atotm.c (atotm): Use True and False instead of TRUE and FALSE,
6749         to avoid redefinition warnings.
6750
6751         * host.c (store_hostaddress): Use memcpy() to copy the address
6752         returned by inet_addr.
6753
6754         * version.c: Changed version to 1.4b22.
6755
6756 1996-10-04  Hrvoje Niksic  <hniksic@srce.hr>
6757
6758         * version.c: "Released" 1.4b21.
6759
6760         * ftp-unix.c (ftp_parse_ls): Renamed to ftp_parse_unix_ls.
6761
6762         * ftp.c (ftp_port): Use conaddr.
6763         (getftp): Print the file length.
6764         (ftp_retrieve_list): Check the stamps of plain files only.
6765
6766         * connect.c (closeport): Do not call shutdown().
6767         (conaddr): New function.
6768
6769         * html.c (ftp_index): Made it dfp-aware.
6770
6771         * init.c (cleanup): New name of freemem. Close opt.dfp.
6772
6773         * ftp.c (getftp): Use opt.dfp if it is set.
6774
6775         * ftp-unix.c (ftp_parse_ls): Recognize time in h:mm format.
6776
6777         * ftp.c (ftp_retrieve_dirs): Fixed a bug that caused incorrect
6778         CWDs to be sent with recursive FTP retrievals.
6779
6780 1996-10-03  Hrvoje Niksic  <hniksic@srce.hr>
6781
6782         * recur.c (parse_robots): Made it more compliant with "official"
6783         specifications.
6784
6785         * http.c: New function.
6786
6787         * ftp-unix.c (ftp_parse_ls): Added better debug output.
6788
6789         * ftp.c (getftp): Print out the LIST in case of
6790         opt.print_server_response.
6791
6792         * version.c: Changed version to 1.4b21.
6793
6794 1996-10-01  Hrvoje Niksic  <hniksic@srce.hr>
6795
6796         * version.c: "Released" 1.4b20.
6797
6798         * README: Update.
6799
6800         * http.c (gethttp): Preset lengths of various headers instead of
6801         calculating them dynamically.
6802         (gethttp): Check for 206 partial contents.
6803
6804 1996-09-30  Hrvoje Niksic  <hniksic@srce.hr>
6805
6806         * configure.in: Set SYSTEM_GETURLRC to $libdir/geturlrc
6807
6808         * http.c (gethttp): Send the port number in the Host: header.
6809
6810 1996-09-29  Hrvoje Niksic  <hniksic@srce.hr>
6811
6812         * http.c (gethttp): Send host: header.
6813         (gethttp): Add the possibility of user-defined headers.
6814         (gethttp): Move decision about pragma: no-cache to http_loop,
6815         where it belongs.
6816         (gethttp): Pass a struct instead of enormous argument list.
6817         (http_loop): Use a new, fancier display format.
6818         (ftp_loop): Likewise.
6819
6820         * main.c: (hangup): Turn off buffering of the new log file.
6821
6822         * install-sh: Likewise.
6823
6824         * config.sub: Replace with the one in autoconf-2.10
6825
6826         * geturl.1: Update.
6827
6828         * init.c: New options httpuser and httppasswd.
6829
6830         * http.c: (base64_encode_line): New function.
6831         (gethttp): Send authentication.
6832
6833         * connect.c (make_connection): Use store_hostaddress.
6834
6835 1996-09-28  Hrvoje Niksic  <hniksic@srce.hr>
6836
6837         * host.c (store_hostaddress): New function.
6838
6839         * NEWS: Update.
6840
6841         * http.c (hgetrange): New function.
6842         (gethttp): Use ranges.
6843
6844         * utils.c (numdigit): Accept long instead of int.
6845
6846         * http.c (http_loop): Add restart capabilities.
6847
6848         * ftp.c (ftp_retrieve_glob): Fixed a bug that could cause matchres
6849         being used uninitialized.
6850         (ftp_retrieve_list): Similar fix.
6851
6852         * host.c (add_hlist): Fixed a bug that could cause cmp being used
6853         uninitialized.
6854
6855         * url.c (construct_relative): New function.
6856
6857         * recur.c (recursive_retrieve): Use it.
6858
6859         * retr.c (convert_links): New function.
6860
6861 1996-09-27  Hrvoje Niksic  <hniksic@srce.hr>
6862
6863         * url.c (free_urlpos): New function.
6864
6865         * recur.c (recursive_retrieve): Adapt.
6866
6867         * url.c (get_urls_html): Return a linked list instead of a vector.
6868
6869         * url.c (get_urls_file): Return a linked list instead of a vector.
6870
6871         * geturl.1: Update.
6872
6873         * http.c (gethttp): Implement it.
6874
6875         * init.c (setval): New option: SAVEHEADERS
6876
6877         * ftp.c (ftp_loop_internal): Do not set restval if listing is to
6878         be retrieved. Lack of this test caused bugs when the connection
6879         was lost during listing.
6880
6881         * retr.c (retrieve_url): Fixed a bug that caused
6882         coredumps. *newloc is now reset by default.
6883         (retrieve_url): Lift the twenty-tries limit on proxies.
6884
6885         * version.c: Changed version to 1.4b20.
6886
6887 1996-09-20  Hrvoje Niksic  <hniksic@srce.hr>
6888
6889         * version.c: "Released" 1.4b19.
6890
6891 1996-09-19  Hrvoje Niksic  <hniksic@srce.hr>
6892
6893         * ftp.c (ftp_loop_internal): Renamed from ftp_1fl_loop.
6894         (getftp): Changed prototype to accept ccon *.
6895
6896 1996-09-17  Hrvoje Niksic  <hniksic@srce.hr>
6897
6898         * ftp.c (ftp_retrieve_list): Fixed a bug that caused setting
6899         incorrect values to files pointed to by symbolic links.
6900         (ftp_1fl_loop): Do not count listings among the downloaded URL-s.
6901
6902 1996-09-16  Hrvoje Niksic  <hniksic@srce.hr>
6903
6904         * url.c (mkstruct): Do not prepend "./" in front of a pathname.
6905
6906         * main.c (main): New option: --user-agent.
6907
6908         * geturl.1: Ditto.
6909
6910         * init.h: Ditto.
6911
6912         * init.c (setval): Ditto.
6913
6914         * main.c (main): Rename "server-headers" to "server-response".
6915
6916         * ftp-unix.c (ftp_parse_ls): Check for asterisks at the end of
6917         executables in 'ls -F' listings.
6918
6919 1996-09-15  Hrvoje Niksic  <hniksic@srce.hr>
6920
6921         * url.c (parseurl): Remove realloc() and sprintf().
6922         (str_url): Get rid of sprintf().
6923
6924         * recur.c (recursive_retrieve): Enable FTP recursion through proxy
6925         servers.
6926
6927         * url.h (URL_CLEANSE): Made it else-resistant.
6928         (USE_PROXY): New macro.
6929
6930 1996-09-14  Hrvoje Niksic  <hniksic@srce.hr>
6931
6932         * NEWS: Update.
6933
6934         * version.c: Changed version to 1.4b19.
6935
6936 1996-09-14  Hrvoje Niksic  <hniksic@srce.hr>
6937
6938         * version.c: "Released" 1.4b18.
6939
6940         * url.c: Made it reallocate space exponentially.
6941
6942 1996-09-14  Drazen Kacar  <dave@fly.cc.fer.hr>
6943
6944         * html.c (htmlfindurl): Added <frame src> and <iframe src> among
6945         the list of stuff to fetch.
6946
6947 1996-09-13  Hrvoje Niksic  <hniksic@srce.hr>
6948
6949         * url.c (get_urls_html): Fixed a bug that caused SIGSEGV's with
6950         -Fi.
6951
6952         * html.c (htmlfindurl): Rewrite.
6953
6954         * http.c (gethttp): Use opt.proxy_cache.
6955
6956         * main.c (main): Added --cache option.
6957
6958         * ftp.c (ftp_response): Print server response if opt.print_server
6959         response is set.
6960         (getftp): Print newlines after each request if the server response
6961         is to be printed.
6962         (ftp_response): Copy the last response line to last_respline.
6963
6964         * http.c (gethttp): Add Pragma: nocache for retried
6965         proxy-retrievals.
6966
6967         * ftp.c (getftp): Use it.
6968
6969         * retr.c (buf_discard): New function.
6970
6971         * ftp.c (ftp_response): Use buf_readchar().
6972         (getftp): Flush the control connection buffer before calling
6973         get_contents().
6974
6975         * retr.c (buf_readchar): New function.
6976         (buf_flush): New function.
6977         (get_contents): Use buf_readchar() instead of read(x, x, 1).
6978         (get_contents): Use buf_flush.
6979
6980 1996-09-12  Hrvoje Niksic  <hniksic@srce.hr>
6981
6982         * ftp.c: Incorporate changes to ftp_response.
6983
6984         * ftp.c (ftp_response): Allocate the server response dynamically,
6985         as in read_whole_line and fetch_next_header.
6986
6987         * utils.c (read_whole_line): Fixed a bug that prevented reading
6988         the last line if it is not \n-terminated. Also fixed a possible
6989         memory overflow.
6990
6991         * http.c (fetch_next_header): Return malloc-ed string as large as
6992         needed.
6993         (gethttp): Use new fetch_next_header.
6994
6995 1996-09-12  Hrvoje Niksic  <hniksic@srce.hr>
6996
6997         * http.c (hgetlen): Compute the header length the first time only.
6998         (hgettype): Ditto.
6999         (hgetlocation): Ditto.
7000         (hgetmodified): Ditto.
7001
7002 1996-09-11  Hrvoje Niksic  <hniksic@srce.hr>
7003
7004         * sample.geturlrc: Update.
7005
7006 1996-09-10  Hrvoje Niksic  <hniksic@srce.hr>
7007
7008         * http.c (http_loop): Ditto.
7009
7010         * ftp.c (getftp): Open the output file as binary.
7011
7012         * version.c: Changed version to 1.4b18.
7013
7014 1996-09-10  Hrvoje Niksic  <hniksic@srce.hr>
7015
7016         * version.c: "Released" 1.4b17.
7017
7018         * ftp-unix.c (ftp_parse_ls): If unable to open file, return NULL
7019         instead of failed assertion.
7020
7021 1996-09-09  Hrvoje Niksic  <hniksic@srce.hr>
7022
7023         * ftp.c (ftp_get_listing): Add a numbered suffix to LIST_FILENAME
7024         if a file of that name already exists.
7025
7026 1996-09-05  Hrvoje Niksic  <hniksic@srce.hr>
7027
7028         * ftp.c (ftp_1fl_loop): Handler FTPPORTERR and FOPENERR correctly.
7029
7030         * config.h.in: Define gethostbyname as Rgethostbyname when using
7031         Socks.
7032
7033         * configure.in: Check for -lresolv if using Socks.
7034
7035         * version.c: Changed version to 1.4b17.
7036
7037 1996-07-15  Hrvoje Niksic  <hniksic@srce.hr>
7038
7039         * version.c: "Released" 1.4b16.
7040
7041         * http.c (gethttp): More intelligent check for first line of HTTP
7042         response.
7043         (gethttp): Would bug out on time-stamping.
7044
7045         * version.c: Changed version to 1.4b16.
7046
7047 1996-07-11  Hrvoje Niksic  <hniksic@srce.hr>
7048
7049         * version.c: Released 1.4b15.
7050
7051         * http.c (http_loop): Print \n after the loop entry, not before.
7052
7053         * url.c (url_filename): Use ISDOT.
7054
7055         * url.h (ISDOT): New macro.
7056
7057         * recur.c (recursive_retrieve): Change only opt.recursive for
7058         following FTP.
7059
7060 1996-07-11  Antonio Rosella <antonio.rosella@agip.it>
7061
7062         * socks/geturl.cgi: Fixed version No.
7063
7064         * socks/download-netscape.html: Ditto.
7065
7066         * socks/download.html: Changed socks.html to download.html.
7067
7068 1996-07-11  Hrvoje Niksic  <hniksic@srce.hr>
7069
7070         * url.c (url_filename): Check for opt.dirstruct instead for
7071         opt.recursive && opt.dirstruct.
7072
7073         * init.c (defaults): Ditto.
7074         (defaults): Reset dirstruct by default.
7075         (setval): Set opt.dirstruct whenever setting recursive.
7076
7077         * init.h: Removed FORCEDIRHIER.
7078
7079         * INSTALL: Added -L to socks-description.
7080
7081         * version.c: Changed version to 1.4b15.
7082
7083 1996-07-10  Hrvoje Niksic  <hniksic@srce.hr>
7084
7085         * version.c: "Released" 1.4b14.
7086
7087         * geturl.1: Update AUTHOR to include Rosella as contributor.
7088
7089         * NEWS: Update.
7090
7091         * socks/geturl.cgi: Simplified command creation, nuked <blink>.
7092
7093         * socks/geturl.cgi: Wrap nutscape extensions within if $netscape.
7094         (cal_time): Fix == to eq.
7095
7096         * socks/geturl.cgi: GPL-ized with permission of A. Rosella.
7097
7098         * geturl.1 (hostname): Moved URL CONVENTIONS to the beginning.
7099
7100         * Makefile.in: Use @VERSION@.
7101
7102         * configure.in: Check version from version.c.
7103
7104         * socks/geturl.cgi: Changed /pub/bin/perl to /usr/bin/perl.
7105
7106         * socks/download.html: Created from download-netscape.html, made
7107         HTML-2.0 compliant.
7108
7109         * recur.c (recursive_retrieve): Set opt.force_dir_hier when
7110         following FTP links from recursions.
7111
7112 1996-07-09  Hrvoje Niksic  <hniksic@srce.hr>
7113
7114         * url.c (mymkdir): Fixed a bug that prevented mymkdir() to create
7115         absolute directories correctly.
7116
7117         * version.c: Changed version to 1.4b14.
7118
7119 1996-07-09  Hrvoje Niksic  <hniksic@srce.hr>
7120
7121         * version.c: "Released" 1.4b13.
7122
7123         * url.c (make_backup): New function.
7124
7125         * http.c (http_loop): Make a backup copy of the local file (using
7126         rename(2)) before opening it.
7127
7128         * main.c (main): Added --backups.
7129
7130         * host.c (ftp_getaddress): Bail out on failed mycuserid().
7131         (ftp_getaddress): Check for leading dot on MY_DOMAIN.
7132         (ftp_getaddress): Check for empty, null or (null) domain.
7133
7134         * url.c (get_urls_html): If this_url is NULL, the base must have a
7135         protocol.
7136         (parseurl): Use has_proto.
7137
7138         * retr.c (retrieve_url): Warn when proxy is used with more than 20
7139         retries.
7140
7141         * url.c (mkstruct): Create the directory (calling mymkdir()) only
7142         if it is not already there.
7143         (has_proto): New function.
7144         (get_urls_html): Eliminate the remaining call to findurl -- use
7145         has_proto.
7146
7147         * geturl.1: Ditto.
7148
7149         * main.c: Change -X to -x.
7150
7151         * url.c (url_filename): Simplify creation of filename if
7152         prefix_files is set.
7153         (url_filename): Simplify everything. And I do mean *everything*.
7154         (mkstruct): Add dir_prefix before hostname.
7155         (path_simplify): Fixed a bug that caused writing outside the path
7156         string in case of "." and ".." path strings.
7157
7158 1996-07-06  Hrvoje Niksic  <hniksic@srce.hr>
7159
7160         * init.c: Added --mirror.
7161
7162         * main.c (main): Added -X to force saving of directory hierarchy.
7163
7164         * ftp.c (ftp_retrieve_list): Added recursion depth counter.
7165         (ftp_retrieve_list): Check whether quota is exceeded.
7166
7167         * url.c (get_urls_html): Skip leading blanks for absolute URIs.
7168
7169         * http.c (gethttp): Use referer if present.
7170
7171         * recur.c (recursive_retrieve): Set u->referer before calling
7172         retrieve_url.
7173
7174         * url.c (newurl): Use memset to nullify the struct members.
7175         (freeurl): Free the referer field too.
7176
7177         * url.h: Added referer to urlinfo.
7178
7179         * geturl.1: Updated the manual to document some of the new features.
7180
7181         * utils.c (numdigit): Moved from url.c.
7182
7183         * README: Rewritten.
7184
7185         * config.h.in: Add the support for socks.
7186
7187         * configure.in: Add the support for socks.
7188
7189         * url.c (url_filename): If the dir_prefix is ".", work with just
7190         the file name.
7191         (url_filename): Do not look for .n extensions if timestamping if
7192         turned on.
7193
7194         * retr.c (show_progress): Skip the over-abundant restval data, and
7195         print the rest of it with ',' instead of '.'.
7196
7197 1996-07-05  Hrvoje Niksic  <hniksic@srce.hr>
7198
7199         * retr.c (show_progress): Changed second arg. to long (as it
7200         should be).
7201         (show_progress): Moved to retr.c.
7202         (get_contents): Moved to retr.c.
7203
7204         * version.c: Change version to 1.4b13.
7205
7206 1996-07-05  Hrvoje Lacko <hlacko@fly.cc.fer.hr>
7207
7208         * url.c (in_acclist): Would return after the first suffix.
7209
7210 1996-07-04  Hrvoje Niksic  <hniksic@srce.hr>
7211
7212         * version.c: "Released" 1.4b12.
7213
7214         * url.c (path_simplify): More kludgifications.
7215         (get_urls_html): Use new parameters for htmlfindurl.
7216
7217         * html.c: Removed memorizing "parser states", since the new
7218         organization does not require them.
7219
7220         * init.c (run_geturlrc): Use read_whole_line.
7221
7222         * ftp-unix.c (ftp_parse_ls): Use read_whole_line.
7223
7224         * recur.c (parse_robots): Use read_whole_line.
7225
7226         * utils.c (read_whole_line): New function.
7227
7228         * recur.c (tried_robots): Use add_slist/in_slist, *much* cleaner.
7229
7230         * host.c (ngethostbyname): Call inet_addr just once. Yet to be
7231         tested on OSF and Ultrix.
7232         (add_hlist): New function.
7233         (free_hlist): New function.
7234         (search_host): New function.
7235         (search_address): New function.
7236         (realhost): Use search_host, search_address and add_hlist.
7237         (same_host): Replaced realloc() with strdupdelim(), made
7238         case-insensitive, fixed a memory leak.
7239
7240         * html.c (ftp_index): Fixed tm_min and tm_sec to be tm_hour and
7241         tm_min, like intended.
7242
7243         * version.c: Change user agent information to
7244         Geturl/version.
7245
7246 1996-07-03  Hrvoje Niksic  <hniksic@srce.hr>
7247
7248         * utils.c: Renamed nmalloc.c to utils.c, .h likewise.
7249
7250         * url.c (acceptable): Always accept directories.
7251
7252         * ftp-unix.c (ftp_parse_ls): Support brain-damaged "ls -F"-loving
7253         servers by stripping trailing @ from symlinks and trailing / from
7254         directories.
7255
7256         * ftp.c (ftp_loop): Debugged the "enhanced" heuristics. :-)
7257
7258         * url.c (skip_url): Use toupper instead of UCASE.
7259
7260         * host.c (sufmatch): Made it case-insensitive.
7261
7262         * url.c (match_backwards_or_pattern): Fixed i == -1 to j == -1.
7263         (match_backwards): New function, instead of
7264         match_backwards_or_pattern.
7265
7266         * recur.c (recursive_retrieve): Increased performance by
7267         introducing inl, which reduces number of calls to in_slist to only
7268         one.
7269
7270         * ftp.c (ftp_loop): Enhanced the heuristics that decides which
7271         routine to use.
7272
7273         * main.c (printhelp): Removed the warranty stuff.
7274
7275 1996-07-02  Hrvoje Niksic  <hniksic@srce.hr>
7276
7277         * url.c (add_slist): Simplify.
7278         (match_backwards_or_pattern): New function.
7279         (in_acclist): Use match_backwards_or_pattern.
7280         (matches): Remove.
7281
7282 1996-06-30  Hrvoje Niksic  <hniksic@srce.hr>
7283
7284         * ftp.c (ftp_loop): Call ftp_index on empty file names, if not
7285         recursive.
7286
7287         * html.c (ftp_index): Fixed to work. Beautified the output.
7288
7289         * ftp.c (ftp_retrieve_glob): Another argument to control whether
7290         globbing is to be used.
7291         (ftp_retrieve_list): Compare the time-stamps of local and remote
7292         files to determine whether to download.
7293
7294 1996-06-29  Hrvoje Niksic  <hniksic@srce.hr>
7295
7296         * ftp.c (rel_constr): New function.
7297
7298         * retr.c (retrieve_from_file): Check for text/html before
7299         retrieving recursively.
7300
7301         * main.c (main): Check whether the file is HTML before going into
7302         recursive HTML retrieving.
7303
7304         * ftp.c (ftp_retrieve_list): Manage directories.
7305         (ftp_retrieve_glob): Pass all the file-types to ftp_retrieve_list.
7306         (ftp_1fl_loop): Fixed a bug that caused con->com to be incorrectly
7307         initialized, causing bugchecks in getftp to fail.
7308
7309         * configure.in: Check for symlink.
7310
7311         * ftp.c (ftp_retrieve_list): Added support for symlinks.
7312
7313         * version.c: "Released" 1.4b10.
7314
7315         * atotm.c (atotm): Redeclared as time_t.
7316
7317         * init.c: New variable "timestamping".
7318
7319         * main.c (main): New option 'N'.
7320
7321         * http.c (hgetlocation): Case-insensitive match.
7322         (hgetmodified): New function.
7323         (http_loop): Implement time-stamping.
7324
7325 1996-06-28  Hrvoje Niksic  <hniksic@srce.hr>
7326
7327         * version.c: Changed version to 1.4b10
7328
7329         * atotm.c: New file, from phttpd.
7330
7331         * options.h (struct options): New parameter timestamping.
7332
7333         * version.c: 1.4b9 "released".
7334
7335         * recur.c (recursive_retrieve): Used linked list (ulist) for
7336         faster storing of URLs.
7337
7338         * url.c (get_urls_html): Removed the old kludge with comparing the
7339         outputs of htmlfindurl and findurl.
7340         (get_urls_html): Added better protocol support here.
7341         (create_hash): Removed, as well as add_hash and in_hash.
7342         (addslist): New function.
7343         (in_slist): ditto
7344
7345         * version.c: Released 1.4b8, changed version to b9.
7346
7347 1996-06-27  Hrvoje Niksic  <hniksic@srce.hr>
7348
7349         * ftp.c (freefileinfo): New function.
7350         (delelement): New function.
7351
7352         * everywhere: GPL!
7353
7354         * ftp.c (ftp_loop): Use ccon.
7355         (ftp_retrieve_glob): Likewise.
7356
7357         * ftp.h: Define ccon, to define status of control connection.
7358
7359         * ftp.c (ftp_get_listing): New function.
7360         (ftp_retrieve_more): New function.
7361         (ftp_retrieve_glob): New function.
7362
7363 1996-06-25  Hrvoje Niksic  <hniksic@srce.hr>
7364
7365         * configure.in: Removed the search for cuserid().
7366
7367         * init.c (getmode): Renamed to getperms.
7368
7369 1996-06-24  Hrvoje Niksic  <hniksic@srce.hr>
7370
7371         * version.c: New version.
7372
7373         * main.c (hangup): New function, that handles hangup. Hangup
7374         signal now causes geturl to stop writing on stdout, and to write
7375         to a log file.
7376
7377         * ftp.c (getftp): "Released" 1.4b7.
7378
7379         * html.c (htmlfindurl): Ignore everything inside <head>...</head>.
7380         (ftp_index): Use fileinfo/urlinfo.
7381
7382         * ftp-unix.c (ftp_parse_ls): New function.
7383         (symperms): New function.
7384
7385         * ftp.c (ftp_1fl_loop): New function, to handle 1-file loops.
7386
7387         * retr.c (retrieve_url): Added FTP support.
7388
7389 1996-06-23  Hrvoje Niksic  <hniksic@srce.hr>
7390
7391         * geturl.h: Removed NOTFTP2HTML enum.
7392         Added DO_LOGIN, DO_CWD and DO_LIST. LIST_ONLY is obsolete.
7393
7394         * ftp.c (getftp): Resynched with urlinfo.
7395         (getftp): Removed HMTL-ization of index.html from getftp.
7396
7397         * version.c: 1.4b6 "released".
7398
7399         * options.h (options): New struct, to keep options in.
7400
7401         * http.c (http_loop,gethttp): Synched with proxy.
7402
7403         * retr.c (retrieve_url): Implemented proxy retrieval.
7404
7405         * main.c (main): Use retrieve_from_file.
7406
7407 1996-06-22  Hrvoje Niksic  <hniksic@srce.hr>
7408
7409         * retr.c (retrieve_from_file): New function.
7410
7411         * url.c (parseurl): Modified to return URLOK if all OK. Protocol
7412         can be found in u->proto.
7413
7414         * ftp.c (ftp_response): Fixed to accept multi-line responses as
7415         per RFC 959.
7416
7417         * recr.c (recursive_retrieve): Take newloc from retrieve_url.
7418
7419         * url.c (mymkdir): Removed the file of the same name, if one
7420         exists.
7421         (isfile): New function.
7422         (mkstruct): Fixed the '/' glitches.
7423         (path_simplify): Hacked to treat something/.. correctly.
7424
7425 1996-06-21  Hrvoje Niksic  <hniksic@srce.hr>
7426
7427         * http.c (gethttp): Close the socket after error in headers.
7428         (http_loop): HEOF no longer a fatal header.
7429
7430         * loop.c (retrieve_url): When dt is NULL, do not modify it. This
7431         simplifies the syntax of calling retrieve_url.
7432
7433         * recr.c (recursive_retrieve): Modified to use get_urls_html.
7434
7435         * url.c (get_urls_file): New function.
7436         (get_urls_html): New function.
7437
7438         * recr.c (recursive_retrieve): Patched up to conform to the
7439         standards.
7440
7441         * http.c (gethttp): Synched with the rest...
7442         (gethttp): Treat only CONREFUSED specially, with connection
7443         errors.
7444
7445         * init.c,geturl.1,http.c (http_loop): Removed kill_error.
7446
7447 1996-06-20  Hrvoje Niksic  <hniksic@srce.hr>
7448
7449         * http.c (http_loop): New function.
7450
7451         * loop.c: Removed *lots* of stuff from retrieve_url.
7452
7453         * url.c (parseurl): Changed to work with urlinfo. Integrated
7454         username finding and path parsing.
7455         (newurl): New function.
7456         (freeurl): New function.
7457         (mkstruct): Removed the old bogosities, made it urlinfo-compliant.
7458         (url_filename): Likewise.
7459         (path_simplify): Accept relative paths too.
7460         (opt_url): Made urlinfo-compliant, removed bogosities.
7461         (path_simplify): Expanded to accept relative paths.
7462         (str_url): A replacement for hide_url
7463         (decode_string): Fixed a bug that caused malfunctioning when
7464         encountering an illegal %.. combination.
7465         (opt_url): Removed the argument. Dot-optimizations are now default.
7466
7467         * nmalloc.c (strdupdelim): New function.
7468
7469         * url.h: Added the urlinfo structure
7470
7471 1996-06-19  Hrvoje Niksic  <hniksic@srce.hr>
7472
7473         * url.c (hide_url): Thrown out the protocol assertion. Do not
7474         change the URL if the protocol if not recognized.
7475         (findurl): Put continue instead of break.
7476
7477 1996-06-18  Hrvoje Niksic  <hniksic@srce.hr>
7478
7479         * sample.geturlrc: Changed the defaults to be commented out and
7480         harmless (previous defaults caused pains if copied to
7481         ~/.geturlrc).
7482
7483         * http.c (gethttp): Print the HTTP request in debug mode.
7484
7485         * connect.c (iread): Added EINTR check loop to select-ing
7486         too. EINTR is now correctly handled with select().
7487
7488         * TODO: new file
7489
7490 1996-05-07  Hrvoje Niksic  <hniksic@srce.hr>
7491
7492         * host.c (same_host): Made the function a little bit more
7493         intelligent regarding diversified URL syntaxes.
7494
7495         * url.c (skip_url): Spaces are now skipped after URL:
7496
7497         * Released 1.3.1 with the patch to prevent crashing when sending
7498         NULL to robot* functions and the patch to compile "out of the box"
7499         on AIX.
7500
7501         * recr.c (recursive_retrieve): Added checking whether this_url is
7502         NULL when calling the robot functions.
7503
7504         * ChangeLog: New file.