hniksic
74fbb03b10
[svn] Use bool type for boolean variables and values.
2005-06-22 12:38:10 -07:00
hniksic
e911bc2943
[svn] Remove the "lockable boolean" setting for passive_ftp.
2005-06-21 18:56:02 -07:00
hniksic
277e840a0f
[svn] Remove K&R support.
2005-06-19 15:34:58 -07:00
hniksic
4206f96614
[svn] Gettext-ize previously missed messages.
...
By Benno Schulenberg.
2005-06-15 13:26:37 -07:00
hniksic
af7e522e91
[svn] Don't clobber the file when -c is specified and the first attempt
...
to retrieve the file fails.
2005-05-17 05:53:08 -07:00
hniksic
6664409baa
[svn] Consistently print \n at the end of the "Length" line.
2005-05-16 05:41:29 -07:00
hniksic
ee18acce0a
[svn] Check for wildcards in unescaped URL path.
2005-05-08 10:52:26 -07:00
hniksic
0967c21094
[svn] Fix K&R incompatibilities reported by `gcc -Wtraditional'.
2005-05-03 08:24:30 -07:00
hniksic
c2c41a6b14
[svn] Remove unreachable "break" statements.
2005-04-28 06:52:02 -07:00
mtortonesi
e815fe81a0
[svn] Add the --user, --password, --ftp-user and --ftp-password options.
...
Rename the --ftp-passwd, --http-passwd and --proxy-passwd options to
--ftp-password, --http-password and --proxy-password respectively.
Deprecate the login and passwd .wgetrc commands.
2005-04-27 14:30:22 -07:00
hniksic
4cf3365fcf
[svn] Open the output file in binary mode.
...
By Gisle Vanem.
2005-04-12 13:32:31 -07:00
hniksic
4b57f166ae
[svn] Use the xzero shorthand for memset(..., 0, ...).
2005-04-01 16:41:04 -08:00
hniksic
e65ff5729a
[svn] Avoid explicit 64-bit constants; construct them by multiplication at
...
compile-time.
2005-04-01 10:22:38 -08:00
hniksic
52aafa6d15
[svn] Replace GETALL and others with GLOB_GETALL.
2005-03-29 12:13:12 -08:00
hniksic
b9a31d78dd
[svn] Support human-readable file size printing.
...
Don't use persistent connection over proxies.
2005-03-22 05:20:02 -08:00
hniksic
c36e9a5272
[svn] Concatenate strings using concat_strings.
2005-03-19 09:23:32 -08:00
hniksic
e2241936d0
[svn] Remove warnings under Borland C.
2005-03-05 18:11:10 -08:00
hniksic
b3363d2abd
[svn] Fix escape chars in server response vulnerability. Server response is
...
now quoted to escape non-ASCII characters.
2005-03-04 11:34:31 -08:00
hniksic
50d143f3fe
[svn] Fix a possible race condition when opening files.
...
Published in <87r7j6vy9g.fsf@xemacs.org>.
2005-03-04 11:26:18 -08:00
hniksic
76661bdc29
[svn] iInitialize err in getftp to suppress gcc warning.
2005-02-25 14:00:18 -08:00
hniksic
2e48de2b01
[svn] Fix infloop in ftp_expected_bytes introduced by the LFS patch.
2005-02-24 05:44:19 -08:00
hniksic
ef22bf610a
[svn] Large file support added. Published in <87psyr6jn7.fsf@xemacs.org>.
2005-02-23 14:21:04 -08:00
hniksic
a0642cc62e
[svn] Revamped MS console logic. Submitted by David Fritz.
2004-02-25 15:45:24 -08:00
hniksic
2c0e2b0afa
[svn] Fixes by Christian Biere:
...
* progress.c (bar_set_params): Fixed syntax error when HAVE_ISATTY
was undefined.
* ftp.c (ftp_loop_internal): Allocate a larger buffer in case
"try" gets translated to something large. Ditto in http_loop in
http.c.
* http.c (response_header_copy): Don't write to buf[BUFSIZE].
* ftp-opie.c (skey_response): Eliminate unnecessary string
concatenation; just call gen_md5_update twice.
2004-01-27 17:02:26 -08:00
hniksic
a8155e7bcc
[svn] Correctly calculate bandwidth as total data read divided with download
...
time.
2003-12-05 18:32:57 -08:00
hniksic
78706dc5ea
[svn] * retr.c (fd_read_body): Report the amount of data *written* as
...
amount_read. This is not entirely logical, but that's what the
callers expect, and it's not easy to change.
* ftp.c (ftp_loop_internal): Ditto.
* http.c (http_loop): Be smarter about assigning restval; if we're
in the nth pass of a download, simply use the information we have
about how much data has been retrieved as restval.
* ftp.c (getftp): Ditto for FTP "REST" command.
* http.c (gethttp): When the server doesn't respect range, skip
the first RESTVAL bytes of the read body. Never truncate the
output file.
* retr.c (fd_read_body): Support skipping initial STARTPOS octets.
2003-11-30 15:39:04 -08:00
hniksic
2f357b5eb8
[svn] Better documentation for fd_read_body args.
2003-11-29 20:41:08 -08:00
hniksic
1b2dce0493
[svn] Set con->csock to -1 where rbuf_uninitialize was previously used.
2003-11-25 16:38:20 -08:00
hniksic
d9fea91a0a
[svn] Remove the "rbuf" buffering layer. Provide peeking primitives instead.
2003-11-20 17:48:11 -08:00
hniksic
0716c335a0
[svn] Renamed xread/xwrite/xclose to fd_read/fd_write/fd_close. The "x" prefix is
...
not appropriate because the semantics have diverged from read/write/close
too significantly.
2003-11-20 07:19:59 -08:00
hniksic
509154dc81
[svn] Use the new function retryable_socket_connect_error instead of the
...
CONNECT_ERROR macro.
2003-11-13 14:27:38 -08:00
hniksic
0f99d1f220
[svn] Rewrote bindport and acceptport to use a more standard calling convention.
2003-11-13 09:05:06 -08:00
hniksic
d7e592d797
[svn] Replace conaddr with socket_ip_address.
2003-11-07 18:57:51 -08:00
hniksic
ad75dd2662
[svn] Applied Dennis Smit's --preserve-permissions patch.
2003-11-06 12:33:20 -08:00
hniksic
c8e92cdbd6
[svn] Get rid of ssl_iread/ssl_iwrite. Have the SSL code register its
...
routines for reading and writing data.
2003-11-05 17:12:03 -08:00
hniksic
e2e9b753e4
[svn] Retired the `boolean' type. Renamed FREE_MAYBE to xfree_null and moved the
...
definition from wget.h to xmalloc.h. Moved the DEFAULT_LOGFILE
define to log.h. Moved the INFINITE_RECURSION define to recur.h.
2003-11-02 11:56:37 -08:00
hniksic
add61a2d9c
[svn] Networking improvements: get rid of the MSOCK global variable,
...
move the sockaddr handling to connect.c, make sure Wget refreshes
the DNS lookup after it becomes stale.
2003-10-30 16:18:08 -08:00
hniksic
6f1250b1c6
[svn] Updated IPv6 code.
2003-10-29 15:13:25 -08:00
hniksic
90cb3309da
[svn] Imported Mauro's IPv6 changes.
2003-10-29 10:23:56 -08:00
hniksic
3f6913663e
[svn] Correctly loop through the linked list.
...
By Philip Stadermann.
2003-10-14 15:52:12 -07:00
hniksic
711bf72609
[svn] Remove VERY_LONG_TYPE; use LARGE_INT instead. Remove special code
...
for handling VERY_LONG_TYPE overflows.
Make opt.quota a LARGE_INT.
2003-10-11 06:57:11 -07:00
hniksic
097923f7b1
[svn] Move fnmatch() to cmpt.c and don't use it under GNU libc.
2003-10-07 16:53:31 -07:00
hniksic
d0f4a1e109
[svn] Initialize local variable to shut up the compiler.
2003-10-01 12:45:41 -07:00
hniksic
b307160959
[svn] Made --spider work with FTP downloads.
...
By Aaron S. Hawley.
2003-09-30 14:14:02 -07:00
hniksic
95c647eb44
[svn] Split off non-URL related stuff from url.c to convert.c.
2003-09-21 15:47:14 -07:00
hniksic
e71b2799d2
[svn] Add support for OS/400 ftp server.
2003-09-18 06:46:17 -07:00
hniksic
9228f0bf53
[svn] Update progress code to use higher timer resolution.
...
Message-ID: <m37k49oivp.fsf@hniksic.iskon.hr>
2003-09-15 14:14:15 -07:00
hniksic
0a3697ad65
[svn] New mechanism for quoting file names.
...
Published in <m3smmzt4px.fsf@hniksic.iskon.hr>.
2003-09-14 15:04:13 -07:00
hniksic
30ac043b0a
[svn] New option --retry-connrefused from Ahmod Dancy.
2003-09-04 14:34:58 -07:00
abbotti
0410411939
[svn] Fix for FTP directory traversal vulnerability (at least for Unix).
...
Based on a patch by Red Hat.
Published in <85u02vg4hukbc2fltdd51uds5oq14rd92f@farscape.privy.mev.co.uk>.
2003-01-11 12:12:35 -08:00
hniksic
b2be7522c7
[svn] Update the license to include the OpenSSL exception.
2002-05-17 19:16:36 -07:00
abbotti
043d305fb1
[svn] Don't ftruncate standard output.
...
Submitted by Bill Richardson <bill@riverstonenet.com>.
Final version of patch published in
<9vv1eus668tn7v3vn95e7l2lcjbbph8bi2@farscape.privy.mev.co.uk>.
2002-05-14 05:23:51 -07:00
hniksic
fd42ae1311
[svn] Allow match_tail to be case insensitive.
...
Published in <sxsznzabirr.fsf@florida.munich.redhat.com>.
2002-05-08 11:24:40 -07:00
hniksic
7953158bce
[svn] Correctly merge DOS-like absolute directories.
...
Published in <sxslmbomnm7.fsf@florida.arsdigita.de>.
2002-04-15 18:36:16 -07:00
hniksic
5390ada318
[svn] Support FWTK-style proxies.
...
Pbublished in <sxslmbsxptu.fsf@florida.arsdigita.de>.
2002-04-12 20:04:47 -07:00
abbotti
4aaf8fdcea
[svn] Compensate for MS Windows two-second granularity of file modification
...
timestamps.
Submitted by Ian Abbott in <3CB7355C.21011.2134FDA@localhost>.
2002-04-12 12:21:02 -07:00
hniksic
07d72c3cd3
[svn] Propagate the result of ftp_retrieve_glob to the caller of ftp_loop.
...
Published in <sxssn663zwl.fsf@florida.arsdigita.de>.
2002-04-08 09:43:36 -07:00
hniksic
cb40034035
[svn] Commit IPv6 support by Thomas Lussnig.
...
Published in <sxsk7u8715e.fsf@florida.arsdigita.de>.
2002-01-23 21:45:54 -08:00
hniksic
6d93a95e37
[svn] Declare h_errno in host.c, but not elsewhere.
2001-12-03 09:22:06 -08:00
hniksic
acf2d79a8a
[svn] When PWD fails, assume "/".
...
Published in <sxs667qr5a0.fsf@florida.arsdigita.de>.
2001-12-01 13:37:40 -08:00
hniksic
9656223552
[svn] Fix FTP PASV output.
...
Published in <sxslmgsfkgj.fsf@florida.arsdigita.de>.
2001-11-27 04:49:13 -08:00
hniksic
84396de673
[svn] Allocate a timer directly in get_contents.
...
Published in <sxsherhbsvl.fsf@florida.arsdigita.de>.
2001-11-26 04:49:10 -08:00
hniksic
024cb5ed3a
[svn] A lot of host name changes.
...
Published in <sxs3d32856s.fsf@florida.arsdigita.de>.
2001-11-25 21:36:33 -08:00
hniksic
05463c7121
[svn] Commit progress bar tweaks.
...
Published in <sxsd727cvc0.fsf@florida.arsdigita.de>.
2001-11-24 20:46:26 -08:00
hniksic
d5be8ecca4
[svn] Rewrite parsing and handling of URLs.
...
Published in <sxs4rnnlklo.fsf@florida.arsdigita.de>.
2001-11-21 16:24:28 -08:00
hniksic
0296433553
[svn] Support the SIZE command.
...
Originally by Dave Turner. Modified by Ian Abbott and published
in <3BFAA33C.6236.6D42F6@localhost>.
2001-11-20 13:01:27 -08:00
hniksic
fa6aeb869d
[svn] Don't call rate() with bogus data.
...
Submitted by Ian Abbott in <3B7A98A1.24985.9EF692@localhost>
2001-11-16 11:38:03 -08:00
hniksic
0b056d1720
[svn] Update copyright notices.
2001-05-27 12:35:15 -07:00
hniksic
3973f20a45
[svn] Refuse to download files from scratch if `-c' is used and the server
...
doesn't support REST only for existing *and non-empty* files.
Published in <sxsae4zg4zc.fsf@florida.arsdigita.de>.
2001-04-29 07:24:45 -07:00
hniksic
dfc1eb5766
[svn] Change default anonymous FTP password to "-wget@".
...
Published in <sxsu239htnl.fsf@florida.arsdigita.de>.
2001-04-29 03:53:55 -07:00
hniksic
45eea7387f
[svn] New timer functions. Published in <sxs8zkp28vk.fsf@florida.arsdigita.de>.
2001-04-24 16:09:45 -07:00
hniksic
38120f75ef
[svn] Write percentages when the length is authoritative.
...
Published in <sxselujd8py.fsf@florida.arsdigita.de>.
2001-04-23 06:53:29 -07:00
hniksic
963863113f
[svn] Fix retrieval of directories when initial CWD is not `/'.
...
Published in <sxsitkc709p.fsf@florida.arsdigita.de>.
* url.c (parseurl): Don't strip trailing slash when u->dir is "/"
because that strips the *leading* slash, thus forcing relative
FTP retrieval.
* ftp.c (getftp): Convert initial FTP directory from VMS to UNIX
notation for VMS servers.
(ftp_retrieve_dirs): Do not prepend '/' to f->name when
odir is an empty string.
2001-04-10 17:24:59 -07:00
hniksic
0c70c624f9
[svn] Fix recursive FTP retrieval so that
...
`wget -r ftp://<username>:<password>@host/%2Fhome/hniksic/dir/'
works.
Published in <sxsk84ug8gt.fsf@florida.arsdigita.de>.
2001-04-08 18:38:27 -07:00
hniksic
f1d534cd8c
[svn] Make -c' and
-O' work together.
...
Published in <sxsitkmgokh.fsf@florida.arsdigita.de>.
2001-04-03 05:24:49 -07:00
hniksic
66a0c39e22
[svn] Make sure opt.dfp is rewound only on the first retrieval.
...
(See the code comment for a more detailed explanation.)
Published in <sxsy9tkqizz.fsf@florida.arsdigita.de>.
2001-04-01 16:50:04 -07:00
hniksic
20a4341e1a
[svn] Wget was ignoring an error when getting a directory failed.
...
Fix courtesy Nicolas Lichtmaier.
2001-04-01 14:34:40 -07:00
hniksic
a52aaeb451
[svn] Make sure -c doesn't truncate the file.
...
Published in <sxsofuhi4kc.fsf@florida.arsdigita.de>.
2001-04-01 13:04:21 -07:00
hniksic
1a6058b1ec
[svn] Applied Philipp Thomas's safe-ctype patch. Published in
...
<20010330025159.U21662@jeffreys.suse.de>.
2001-03-30 14:36:59 -08:00
janp
004b339d2e
[svn] Removed ftpparse dependencies. New parser for VMS listings. MacOS
...
NetPresenz FTP sevber is now supported.
2001-02-12 23:44:59 -08:00
hniksic
164ccc9e41
[svn] ChangeLog tweak; initialize con to appease the access checker.
2001-02-11 09:27:37 -08:00
hniksic
366b832e3f
[svn] Applied Jonas Jensen's download rate patch with my additions.
...
Published in <015b01c09084$ce2d9330$0100000a@bob> and
<sxspugq3xai.fsf@florida.arsdigita.de>.
2001-02-10 16:00:30 -08:00
dan
7140f393b2
[svn] When did the bug get fixed where recursive FTP would fail if logging in put
...
you in a directory other than "/"? I don't see a src/ChangeLog entry for
it. In any case, my testing shows that it's fixed in 1.7-dev, but TODO and
a comment in src/ftp.c were not changed to reflect this.
2001-01-09 20:17:06 -08:00
dan
e979053779
[svn] 2000-12-31 Dan Harkless <wget@harkless.org>
...
* ftp.c, http.c: Applied Hack Kampbj?rn <hack@hackdata.com>'s
patch to deal with h_errno not being defined in netdb.h under Cygwin.
2000-12-30 Dan Harkless <wget@harkless.org>
* version.c: Released Wget version 1.6. Note that on this branch we
never actually had the version set to 1.6, but we still need the
ChangeLog comment for posterity.
2000-12-31 04:04:14 -08:00
hniksic
2e8fc46b7b
[svn] Include <netdb.h> where h_errno is used. Likewise for <errno.h> and errno.
...
From <sxsvgsi7wcw.fsf@florida.arsdigita.de>.
2000-12-17 10:12:02 -08:00
hniksic
d5cd691b12
[svn] Fix -O timestamp bug.
...
From <sxs7l57u6o6.fsf@florida.arsdigita.de>.
2000-12-10 16:47:44 -08:00
hniksic
62b876401e
[svn] Set the timestamp even when -O is used.
2000-12-10 16:31:14 -08:00
hniksic
b0e9dfd4e2
[svn] Fix opt.wait.
2000-12-05 16:24:40 -08:00
hniksic
7b5ad90acf
[svn] Commit my url.c fix (space as unsafe character) and Jan's
...
winnt directory listing parsing.
2000-12-05 14:29:47 -08:00
hniksic
7e900c50bf
[svn] Undo Jan's typo fix.
2000-11-25 03:51:14 -08:00
hniksic
1cddc05edb
[svn] Committed memory debugging stuff.
...
Published in <sxs1yw34pt4.fsf@florida.arsdigita.de>.
2000-11-22 14:15:45 -08:00
hniksic
2ffb47eabf
[svn] Committed <sxsbsv854j9.fsf@florida.arsdigita.de>.
2000-11-22 08:58:28 -08:00
hniksic
c3d636db03
[svn] Committed Jan's ftpparse patch with Hrvoje's modifications.
...
<sxshf518e72.fsf@florida.arsdigita.de>.
2000-11-21 08:48:39 -08:00
hniksic
b0b1c815c1
[svn] A bunch of new features:
...
- use mmap() to read whole files in core instead of allocating memory
and read'ing it.
- use a new, more general, HTML parser (html-parse.c) and interface to
it from Wget (html-url.c).
- respect <meta name=robots content=nofollow> (easy with the new HTML
parser).
- use hash tables instead of linked lists in places where the lists
were used to facilitate mappings.
- rewrite the code in host.c to be more readable and faster (hash
tables instead of home-grown lists.)
- make convert_links properly convert partial URLs to complete ones
for those URLs that have *not* been downloaded.
- use HTTP persistent connections where available. very
simple-minded, caches the last connection to the server.
Published in <sxshf533d5r.fsf@florida.arsdigita.de>.
2000-11-19 12:50:10 -08:00
hniksic
eef4a668b7
[svn] Update copyright blurbs with the year 2000.
2000-11-01 17:50:03 -08:00
hniksic
6e23da9254
[svn] Hide password from URL when non-verbose, too.
2000-11-01 17:41:20 -08:00
hniksic
b7a8c6d3f5
[svn] Gracefully handle opt.downloaded overflowing.
...
Published in <sxsd7gfnv17.fsf@florida.arsdigita.de>.
2000-11-01 15:17:31 -08:00
hniksic
0dd418242a
[svn] Committed my patches from <sxsbsw16sbu.fsf@florida.arsdigita.de>
...
and <sxsvgu824xk.fsf@florida.arsdigita.de>.
2000-10-31 11:25:32 -08:00
dan
f4673bcdaf
[svn] --delete-after wasn't implemented for files retrieved by FTP or corresponding to
...
files specified on the commandline. Made --convert-links be ignored when
--delete-after is specified. Added note about this fact to --delete-after docs
and made general improvements to them, including the clarification that
--delete-after only deletes local files.
2000-10-23 20:43:47 -07:00
dan
8a9be7627d
[svn] ftp.c (getftp): Applied Piotr Sulecki <Piotr.Sulecki@ios.krakow.pl>'s
...
patch to work around FTP servers that incorrectly respond to the
"REST" command with the remaining size rather than the total
file size.
2000-10-20 00:28:57 -07:00