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

703 Commits

Author SHA1 Message Date
mtortonesi
87e0d2682b [svn]
Renamed src/string.{c,h} to src/string_t.{c,h} to solve a conflict with the
string.h standard C library header file.

Fixed a bug and triggered escape of backslashes in string_t.c to avoid
ambiguities in the result string.

Added Simone Piunno as new contributor.
2005-02-11 13:34:42 -08:00
mtortonesi
ca13ffd249 [svn] Added string.c module. Updated copyright information and added names of new contributors to the documentation. 2005-01-01 13:29:11 -08:00
mtortonesi
ec4f99d51e [svn] Fixed a problem in ftp_parse_winnt_ls that could allow a malicious remote FTP server to crash wget. 2004-12-08 17:20:39 -08:00
mtortonesi
65af6f7432 [svn] Fixed -k when using -O. 2004-11-18 16:44:38 -08:00
mtortonesi
14645396e2 [svn] Fixed a timeout problem in src/retr.c:fd_read_body when using http_proxy. 2004-11-18 13:05:30 -08:00
hniksic
44704ef233 [svn] Fix fake_fork under Borland C.
Submitted by David Fritz.
2004-05-09 14:50:00 -07:00
hniksic
2fdf38285b [svn] Fix typo. 2004-03-31 11:14:05 -08:00
hniksic
7488d701bf [svn] Send the Proxy-Authorization header over non-SSL connections too. 2004-03-30 15:19:16 -08:00
hniksic
bf4ae09b22 [svn] Fix fake_fork error handling for Windows 98.
Patch by David Fritz.
2004-03-25 11:18:54 -08:00
hniksic
03395ca801 [svn] New Windows implementation of fork_to_background().
Submitted by David Fritz.
2004-03-24 11:16:08 -08:00
hniksic
1b6479a39a [svn] Fixed bugs in Windows console event handling.
Submitted by David Fritz.
2004-03-19 15:54:27 -08:00
hniksic
dd9a354756 [svn] Decode %HH sequences in host name. 2004-03-19 13:00:09 -08:00
hniksic
15282415b4 [svn] Quote # and % when creating links to local files. 2004-03-03 16:41:34 -08:00
hniksic
3f374f6db1 [svn] * mswindows.c (ws_percenttitle): Guard against future changes by
doing nothing if the proper variables have not been initialized.
Clamp percentage value.
Submitted by David Fritz.
2004-03-03 16:06:46 -08:00
hniksic
5c07512ec9 [svn] Don't change Windows console title if quiet.
Submitted by Gisle Vanem.
2004-03-03 16:05:26 -08:00
hniksic
a865004aba [svn] Improved Windows power management logic. Submitted by David Fritz. 2004-02-26 06:34:17 -08:00
hniksic
a0642cc62e [svn] Revamped MS console logic. Submitted by David Fritz. 2004-02-25 15:45:24 -08:00
hniksic
6b955d9fe7 [svn] Formatting tweaks by David Fritz. 2004-02-23 19:29:55 -08:00
hniksic
eef22ee91e [svn] Remove ws_help; it doesn't make sense to invoke the help browser for
--help.
2004-02-22 07:45:59 -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
5114df6b33 [svn] Respect --ignore-length.
Inhibit keep-alive when --ignore-length is used.
2004-02-06 17:48:54 -08:00
hniksic
9adc7cf275 [svn] Zero out sockaddr_in/sockaddr_in6. Apparently BSD-derived stacks need this
when binding a socket to local address.
2004-02-06 08:59:54 -08:00
hniksic
91ebe986e4 [svn] Make hash.c compilable outside the source tree. 2004-02-04 04:32:46 -08:00
hniksic
9a4afed6fd [svn] Return a value on non-Windows systems without TIOCGWINSZ. 2004-01-29 04:38:52 -08:00
hniksic
4d626daf5a [svn] Correctly determine screen size under Windows. 2004-01-28 05:42:52 -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
dc99d9a487 [svn] Don't sleep using usleep for more than a second. 2004-01-24 19:16:33 -08:00
hniksic
4bbe443be3 [svn] Fix generation of `Content-Length'. 2003-12-16 12:42:06 -08:00
hniksic
174fee5396 [svn] Fixed return value; 'url' if no credentials. 2003-12-15 02:22:54 -08:00
hniksic
c734e9a981 [svn] Return a pointer from url_skip_credentials. 2003-12-14 05:42:53 -08:00
hniksic
489452a23a [svn] Declare the pointers to literal strings as `const'. 2003-12-14 05:35:27 -08:00
hniksic
261183c609 [svn] retr.c (fd_read_body): Pass total size to progress_create, not
the remaining amount.
2003-12-12 14:55:20 -08:00
hniksic
9179f2e699 [svn] Don't fiddle with "interactive timeout" if read timeout is unset. 2003-12-12 14:40:39 -08:00
hniksic
c5cc9f39cc [svn] Don't set the IPV6_V6ONLY option on the socket. 2003-12-12 06:14:53 -08:00
hniksic
0d0fe50435 [svn] New option --protocol-directories. 2003-12-05 19:01:31 -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
bf8350af62 [svn] Support the 303 See Other response. 2003-12-05 06:37:47 -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
2f357b5eb8 [svn] Better documentation for fd_read_body args. 2003-11-29 20:41:08 -08:00
hniksic
3390f7eb45 [svn] Try to reuse connections that return error codes. 2003-11-29 17:34:33 -08:00
hniksic
63d492c0ba [svn] Initialize SSL only the first time when an SSL URL is encountered. 2003-11-29 14:24:55 -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
83b0e38940 [svn] Don't include the Proxy-Authorization header in the request tunneled
through proxy.
2003-11-28 03:28:05 -08:00
hniksic
76b59b1ad7 [svn] Use the CONNECT method to establish passthrough over SSL traffic
over proxies.
2003-11-27 18:24:53 -08:00
hniksic
7c063c3175 [svn] Don't #include netinet/Winsock stuff. 2003-11-27 15:39:53 -08:00
hniksic
dfe1f43dc0 [svn] Use fd_read_hunk for reading HTTP response head. Support HTTP/0.9
responses.
2003-11-27 15:29:36 -08:00
hniksic
b83acf88c1 [svn] Don't calculate the ETA if nothing has yet been downloaded. 2003-11-27 14:59:36 -08:00
hniksic
f496a0ea07 [svn] Renamed sa_len to addrlen because IRIX defines sa_len as macro. 2003-11-27 02:59:41 -08:00
hniksic
3f84a5e00e [svn] Squash embedded newlines in links. 2003-11-26 08:37:04 -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
c06c8d039f [svn] Added the trailing backslash that was missing. 2003-11-25 16:20:42 -08:00
hniksic
7736d5dc98 [svn] Remove headers.c and headers.h. 2003-11-21 00:48:45 -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
0c4b349c5a [svn] It's not necessary to initialize RES. 2003-11-19 17:26:02 -08:00
hniksic
bbcdd71484 [svn] Don't reference opt.ipv4_only and opt.ipv6_only if IPv6 is disabled. 2003-11-19 05:25:20 -08:00
hniksic
3792aa7058 [svn] Don't compile socket_has_inet6 if IPv6 is disabled. 2003-11-19 04:07:42 -08:00
hniksic
581f9539a3 [svn] Warn the user when using weak random seed. 2003-11-18 14:28:01 -08:00
hniksic
0fb0ee87c7 [svn] Renamed address_list_find to address_list_contains. 2003-11-18 14:18:44 -08:00
hniksic
ac1d8e5078 [svn] Make select_fd return 1 if select is unavailable. 2003-11-17 15:46:20 -08:00
hniksic
e4c730c3a5 [svn] Don't reference address list after releasing it. 2003-11-17 12:51:27 -08:00
hniksic
5fb7ffc9ad [svn] Fix alignment of FTP options output. 2003-11-17 05:13:33 -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
c45fc0e595 [svn] Fix minor problems with --help text. 2003-11-16 15:42:38 -08:00
hniksic
cd8797a2a2 [svn] No longer include INET headers in ftp-basic.c. 2003-11-16 11:17:48 -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
dcc890b007 [svn] Specify AI_ADDRCONFIG only when the address family is not explicitly
requested.
2003-11-14 18:18:41 -08:00
hniksic
98349dee6f [svn] Don't refer to nonexistent forget_host_lookup. 2003-11-14 18:10:56 -08:00
hniksic
36387204b0 [svn] Fix call to socket_ip_address. 2003-11-14 18:03:23 -08:00
hniksic
8e330fdba0 [svn] Add support for -4/-6. 2003-11-14 17:49:52 -08:00
hniksic
5a883689bc [svn] Enable -4 and -6 switches only when IPv6 is enabled. 2003-11-14 07:18:47 -08:00
hniksic
4e58524e8f [svn] Renamed register_extended to register_transport. 2003-11-14 05:43:46 -08:00
hniksic
6ddd0006e4 [svn] Preserve consecutive slashes in URLs. Make sure leading ".."'s are
not stripped away.
2003-11-13 17:36:02 -08:00
hniksic
9d907933ad [svn] Don't attempt to talk to two different SSL sites over the same secure
connection.
2003-11-13 14:48:03 -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
1cfde0c27d [svn] Correctly check for unsupported socket families. 2003-11-13 12:26:18 -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
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
fea4fb28cb [svn] Document that the IP addresses are returned in order. 2003-11-12 17:37:46 -08:00
hniksic
6f3dbca0c5 [svn] Better INT_MAX and UCHAR_MAX checks. 2003-11-11 16:42:09 -08:00
hniksic
244efb6e50 [svn] Added (currently no-op) -4 and -6. 2003-11-11 13:48:35 -08:00
hniksic
1d0ab81f37 [svn] Use a more standard error message. 2003-11-10 19:19:33 -08:00
hniksic
02f90322e8 [svn] Network updates. 2003-11-10 05:20:46 -08:00
hniksic
5921fb2d57 [svn] Special-case numeric addresses only in the IPv4 case. 2003-11-10 04:56:08 -08:00
hniksic
8ccc51e5af [svn] Split passive host lookups to a separate function. 2003-11-09 17:38:09 -08:00
hniksic
eb88464568 [svn] Download URLs from <object data="...">. 2003-11-08 17:33:33 -08:00
hniksic
113ad490d0 [svn] Fix core dump with --mirror. 2003-11-08 17:07:53 -08:00
hniksic
8cfaba536a [svn] Specify exact domain match on cookies that don't specify domain. 2003-11-08 14:32:52 -08:00
hniksic
4f19ac5494 [svn] Retire options -g, -G, -s, and -C. 2003-11-08 12:22:21 -08:00
hniksic
439d6a11fa [svn] Added --dont-remove-listing, removed -s. 2003-11-08 12:13:24 -08:00
hniksic
3b8e1052cb [svn] Support Windows-2000 ftp servers. By Gisle Vanem. 2003-11-08 11:20:29 -08:00
hniksic
94ca33d2fb [svn] Update the progress gauge even when the data does not arrive. 2003-11-08 08:56:52 -08:00
hniksic
cb393a062d [svn] Abort if wtimer_update is called on an uninitialized timer.
On the other hand, allow wtimer_read on such a timer.
2003-11-08 08:13:54 -08:00
hniksic
0bd6576cde [svn] Timer code update. 2003-11-07 20:55:44 -08:00
hniksic
d7e592d797 [svn] Replace conaddr with socket_ip_address. 2003-11-07 18:57:51 -08:00
hniksic
fef88bd179 [svn] Mark entries as deleted with the correct marker. 2003-11-07 16:52:23 -08:00
hniksic
bf1ce5b2ad [svn] Use 0xff in hash_table_clear. 2003-11-07 16:48:12 -08:00
hniksic
1a0adb90b4 [svn] Don't force silent lookup. 2003-11-07 16:11:29 -08:00
hniksic
7d12ad0f36 [svn] Explicitly check that fd>=0 in register_extended. 2003-11-07 15:45:03 -08:00