Mike Frysinger
e249844143
Include libunistring headers only when used
...
* src/iri.c: Check for libidn2 < 0.14 to include libunistring headers
The unistring functions are used only when an older version of libidn2
is used, so don't include its headers either w/newer libdin2 versions.
2017-03-20 09:39:20 +01:00
Tim Rühsen
84a93f4127
Fix links to www.robotstxt.org
...
* NEWS: Fix links
* doc/wget.texi: Likewise
* src/res.c: Likewise
Reported-by: Noël Köthe
2017-03-18 19:05:38 +01:00
Tim Rühsen
f31b93424b
* tests/WgetTests.pm: Add -d to Wget test options
2017-03-13 21:31:09 +01:00
Tim Rühsen
90b487369a
Include <arpa/inet.h> for Windows
...
Reported-by: Gisle Vanem
2017-03-08 13:00:54 +01:00
Tim Rühsen
57d748117f
Fix updating HSTS entries
...
* src/hsts.c (hsts_store_entry): Always update 'created' field
Fixes : #50490
Reported-by: Deian Stefan, Atyansh Jaiswal, Jonathan Luck
2017-03-08 10:56:12 +01:00
Tim Rühsen
4d729e322f
Fix CRLF injection in Wget host part
...
* src/url.c (url_parse): Reject control characters in host part of URL
Reported-by: Orange Tsai
2017-03-06 10:04:22 +01:00
Benjamin Esham
63c2aea255
* src/warc.c: Use warc_write_header_uri for all WARC-Target-URI fields
...
The WARC spec requires that all URIs be enclosed in angle brackets. This
was being done in most cases, but not for "WARC-Target-URI" fields in
WARC blocks of type "response", "resource", "revisit", and "metadata".
2017-03-04 12:51:39 +01:00
Tim Rühsen
ac4fed3220
Fix 504 status handling
...
* src/http.c (gethttp): Move 504 handling to correct place.
(http_loop): Fix memeory leak.
* testenv/server/http/http_server.py: Add Content-Length header on non-2xx
status codes with a body
Reported-by: Adam Sampson
2017-02-16 15:53:56 +01:00
YX Hao
cf5df5593d
* src/url.c (url_file_name): Do not charset convert local directory
...
In a non-ASCII environment, the local path may contain non-ASCII
characters. The server responded file name must be converted before
it is concatenated to the local path. Conversion after concatenation
may result in 'iconv' errors.
2017-02-16 12:52:16 +01:00
Tim Rühsen
2215ee8d10
* configure.ac: Remove manually resetting of LIBICONV variable
...
Fixes : #48193
Reported-by: ilovezfs
Reported-by: Charles
2017-02-15 20:03:58 +01:00
Tim Rühsen
32e26dc199
* bootstrap.conf: Call gperf to create lib/unicase/special-casing-table.h
2017-02-15 14:45:23 +01:00
Tim Rühsen
21ac4ae356
* bootstrap.conf: Fix latest gnulib to work with gperf < 3.1
2017-02-15 13:03:10 +01:00
Darshit Shah
838c185ca9
Pull GNULib to latest.
...
* gnulib: Pull to latest commit. This fixes an issue with Gperf 3.1
2017-02-14 15:08:50 +01:00
Tim Rühsen
ac9be9b756
* src/main.c: Remove double 'verbose' option
...
Fixes : #50290
2017-02-12 21:18:23 +01:00
Tim Rühsen
6620c5156f
* NEWS: update
2017-02-11 12:03:54 +01:00
Tim Rühsen
aebd49d9d4
isrc/http.c (check_retry_on_http_error): Fix gcc warning
2017-02-11 11:54:21 +01:00
Tom Szilagyi
d6d00006a0
Add support for --retry-on-http-error
...
* doc/wget.text: Add documentation
* src/http.c: Add function check_retry_on_http_error ()
* src/init.c: Add opt.retry_on_http_error
* src/main.c: Add struct for retry-on-http-error to option_data[]
* src/options.h: Add retry_on_http_error to struct options
2017-02-11 11:50:24 +01:00
Tim Rühsen
05acf5d3f6
Revert "Add support for --retry-on-http-error"
...
This reverts commit 977276374d
.
2017-02-11 11:45:11 +01:00
Tim Rühsen
80c62c238e
Change libtool library deps to non-libtool deps
...
Reported-by: Yousong Zhou
Fixes : #50260
2017-02-10 17:20:42 +01:00
Tom Szilagyi
977276374d
Add support for --retry-on-http-error
...
* doc/wget.texi: Add description for --retry-on-http-error
* src/http.c (gethttp):
Consider given HTTP response codes as non-fatal, transient errors.
Supply a comma-separated list of 3-digit HTTP response codes as
argument. Useful to work around special circumstances where retries
are required, but the server responds with an error code normally not
retried by Wget. Such errors might be 503 (Service Unavailable) and
429 (Too Many Requests). Retries enabled by this option are performed
subject to the normal retry timing and retry count limitations of
Wget.
Using this option is intended to support special use cases only and is
generally not recommended, as it can force retries even in cases where
the server is actually trying to decrease its load. Please use it
wisely and only if you know what you are doing.
Example use and a starting point for manual testing:
wget --retry-on-http-error=429,503 http://httpbin.org/status/503
2017-02-09 21:17:20 +01:00
Tim Rühsen
785c4b92dd
* tests/WgetTests.pm: Add --no-config to wget invocation
...
Without --no-config, wgetrc commands may disturb the tests.
Reported-by: Dagobert Michelsen
2017-02-09 16:34:27 +01:00
Tim Rühsen
d7c34dc0a8
* tests/WgetTests.pm (_verify_download): Fix failure message
...
Reported-by: Zhiming Wang
2017-02-06 23:01:08 +01:00
Tim Rühsen
d061e553a1
* src/http.c (initialize_request): Fix regression in .netrc auth
...
Reported-by: Axel Reinhold
2017-02-06 21:44:18 +01:00
Tim Rühsen
2ddd2b69e4
* src/iri.c (idn_encode): Fix memory leak
2017-02-06 21:39:44 +01:00
Tim Rühsen
990f3d67d3
Remove skipping libunistring with --disable-iri
...
* configure.ac: Remove checking for IRI=no
On certain systems, gnulib falls back to libunistring
for mbtowc() and wcwidth() (used in src/progress.c).
Reported-by: Zhiming Wang
2017-02-06 11:25:48 +01:00
Tim Rühsen
d680b0b551
* bootstrap.conf: Add gnulib module wcwidth
2017-02-04 19:30:38 +01:00
Tim Rühsen
31ac36e170
Fix include/define clash with gnulib's unlink module
...
* src/options.h: Rename options.unlink to options.unlink_requested
* src/init.c: Replace options unlink member by unlink_requested
* src/http.c: Likewise
* src/ftp.c: Likewise
2017-02-04 18:02:54 +01:00
Tim Rühsen
51b401f5c4
* bootstrap.conf: Specify unicode modules more exact
2017-02-04 18:01:44 +01:00
Tim Rühsen
f2c4289557
* src/xattr.h: Fix #define fsetxattr for MacOS and FreeBSD
...
Reported-by: Zhiming Wang
2017-02-04 15:29:44 +01:00
Tim Rühsen
58546e52e2
* contrib/release: New release helper script
2017-02-03 16:16:30 +01:00
Tim Rühsen
820f3fc2b4
* cfg.mk: Fix syntax-check
2017-02-03 16:16:30 +01:00
Tim Rühsen
cc8464206d
* doc/announcement_1.19.txt: Add new file
2017-02-03 15:19:05 +01:00
Tim Rühsen
366d82f349
* src/utils.c: Move macro FMT_MAX_LENGTH into scope
2017-02-03 12:35:49 +01:00
Tim Rühsen
f2574e90b7
* src/utils.c: Fix -Wformat= warnings
2017-02-03 12:33:38 +01:00
Tim Rühsen
81b3aaf75c
* src/gnutls.c: Fix -Wformat= warnings
2017-02-03 12:31:51 +01:00
Tim Rühsen
17d2f42a3d
* src/iri.c: Remove unused macro IDNA_FLAGS
2017-02-03 12:28:37 +01:00
Tim Rühsen
638df40476
* src/iri.c: Remove use of __func__ macros
2017-02-03 12:28:05 +01:00
Tim Rühsen
00bafe72f1
* src/http.c: Fix -Wformat= warnings
2017-02-03 12:24:41 +01:00
Tim Rühsen
e777c01f43
* src/progress.c: Remove unused macro move_to_end
2017-02-03 12:18:14 +01:00
Tim Rühsen
3ba112ea57
* src/html-parse.c: Remove unused macro SKIP_NON_WS
2017-02-03 12:15:24 +01:00
Tim Rühsen
485fcfcc20
* src/hsts.c: Remove unused macro CHECK_EXPLICIT_PORT
2017-02-03 12:09:18 +01:00
Tim Rühsen
a5094731cd
* src/hsts.c: Fix -Wformat= warnings
2017-02-03 12:08:08 +01:00
Tim Rühsen
3186eb2976
* src/hash.c: Explicitly convert float to int
2017-02-03 12:03:50 +01:00
Tim Rühsen
9947663af8
* src/ftp-ls.c: Fix -Wformat= warnings
2017-02-03 11:59:33 +01:00
Tim Rühsen
cfae085665
* src/ftp.c (ftp_retrieve_list): Add default to switch
2017-02-03 11:57:02 +01:00
Tim Rühsen
e69808256b
* src/css-url.h: Remove redundant declaration
2017-02-03 11:53:28 +01:00
Tim Rühsen
11989ef669
* src/ftp.c: Fix -Wformat= warning
2017-02-03 11:52:08 +01:00
Tim Rühsen
5fceab6cb9
* src/http.c (test_parse_range_header): Fix constants
2017-02-03 10:32:42 +01:00
Dale R. Worley
d6eead1794
Improve documentation of --trust-server-names.
2017-02-02 12:10:43 +01:00
Tim Rühsen
d0e02a54ae
* src/url.c (mkalldirs): Add newline to log message
2017-02-02 11:11:50 +01:00