micah
c17f57f1fa
[svn] Fix for bug #20296 : User:pass@ given in Referer header.
2007-07-29 18:22:34 -07:00
micah
4d7c5e087b
[svn] Merge of fix for bugs 20341 and 20410.
2007-07-09 22:53:22 -07:00
hniksic
ff82bd9276
[svn] Would incorrectly skip changing working directory when retrying after a
...
failed FTP attempt.
2006-10-18 13:45:30 -07:00
hniksic
8566a72767
[svn] Avoid code repetition between time_str and datetime_str.
2006-08-08 07:32:53 -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
01093c0c33
[svn] Fixed recursive spider mode.
2006-05-25 09:11:29 -07:00
mtortonesi
8c69427125
[svn] Fixed typo
2005-10-05 02:43:47 -07:00
hniksic
481443d337
[svn] Simplify the ip_address data union. Always use inet_ntop for printing
...
IP addresses when IPv6 is enabled.
2005-08-10 06:50:08 -07:00
hniksic
fdb3a03fca
[svn] Don't free RESPLINE if ftp_response returns a status other than FTPOK.
...
By Vasil Dimov.
2005-08-08 15:21:59 -07:00
hniksic
097695b723
[svn] New option --ignore-case for case-insensitive matching.
2005-07-06 12:44:00 -07:00
hniksic
550c39e714
[svn] Correctly print SSL errors.
2005-07-03 14:20:33 -07:00
hniksic
db9de5b075
[svn] Update FSF's address and copyright years.
2005-07-01 19:26:52 -07:00
hniksic
c1fb83c53b
[svn] Renamed "pretty_print_address" to "print_address".
2005-06-30 13:03:18 -07:00
hniksic
4aea3747e3
[svn] Delete trailing newlines from LIST output when -S is used.
2005-06-27 17:13:44 -07:00
hniksic
2447fb9a9b
[svn] Move extern declarations to .h files.
2005-06-27 11:19:22 -07:00
hniksic
319f52d756
[svn] When the download is finished, print the time the download took.
...
Always invoke SIZE, not only when continuing the download.
2005-06-25 17:41:09 -07:00
hniksic
e24bc5db1b
[svn] Rewrite with_thousand_seps to be size-agnostic. Remove printing of separators
...
from sizes.
2005-06-25 16:09:29 -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
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