Commit Graph

1638 Commits

Author SHA1 Message Date
Steven Schubiger 1df3a35106 Duplicate string to circumvent eventual memory corruption. 2009-05-27 21:47:57 +02:00
Steven Schubiger 2e1619d3fe Fix wrong human-readable ETA output. 2009-05-17 12:53:28 +02:00
Micah Cowan faa3908610 stdint.h adjustments for Interix, thanks Markus Duft <mduft@gentoo.org>. 2009-04-24 10:00:48 -07:00
Micah Cowan bb2cba2cc7 Automated merge. 2009-04-22 11:44:13 -07:00
Micah Cowan 1cc32c3014 Fix unportable echo -n. 2009-04-20 10:37:27 -07:00
Steven Schubiger 116b261a9f Move duplicated code to a function. 2009-04-13 22:19:13 +02:00
Steven Schubiger 236ab6d8e0 Skip running rc files while executing tests. 2009-04-11 21:59:55 +02:00
Steven Schubiger 42253233c3 Adjust copyright years. 2009-03-03 21:16:47 +01:00
Micah Cowan 5beb59b249 Fixed my stupid CONAIR typo... 2009-03-02 10:29:49 -08:00
Micah Cowan 4092d7eedc Merge. 2009-03-01 02:57:14 -08:00
Gisle Vanem 3ab05cfe38 No freopen(NULL,...). 2009-03-01 00:08:44 -08:00
Steven Schubiger 57a7ebef93 Improve also messages when writing a document retrieved via FTP to stdout (#20520). 2009-02-27 21:22:29 +01:00
Steven Schubiger fb7916aa1d Improve messages when writing a document to stdout. 2009-02-21 17:32:12 +01:00
Steven Schubiger 1ebd5828cb Remove an unused declaration. 2009-02-18 19:52:39 +01:00
gerel ea3745e8dc removed some more calls 2009-02-01 15:03:51 -03:00
gerel 857224758e one less call 2009-02-01 13:06:32 -03:00
Micah Cowan 58de6f0033 Not-so-automated merge. 2008-12-01 22:59:03 -08:00
Micah Cowan 1b4ed7dcb7 Automated merge. 2008-12-01 07:05:29 -08:00
Micah Cowan 78a7657395 Automated merge. 2008-11-26 21:55:12 -08:00
Micah Cowan d8c11a82ca Automated merge. 2008-11-26 21:53:40 -08:00
Saint Xavier 51f8e65633 Fixes bug #24862: --content-disposition doesn't work with HTTP authentication 2008-11-27 00:19:06 +01:00
Micah Cowan 289ff1c86a Merge with mainline. 2008-11-26 07:08:38 -08:00
Steven Schubiger f33c275621 Move numurls out of options struct. 2008-11-16 20:53:58 +01:00
Steven Schubiger 47bf277fb5 Default value for waitretry. 2008-11-15 13:25:20 +01:00
Steven Schubiger 94d7b0b570 Improve printing formatted build information. 2008-11-14 13:48:32 +01:00
Micah Cowan c7f74c62d3 Don't download content just to ignore it. 2008-11-13 00:59:53 -08:00
Micah Cowan 02c211d47c HTML-escape dirname in href (not perfect, good enough). 2008-11-12 21:44:48 -08:00
Micah Cowan ca12585a0e HTML-escape dir name in title, h1. 2008-11-12 21:00:05 -08:00
Micah Cowan cf93ce7f4b Applied Alexander Belopolsky's patch for htmlified FTP listings. 2008-11-12 20:47:52 -08:00
Steven Schubiger 3c1725e7a1 Return some memory control back to format_and_print_line. 2008-11-12 12:02:37 +01:00
Steven Schubiger fafd83c097 Do not handle memory within format_and_print_line. 2008-11-11 23:00:05 +01:00
Saint Xavier 65ab102f07 Make --auth-no-challenge work with user:pass@ in URLs. 2008-11-10 23:17:17 -08:00
Micah Cowan 8f5ffd9589 Only print remaining size when > 1k. 2008-11-05 13:38:50 -08:00
Micah Cowan fc7e412bd3 Mailing list move. 2008-10-31 23:15:06 -07:00
Alexander Drozdov b0bdf95494 Fix underflow, incorrect assertion. 2008-10-31 11:13:10 -07:00
Gisle Vanem 871992e247 Compatibility tweaks to format_and_print_line. 2008-10-26 13:18:36 -07:00
Saint Xavier 66dd4bda74 IRI requirement: do not percent-encode already percent-encoded values (try1) 2008-09-27 11:13:21 +02:00
Gisle Vanem b58816ed33 aprintf, not asprintf. 2008-09-09 10:26:44 -07:00
Micah Cowan a38d9e7e7a Avoid unnecessary vars, and make wgetrc_file_name build properly on Windows. 2008-09-09 10:20:21 -07:00
Micah Cowan abeb6c4a9e Define program_name, for lib/error.c. 2008-09-09 09:40:13 -07:00
Gisle Vanem 8216f0acc5 Ensure stdio.h is included. 2008-09-02 15:57:43 -07:00
Micah Cowan 090f1596ae Automated merge. 2008-08-28 01:21:59 -07:00
Micah Cowan 123f5c3966 Dependency improvements (but still needs some work). 2008-08-22 17:14:31 -07:00
Saint Xavier 26a3eea8e2 Removed commented *printf and use quote_n() for quoting several args 2008-08-15 15:15:42 +02:00
Saint Xavier 5133d57366 Fixes: use encoding got from the remote server serving the list file and use quote_n() for quote'ing several args 2008-08-15 15:03:38 +02:00
Saint Xavier 1063191b33 Fix a double quoting 2008-08-15 14:41:15 +02:00
Xavier Saint a459f0aac9 Automated merge. 2008-08-14 18:45:26 +02:00
Xavier Saint cbd54b549a Automated merge. 2008-08-14 18:45:13 +02:00
Xavier Saint 723dbfc818 Correct iri handling while fetching a remote file list with -i and provide a test 2008-08-14 18:26:53 +02:00
Xavier Saint e6b4e761d1 Don't forget to free the iri struct 2008-08-14 17:42:16 +02:00
Steven Schubiger 1515ea0dea Removed dead DEBUG_MALLOC code. 2008-08-09 09:35:45 -07:00
Xavier Saint 0d0a425144 Correct a mis-merge: return type for url_error is char*, not const char* 2008-08-07 10:33:06 +02:00
Xavier Saint 44a22c78a7 Automated merge. 2008-08-07 10:27:19 +02:00
Xavier Saint 84395897ad iri.h is already included in wget.h, so don't include it in C files 2008-08-04 11:08:33 +02:00
Micah Cowan ba09ad3502 Documentation updates for --default-page. 2008-08-03 22:36:38 -07:00
Micah Cowan dc9abe478f jff: option for specifying the default page-name. 2008-08-03 22:12:34 -07:00
Micah Cowan 90a2d106cd #include wget.h, not config.h. 2008-08-03 22:08:07 -07:00
Micah Cowan 0fae9cb388 stsc: better message for "unsupported schemes". 2008-08-03 22:03:04 -07:00
Xavier Saint c74bc2da70 Some cleanups in iri.c 2008-08-03 22:30:12 +02:00
Xavier Saint e2813c1e4f Since wget use libidn function for finding the locale, langinfo.h is useless 2008-08-03 20:02:35 +02:00
Xavier Saint bfd8a73f00 quote*() functions don't like that much NULL arg 2008-08-02 11:22:14 +02:00
Xavier Saint b967d49f79 opt.remote_encoding should not override opt.locale, add a force arguments to set_uri_encoding() 2008-07-30 10:15:55 +02:00
Saint Xavier 8c513ef487 Fix numbers of arguments of the no-op macro idn_encode() 2008-07-24 14:34:48 +02:00
Saint Xavier 3ae04f5fe4 Use DEBUGP instead of commenting out all the _wonderful_ printfs 2008-07-24 14:32:31 +02:00
Saint Xavier ccd62071dc Automated merge. 2008-07-24 00:58:10 +02:00
Saint Xavier d82f80ecab Change global variable model for state-object 2008-07-24 00:56:29 +02:00
Micah Cowan e4371807f6 stsc: -i URL improvements. 2008-07-22 13:33:42 -07:00
Saint Xavier c31e00b52d Do not free/duplicate current/remote encoding string if they aren't changed 2008-07-21 19:34:22 +02:00
Saint Xavier b30a0dd817 Automated merge. 2008-07-20 21:45:09 +02:00
Saint Xavier 5982054a98 Use the right flags for idna conversion (RFC3987 section 3.1) 2008-07-20 20:37:22 +02:00
Saint Xavier ee8ff7488f Add a missing no-op macro for set_ugly_no_encode() 2008-07-20 19:31:09 +02:00
Saint Xavier 169a16fc7d Make get_utf8_encode() directly aware of ugly_no_encode and remove get_ugly_no_encode() 2008-07-20 19:29:51 +02:00
Saint Xavier 24d68b7a25 Add some comments in iri.c and change a variable name which was the same for a global and a local one 2008-07-20 19:08:28 +02:00
Saint Xavier 7410cb9764 In spider mode, do not report links as broken if they were utf8 encoded 2008-07-20 18:52:20 +02:00
Saint Xavier 1e9ced0170 Get rid of the supplementary bool pointer in url_parse () arguments; UGLY :) 2008-07-20 18:47:52 +02:00
Saint Xavier da6b3f4b61 Use dt rather than result 2008-07-20 18:20:18 +02:00
Saint Xavier 9a2ea3938d Basic IDN/IRI support 2008-07-20 13:10:02 +02:00
Micah Cowan b28a6abfe6 -i accepts URLs (stsc). For #21265. 2008-07-11 17:16:49 -07:00
Micah Cowan 54df044c06 Fix merge of src/Makefile.am 2008-07-11 16:36:09 -07:00
Micah Cowan 2e2ac6ad2f Merge current tip with CSS stuff. 2008-07-11 16:30:51 -07:00
Saint Xavier 6c6e838338 No need for initial value 2008-07-08 00:44:08 +02:00
Saint Xavier f50be2a403 Show the hostname we are connecting to in the locale when possible 2008-07-08 00:42:09 +02:00
Saint Xavier 3781197ec6 Remove an always true condition 2008-07-08 00:29:02 +02:00
Saint Xavier 99396653c2 Show also the hostname in the locale when possible 2008-07-02 16:37:28 +02:00
Saint Xavier 85185bde1b Emit a message if we found invalid or incomplete multibyte sequences 2008-07-01 19:34:37 +02:00
Saint Xavier d687972c50 Fix copyright year and some GNU coding style 2008-07-01 19:28:24 +02:00
Saint Xavier 26252ac4ca escnonprint has been replaced by quotearg_style; reflect that change in comments too 2008-06-30 20:03:01 +02:00
Saint Xavier 8c204b7463 Fix a typo in a comment: impplement -> implement 2008-06-26 21:42:37 +02:00
Micah Cowan ef113e51d8 stsc: FTP -nv --spider: say something about existant files, too. 2008-06-26 11:01:48 -07:00
Saint Xavier d3007f1b3a Automated merge. 2008-06-26 18:10:16 +02:00
Saint Xavier 3b8b1b82d6 Automated merge. 2008-06-26 18:01:01 +02:00
Saint Xavier 5bb11da009 Basic support of IRIs. 2008-06-26 17:59:07 +02:00
Micah Cowan 6db8909f87 stsc: escnonprint -> quotearg_style 2008-06-24 12:08:46 -07:00
Micah Cowan b91e2353f5 Don't assume time_t* is compatible with long*. 2008-06-24 11:44:40 -07:00
Micah Cowan 25585dce47 stsc's patch to initialize, free hs->message. 2008-06-23 12:54:50 -07:00
Micah Cowan b2dbe2b7e4 stsc's better-messages-for-spider-mode patch. 2008-06-22 15:07:19 -07:00
Micah Cowan 8aef7c1f04 version.c string token concatenation. 2008-06-22 11:39:13 -07:00
Saint Xavier 85ecaaea66 Fix a typo in src/ChangeLog 2008-06-20 00:37:15 +02:00
Saint Xavier e6376b4743 Introduce a new function check_encoding_name() for doing a basic check on encoding name validity 2008-06-20 00:33:02 +02:00
Saint Xavier be546c20cb Set an initial value for IRIs options and some minor additions in iri.c 2008-06-19 23:53:03 +02:00
Saint Xavier 2baf323933 Introduce find_locale() to find out local system encoding. 2008-06-19 23:10:06 +02:00
Saint Xavier 13fec85566 Add "content-type" meta tag parsing for retrieving HTML page encoding. 2008-06-19 22:33:38 +02:00
Saint Xavier ed558a83f6 The prefered way is to avoid #ifdef flooding, so take it that way. Introduce iri.c and iri.h for achieving it 2008-06-19 22:07:03 +02:00
Micah Cowan c94d559bc3 Don't abort when len > contlen, when we set it that way. 2008-06-16 21:49:15 -07:00
Saint Xavier 1a33947ca0 Automated merge. 2008-06-14 17:46:53 +02:00
Micah Cowan fe6ab90c73 Distinguish "openssl" from "ssl" (gnutls is also "ssl"). 2008-06-13 23:31:04 -07:00
Micah Cowan ec0347c018 HAVE_NTLM -> ENABLE_NTLM 2008-06-13 23:13:04 -07:00
Micah Cowan 8e9648a972 Merge build info with head. 2008-06-13 22:15:01 -07:00
Saint Xavier 8fc5241a2d Automaetd merge. 2008-06-08 13:00:15 +02:00
Micah Cowan de86fc8c82 Reopen stdout in binary mode for -O -. 2008-06-01 17:28:44 -07:00
Micah Cowan 30a6388020 Changelog entries for the warning tweaks. 2008-05-31 00:50:34 -07:00
Micah Cowan dac53e8bdf Minor tweaks to Henri's patch. 2008-05-31 00:24:53 -07:00
Micah Cowan 48b53471e8 Henri's -Wall patch. 2008-05-30 22:42:36 -07:00
Micah Cowan 1859cd569b Picked off remaining escnonprint call. 2008-05-26 11:36:42 -07:00
Saint Xavier 4aab9e8f0a Detect HTTP Content-Type server encoding 2008-05-25 03:49:00 +02:00
Saint Xavier d9cd5d2207 Add options for enabling IRI support and forcing some encodings 2008-05-25 03:34:28 +02:00
Micah Cowan e416bb27cb ChangeLog formatting adjustment. 2008-05-19 02:41:14 -07:00
Micah Cowan f7235a59b7 Password prompt only once, and before backgrounding. 2008-05-19 02:36:35 -07:00
Micah Cowan 7c46e0f2c1 Apply Kenneth Parnell's patch for prefer_family, in addition to Steven Schubiger's; fix attribution for Schubiger's patch. 2008-05-17 13:23:47 -07:00
Micah Cowan ecdfa5b1bc preferred_family = none 2008-05-17 13:19:37 -07:00
Micah Cowan c3bd5412a8 Handle Ctrl-D, empty password. 2008-05-17 13:01:06 -07:00
Micah Cowan d78cd8d8f8 Merging heads. 2008-05-15 22:36:20 -07:00
Micah Cowan da51f9b2c4 Fix file-checking in FTP with --spider. 2008-05-15 22:26:00 -07:00
Micah Cowan 051528cb85 Use the quote module for the password prompt. 2008-05-15 21:06:51 -07:00
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
Micah Cowan 3323b84c30 Quoting tweaks. 2008-05-14 22:26:15 -07:00
Joao Ferreira 9fa15c310f Changed some comments related with bug fix #23238, to make things clearer. 2008-05-14 23:21:06 +01:00
Joao Ferreira 888c30ba01 Fixed bug #23238: --no-clobber doesn't work with -O flag
"wget -nc -O file URL" now checks if "file" exists first. If it does, it terminates.
2008-05-14 22:10:37 +01:00
Micah Cowan 61e9169dbb Turn off timestamping after the warning. 2008-05-12 22:22:56 -07:00
Micah Cowan e8200e6808 Downgrade -N with -O to a warning. 2008-05-12 23:54:48 -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 16b833c16d Fix too-many-spaces problem for multibyte progress bars, when ETA string not displayed. 2008-04-30 13:48:30 -07:00
Micah Cowan 202caab4c2 Parse html from files when -r -nc is active. 2008-04-27 12:11:03 -07:00
Micah Cowan 886cc094e1 Add support for .. at beginning of paths back in, but only for FTP. 2008-04-27 03:23:54 -07:00
Micah Cowan db61675ec0 Downgrade -r, -p with -O to a warning rather than an error; elaborate about bad combinations with -O. 2008-04-27 02:15:31 -07:00
Micah Cowan ad21f8e2b7 Add fix from eleven, for doing HTTPS auth over a proxy (in eleven, changeset 883844a4ac33). 2008-04-26 21:28:35 -07:00
Steven Schubiger aeced96fae Further quote*()-related integrations in openssl.c. 2008-04-26 14:34:30 +02:00
Steven Schubiger 883ff34537 Further quote*()-related integrations in http.c. 2008-04-26 14:25:50 +02:00
Micah Cowan c9ffc82f46 -I foo -> -Ifoo 2008-04-25 20:05:29 -07:00
Micah Cowan 7a54d852bf Fix ISDIGIT to c_isdigit. 2008-04-25 20:04:10 -07:00
Steven Schubiger 12db0ebf11 Further quote*()-related integrations in host.c. 2008-04-25 23:05:54 +02:00
Steven Schubiger 070cf12e40 Further quote*()-related integrations in gnutls.c. 2008-04-25 23:01:33 +02:00
Steven Schubiger 1fea56d6b6 Further quote*()-related integrations in ftp.c. 2008-04-25 22:55:06 +02:00
Steven Schubiger b23251aac2 Further quote*()-related integrations in ftp-basic.c. 2008-04-25 22:38:51 +02:00
Steven Schubiger 0d41823272 Further quote*()-related integrations in cookies.c. 2008-04-25 22:31:08 +02:00
Steven Schubiger a52fa6056b Include Gnulib quotearg header. 2008-04-25 21:18:07 +02:00
Micah Cowan ce983c8421 Revised usage description of --convert-links to apply to CSS as well as to HTML. 2008-04-24 14:33:32 -07:00
Micah Cowan 0061443011 Added ChangeLog entries for CSS changes. 2008-04-24 14:10:34 -07:00