1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00
Commit Graph

260 Commits

Author SHA1 Message Date
Micah Cowan
ec84142901 Merge getpass with quote, plus my NEWS entry. 2008-05-15 20:58:27 -07:00
Micah Cowan
e72b57629b Merge quote module stuff with current mainline. 2008-05-15 19:13:08 -07:00
Madhusudan Hosaagrahara
5e7f976fa1 Adds build information to the --version command line option. 2008-05-05 23:14:25 -07:00
Steven Schubiger
ae034d236f Use gnulib's getpass-gnu module for password prompting. 2008-05-01 00:28:23 +02:00
Micah Cowan
1297ab8328 Test to confirm that rc commands are properly sorted. 2008-04-22 22:59:22 -07:00
Micah Cowan
714ccdcd84 Steven Schweda's VMS patch. 2008-04-22 14:48:36 -07:00
Steven Schubiger
2c77220411 Undo the USE_GNULIB_ALLOC defines. 2008-04-20 11:46:52 +02:00
Steven Schubiger
76780021d8 Use Gnulib's alloc functions throughout the source. 2008-04-19 01:21:24 +02:00
Steven Schubiger
f468a6eb80 Use Gnulib's quote function in init.c. 2008-04-16 12:13:19 +02:00
Micah Cowan
4c1a59ea48 Fix #22242: Option to allow auths before challenged. 2008-02-10 17:31:27 -08:00
Micah Cowan
bc8f473272 Updated copyright year. 2008-01-25 05:04:01 -08:00
Micah Cowan
462e643a7e Merge SFLC licensing changes for OpenSSL with tip. 2007-12-07 17:37:07 -08:00
Micah Cowan
86395b297b Updated licensing exception for OpenSSL from the SFLC. 2007-11-28 00:05:33 -08:00
Micah Cowan
212396c7e1 Eschew config-post.h. 2007-10-18 20:50:40 -07:00
Micah Cowan
da99855784 ISSPACE -> c_isspace 2007-10-14 14:46:24 -07:00
Micah Cowan
5dd09d9ba5 Update copyright lists, conforming to maintainer guidelines 2007-09-28 15:45:31 -07:00
Micah Cowan
df8b19a28e Gisle's MS-DOS support 2007-09-28 14:47:46 -07:00
micah
fb7fc237f7 [svn] Fix for #20659 - Content-Disposition off by default. 2007-08-08 00:30:26 -07:00
micah
7d2066b221 [svn] Make indentation consistent (all-spaces, no tabs). 2007-08-02 20:38:21 -07:00
micah
10da871ac4 [svn] Merging fix #20499: MAX_REDIRECTIONS should be configurable. 2007-07-28 19:37:14 -07:00
micah
4d7c5e087b [svn] Merge of fix for bugs 20341 and 20410. 2007-07-09 22:53:22 -07:00
mtortonesi
c5a4dac530 [svn] Get rid of a gcc warning about strict-aliasing violation. 2007-01-09 07:55:12 -08:00
hniksic
6493450947 [svn] Warn to keep the option list sorted. 2006-08-08 07:31:12 -07:00
hniksic
a890134659 [svn] Fix ordering of the command array. 2006-07-21 04:20:40 -07:00
mtortonesi
1c7493b83e [svn] Added sanity checks for -k, -p, -r and -N when -O is given. Added fixes for 64-bit platforms. Updated copyright and maintainer information. 2006-07-14 06:25:50 -07:00
mtortonesi
c1cb70ecd0 [svn] Added support for --restrict-file-names=lowercase and --restrict-file-names=uppercase. 2006-06-13 06:58:33 -07:00
mtortonesi
9a66d92f60 [svn] Improvements/fixes to HTTP Content-Disposition header support. 2006-04-28 02:15:14 -07:00
mtortonesi
b15ddc5b71 [svn] Removed broken output file removal patch. 2006-01-30 00:46:16 -08:00
mtortonesi
f1b726490e [svn] Remove output document in case of download problems when -O and --quiet are given. 2006-01-24 05:36:24 -08:00
hniksic
b138e352e0 [svn] Don't read more than the amount of data specified by the content-length
header.  Removed the obsolete "kill_lines" wgetrc var.
2005-08-08 15:51:19 -07:00
hniksic
b3900f1fbd [svn] In for loops with empty body, put the ";" on a separate line to silence
a warning from DMC.
2005-07-06 18:08:52 -07:00
hniksic
097695b723 [svn] New option --ignore-case for case-insensitive matching. 2005-07-06 12:44:00 -07:00
hniksic
db9de5b075 [svn] Update FSF's address and copyright years. 2005-07-01 19:26:52 -07:00
hniksic
9d137e9b84 [svn] Fix parsing alphanumerics in .wgetrc. 2005-06-28 08:33:01 -07:00
hniksic
2447fb9a9b [svn] Move extern declarations to .h files. 2005-06-27 11:19:22 -07:00
hniksic
002def87d2 [svn] Rename LARGE_INT to SUM_SIZE_INT, and simplify its handling. 2005-06-25 07:39:51 -07:00
hniksic
0a41b946d4 [svn] Declare opt.verbose as int, not bool. 2005-06-24 04:44:38 -07:00
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
9000d2b527 [svn] Fix "lockable boolean" error message. 2005-06-19 07:08:09 -07:00
hniksic
876cd95a6e [svn] Improve error message so it names the more useful values first. 2005-06-16 03:51:14 -07:00
hniksic
0840de6605 [svn] Allow --header to contain ",". 2005-05-30 06:31:24 -07:00
hniksic
082d2a5ab7 [svn] Doc fix. 2005-05-30 05:52:44 -07:00
hniksic
724e2f84be [svn] Report exact command name alongside the "display name". 2005-05-21 06:36:43 -07:00
hniksic
20e79ab0fa [svn] Don't free the non-existent opt.ftp_acc. Free the SSL-related stuff. 2005-05-16 08:09:07 -07:00
hniksic
79c4490734 [svn] Re-alphabetize the command list. Have run_command correctly interpret
the new return value of parse_line.
2005-05-08 10:28:19 -07:00
hniksic
302c744e9a [svn] Don't complain about "unknown authentication scheme" if the scheme
is Basic.  Allow empty user-agent meaning "don't send User-Agent".
2005-05-06 10:16:15 -07:00
hniksic
bb60858a3f [svn] Propagate option name to init.c code so error messages mention the
failed command-line option.
2005-05-05 11:45:05 -07:00
hniksic
727f698214 [svn] Abort if there have been errors while processing .wgetrc'. 2005-05-05 11:20:17 -07:00
hniksic
b633022e24 [svn] Wrap the use of opt.random_file in HAVE_SSL. 2005-04-28 02:32:13 -07:00
hniksic
993ba1ca75 [svn] Free the old value of opt.useragent before setting the new one. 2005-04-27 15:16:28 -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
8f935cf74c [svn] Add --random-file option. Bail out in case of error during
SSL initialization.
2005-04-27 14:08:40 -07:00
hniksic
9df281f755 [svn] Wrap private key commands in #ifdef HAVE_SSL. 2005-04-27 11:27:57 -07:00
hniksic
b8efb6d762 [svn] Allow separate specification of certificate type and private key type. 2005-04-27 10:15:10 -07:00
hniksic
a15ce4fbe4 [svn] Doc typo fix. 2005-04-26 14:10:24 -07:00
hniksic
bdad650583 [svn] Renamed "closure" to "place". 2005-04-26 10:30:45 -07:00
hniksic
4edde35100 [svn] Renamed the SSL switches and commands. 2005-04-26 10:22:56 -07:00
hniksic
cf994330a3 [svn] Added reordering of addresses to try IPv4 first and the associated
--prefer-family switch.
2005-04-24 13:00:19 -07:00
hniksic
2219d47ba3 [svn] Extract timers to a separate file. 2005-04-07 14:37:22 -07:00
hniksic
7c044778bc [svn] Improve built-in memory debugger. 2005-03-20 07:07:40 -08:00
hniksic
c36e9a5272 [svn] Concatenate strings using concat_strings. 2005-03-19 09:23:32 -08:00
hniksic
5fca43a4c0 [svn] Handle negative numbers and detect overflow in simple_atoi.
Handle negative numbers in simple_atof.
2005-03-19 09:16:32 -08:00
hniksic
30aaf5a19a [svn] Use the passive FTP transfer mode by default. 2005-03-06 11:34:25 -08:00
hniksic
e2241936d0 [svn] Remove warnings under Borland C. 2005-03-05 18:11:10 -08:00
hniksic
ef22bf610a [svn] Large file support added. Published in <87psyr6jn7.fsf@xemacs.org>. 2005-02-23 14:21:04 -08:00
mtortonesi
787f482f03 [svn] Added the --ftp-passwd command line option. 2005-02-18 17:52:01 -08:00
hniksic
f7193075df [svn] Under Windows, if $HOME is not defined, use the directory that
contains the Wget binary instead of hard-coded `C:\'.
(wgetrc_file_name): Under Windows, look for $HOME/.wgetrc then, if
not found, look for wget.ini in the directory of the Wget binary.

Submitted by David Fritz.
2004-02-17 07:37:31 -08:00
hniksic
489452a23a [svn] Declare the pointers to literal strings as `const'. 2003-12-14 05:35:27 -08:00
hniksic
0d0fe50435 [svn] New option --protocol-directories. 2003-12-05 19:01:31 -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
381457408a [svn] Read the data in skip_short_body directly. 2003-11-30 06:33:00 -08:00
hniksic
0ff9eb4727 [svn] Restructure generation of HTTP requests. Allow headers specified with
--header to override generated headers.
2003-11-29 10:40:01 -08:00
hniksic
7c063c3175 [svn] Don't #include netinet/Winsock stuff. 2003-11-27 15:39:53 -08:00
hniksic
133d69ff24 [svn] Don't auto-set opt.ipv4_only on systems without IPv6 sockets. 2003-11-17 04:59:54 -08:00
hniksic
66cc6d43f6 [svn] Don't allow opt.ipv4_only and opt.ipv6_only to both be set. 2003-11-15 16:31:58 -08:00
hniksic
8e330fdba0 [svn] Add support for -4/-6. 2003-11-14 17:49:52 -08:00
hniksic
a0bae929ea [svn] Turn on opt.ipv4_only if we're compiling with IPv6, and AI_ADDRINFO is not
available, and AF_INET6 sockets can't be created.
2003-11-13 08:41:17 -08:00
hniksic
244efb6e50 [svn] Added (currently no-op) -4 and -6. 2003-11-11 13:48:35 -08:00
hniksic
ad75dd2662 [svn] Applied Dennis Smit's --preserve-permissions patch. 2003-11-06 12:33:20 -08:00
hniksic
f567bec34c [svn] Improved command line option processing, introduced boolean options. 2003-11-06 12:20:43 -08:00
hniksic
38b37ed104 [svn] New option --keep-session-cookies. 2003-11-04 16:11:33 -08:00
hniksic
c3e7a030de [svn] findcmd -> command_by_name 2003-11-04 15:19:39 -08:00
hniksic
095d89995e [svn] Abort on xfree(NULL). 2003-11-02 13:12:49 -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
5f0a2b3f08 [svn] Use new macros xnew, xnew0, xnew_array, and xnew0_array in various places. 2003-10-31 06:55:50 -08:00
hniksic
6369bc5944 [svn] Clarify how setoptval() works. 2003-10-30 03:09:18 -08: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
38ea4d5dad [svn] Renamed DEBUG to ENABLE_DEBUG. 2003-10-07 17:05:51 -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
12ffc87ca7 [svn] Update copyright. 2003-09-21 14:39:00 -07:00
hniksic
e0303dd8ea [svn] Improved init.c error messages. 2003-09-21 12:17:45 -07:00
hniksic
51a8e9fa50 [svn] Enabled separation of different timeout values. 2003-09-20 21:41:55 -07:00
hniksic
b8e416c6c7 [svn] Adjust bandwidth limitation sleep for the error of previous sleeps.
Allow decimal numbers in bandwidth limit specification.
2003-09-20 21:05:12 -07:00
hniksic
37183b0208 [svn] Make errors in command-line options fatal. 2003-09-20 17:41:49 -07:00
hniksic
7870937036 [svn] Allow decimal values for --timeout, --wait, and --waitretry.
Message-ID: <m3llsjhx6t.fsf@hniksic.iskon.hr>
2003-09-20 16:12:18 -07:00
hniksic
a504d10ed5 [svn] Default dir_prefix to NULL rather than ".". 2003-09-19 08:28:36 -07:00
hniksic
7b5fb50cb1 [svn] Renamed wget.h XDIGIT-related macros to (hopefully) clearer names. 2003-09-19 07:08:37 -07:00
hniksic
7c802e58d3 [svn] Introduce non-strict comment parsing. 2003-09-18 17:33:22 -07:00
hniksic
fdf7fd4d76 [svn] Removed unused macro ISODIGIT. 2003-09-16 19:00:12 -07:00
hniksic
aa24b822ca [svn] Improved --restrict-file-names to accept ",nocontrol". 2003-09-16 18:32:05 -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
bda244f564 [svn] Allow --foo=yes/no in addition to --foo=on/off. 2003-09-10 13:21:21 -07:00
hniksic
10137bd186 [svn] New option --dns-cache. 2003-09-10 12:41:54 -07:00
hniksic
30ac043b0a [svn] New option --retry-connrefused from Ahmod Dancy. 2003-09-04 14:34:58 -07:00
hniksic
27483fd0f5 [svn] Fix off-by-one error in cmd_file.
Published in <sxsit2rfzqo.fsf@florida.munich.redhat.com>.
2002-08-03 13:34:58 -07:00
hniksic
b2be7522c7 [svn] Update the license to include the OpenSSL exception. 2002-05-17 19:16:36 -07:00
hniksic
91a190a770 [svn] Implement several SSL features.
- allow checking of server cert
- allow defining client cert type
- allow limit of ssl protocol
- check more return values
- added debug message on break
Published by Thomas Lussnig in <3CC09969.5000607@bewegungsmelder.de>.
2002-04-20 19:26:48 -07:00
hniksic
29a66192cf [svn] Cookie interface and implementation changes
from <sxsofge9yao.fsf@florida.arsdigita.de>
and <sxslmbim7dg.fsf@florida.arsdigita.de>.
2002-04-20 13:46:38 -07:00
hniksic
a9e97711fa [svn] Keep the commands list in sort order! 2002-04-19 02:24:32 -07:00
hniksic
081e4eb4f4 [svn] Use a marginally faster implementation of binary search.
Published in <sxs662uf7l9.fsf@florida.arsdigita.de>.
2002-04-14 11:39:43 -07:00
hniksic
5cb8a6f44d [svn] Add the POST method.
Published in <sxssn5yj4eb.fsf@florida.arsdigita.de>.
2002-04-13 21:22:47 -07:00
hniksic
a69cb0c3ad [svn] Various IPv6 fixes.
Submitted in <sxsd6zz2jf7.fsf@florida.arsdigita.de>.
2002-01-24 19:34:23 -08: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
e59a7ee8ac [svn] Make -P work on Windows.
Submitted by Ian Abbott in <3C447E8F.13424.16ED42@localhost>.
2002-01-16 17:03:33 -08:00
hniksic
0f120eee66 [svn] Fix error message when $WGETRC not found.
Published in <sxswuzrylnm.fsf@florida.arsdigita.de>.
2001-12-13 11:19:03 -08:00
hniksic
233fcbc44d [svn] Would abort when given invalid progress type.
Published in <sxsg06kxc9g.fsf@florida.arsdigita.de>.
2001-12-09 14:25:34 -08:00
hniksic
fcf68c0e9a [svn] --sslegdsock' -> --egd-file'
Published in <sxsadwwnc7h.fsf@florida.arsdigita.de>.
2001-12-05 21:35:17 -08:00
hniksic
ae3c268719 [svn] Implement EGD support.
Submitted by Christian Fraenkel in <005501c17920$1312d440$4a05a8c0@isn>.
2001-11-29 23:39:08 -08:00
hniksic
fb7fb36cb8 [svn] Resurrect opt.dot_style. 2001-11-27 18:44:18 -08:00
hniksic
bae3162c03 [svn] New option `--limit-rate'.
Published in <sxsd725cn56.fsf@florida.arsdigita.de>.
2001-11-26 12:07:13 -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
2c41d783c6 [svn] New option --random-wait.
Submitted by Alan Eldridge in
<200111042106.fA4L63b75804@wwweasel.geeksrus.net>.
2001-11-25 13:23:15 -08:00
hniksic
95631700f7 [svn] Remove host canonicalization code.
Published in <sxsg072ai5v.fsf@florida.arsdigita.de>.
2001-11-25 09:13:20 -08:00
hniksic
222e9465b7 [svn] Implemented breadth-first retrieval.
Published in <sxsherjczw2.fsf@florida.arsdigita.de>.
2001-11-24 19:10:34 -08:00
hniksic
905472770e [svn] Minor progress bar fixes.
Published in <sxsn11dh3fc.fsf@florida.arsdigita.de>.
2001-11-23 08:12:53 -08:00
hniksic
cdcf67a5bd [svn] Big progress bar update.
Published in <sxsn11ehyn1.fsf@florida.arsdigita.de>.
2001-11-22 20:59:52 -08:00
hniksic
d60b54cba0 [svn] Applied Chris Seawood's patch for compilation under BEOS.
Patch published in <3B5D4CEF.5090208@seawood.org>.
2001-11-16 08:58:08 -08:00
hniksic
0b056d1720 [svn] Update copyright notices. 2001-05-27 12:35:15 -07:00
hniksic
72b9bb6d92 [svn] Zero out SIN before using it.
Published in <sxs3daq8zdg.fsf@florida.arsdigita.de>.
2001-04-30 03:19:41 -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
c6e565fd33 [svn] Send the no-cache directive when required regardless of whether we're
going through a proxy.
Published in <sxsitjqncbx.fsf@florida.arsdigita.de>.
2001-04-26 22:26:44 -07:00
hniksic
8a0e9e765e [svn] Minor -Wall-induced fixes. Also, skip_url is removed.
Published in <sxs8zl5v5cw.fsf@florida.arsdigita.de>.
2001-04-12 20:39:23 -07:00
hniksic
665a84b4a2 [svn] Implement tilde-expansion in file name arguments of
`.wgetrc' commands.
Published in <sxsy9tbeyh3.fsf@florida.arsdigita.de>.
2001-04-08 16:59:14 -07:00
hniksic
2cfb2d2ef6 [svn] Added support for cookies. 2001-04-08 15:25:24 -07:00
hniksic
cee04f2ef3 [svn] Fix memory allocation in cmd_address().
Published in <sxs66gogt0k.fsf@florida.arsdigita.de> under
the subject "Fix for opt.bind_address".
2001-04-01 15:23:52 -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
dan
4fc318600e [svn] init.c (commands): Hack Kampbj?rn <hack@hackdata.com> discovered that
"httpsproxy" had been inserted into commands[] out of alphabetical order,
causing "BUG: unknown command `httpuser'".
2001-02-16 21:26:34 -08:00
hniksic
07f60f19a4 [svn] Applied Christian Fraenkel's patch "custom certificate patch for wget-1.7+dev;
2nd try", published in <200102082132220160.00474E73@pop.gmx.net>.
It adds two options for custom certificates.
2001-02-10 14:33:31 -08:00
hniksic
5099ec0306 [svn] Apply lint-expired fixes from <sxsn1du7ufa.fsf@florida.arsdigita.de>. 2000-12-17 10:52:52 -08:00
hniksic
7828e81c79 [svn] Committed C. Frankel's SSL patch. 2000-12-05 15:09:41 -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
f2f77d87fd [svn] New option --no-http-keep-alive.
Published in <sxsd7fr1pdf.fsf@florida.arsdigita.de>.
2000-11-19 16:04:06 -08:00
hniksic
e1f1c1ff40 [svn] Better version of read_whole_line().
Published in <sxsr94jd7z4.fsf@florida.arsdigita.de>.
2000-11-10 10:01:35 -08:00
hniksic
e18ca280fb [svn] Fix off-by-one error in comind().
Published in <sxsvgtvdcki.fsf@florida.arsdigita.de>.
2000-11-10 08:20:55 -08:00
hniksic
34ea31bb01 [svn] Sort commands[]. 2000-11-07 03:43:36 -08:00
hniksic
eef4a668b7 [svn] Update copyright blurbs with the year 2000. 2000-11-01 17:50:03 -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