Gisle Vanem
6a9b2d36e1
Fix C89 issue in http.c found by MSVC 16
2014-11-20 16:20:20 +01:00
Darshit Shah
d9f21b4b95
Aesthetic changes to progress bar
2014-11-20 16:43:47 +05:30
Tim Rühsen
7b43510fe3
Fixes possible issues with Wget running in a turkish locale
2014-11-20 10:56:21 +01:00
Tim Rühsen
1356e90a14
Trivial fixes for C89 compliancy
2014-11-20 09:56:57 +01:00
Darshit Shah
f9646a0c14
Fix potential memory leak in main.c
2014-11-19 23:39:22 +05:30
Darshit Shah
1ce1a40f94
Fix memory leak in utils.c
2014-11-19 21:55:30 +05:30
Tim Rühsen
7a7a241e5b
Use random() and srandom() if available.
...
Reported-by: Coverity scanner
2014-11-19 16:06:19 +01:00
Tim Rühsen
18fe274e1c
Fix loop check in FTP code
...
Reported-by: Coverity scanner
2014-11-19 16:05:55 +01:00
Darshit Shah
c6ee033425
Make 504 Gateway Timeout non fatal
2014-11-19 18:03:17 +05:30
Tim Rühsen
0c1bff841b
Fix memory leak in OpenSSL code
2014-11-19 12:09:04 +01:00
Tim Rühsen
f518d6cea1
Report load failure of cert files only with --debug
...
Fixes #41331
2014-11-19 11:26:20 +01:00
Tim Ruehsen
50ec4d9c3d
Fix warnings from clang-analyzer 3.6
2014-11-18 20:44:56 +01:00
Tim Rühsen
94b8458af1
Fix possible authentication problem with turkish locale
...
The test server now treats authentication schemes case-independent.
2014-11-18 12:49:52 +01:00
Tim Rühsen
db621341a4
Code cleanup for redirect_output_signal()
...
Also fixes a compiler warning for 'make check'.
2014-11-17 11:46:57 +01:00
Tim Rühsen
2ece0cc425
Remove 'make check'compiler warnings
2014-11-17 11:28:20 +01:00
Tom Li
6c989c7131
Scroll to last character of filename in progress
2014-11-16 12:03:10 +05:30
Darshit Shah
94805ad55a
Fix progress bar assertion
2014-11-15 00:13:13 +05:30
Tim Rühsen
897ef07712
Fix error handling for CRL loading in OpenSSL code
2014-11-12 15:38:21 +01:00
Witchakorn Kamolpornwijit
6e259b76b7
Fix range check in map_html_tags()
2014-11-12 15:22:15 +01:00
Tim Rühsen
cf4991d602
Added OpenSSL support for --crl-file
2014-11-12 10:00:51 +01:00
Tim Rühsen
176c2b17fc
Add 'Accept-Encoding: identity' to request header
...
Fixes bug #40819
Reported-by: Noël Köthe <noel@debian.org>
2014-11-11 20:05:21 +01:00
Tim Rühsen
9823dc1989
Fix missing _Noreturn declaration specifiers in src/main.c
...
Reported-by: Gisle Vanem <gvanem@yahoo.no>
2014-11-11 16:34:57 +01:00
Tim Rühsen
2457715e7d
Fix OpenSSL compile-time check for TLSv1.1 and TLSv1.2
...
Reported-by: Velemas Vosak <velemas@gmail.com>
2014-11-11 15:09:41 +01:00
Tim Rühsen
e4a8fe84e2
Added --crl-file to load a Certificate Revocation List (CRL) file
...
Reported-by: Noël Köthe <noel@debian.org>
2014-11-11 15:06:51 +01:00
Darshit Shah
170a469533
Honour Keep-Alive when range not satisfiable
2014-11-09 14:33:13 +05:30
Darshit Shah
d81a8d5f56
Remove redundant condition eval
2014-11-09 14:20:22 +05:30
Tim Ruehsen
7259c30929
Fix segmentation fault on do_conversion() failure
...
Having an unknown local encoding made Wget crash.
We also fix a wrong 'Conversion from ...' message and
changed two logging messages into debug messages.
Reported-by: Mikael Magnusson <mikachu@gmail.com>
2014-11-05 21:57:18 +01:00
Matthew Atkinson
e0f149d29d
Always send Content-Length with POST, PUT, PATCH
2014-11-05 08:42:51 +01:00
Jakub Čajka
981c7456ff
* iri.c (remote_to_utf8): Fixed assumption that char is signed.
...
Fixes fellowing test case failures idn-cmd-utf8, idn-robots-utf8,
if char is unsigned.
2014-11-03 15:43:55 +01:00
Tim Rühsen
e52879514f
* src/log.c: turn on automatic format check for log_vprintf_internal()
2014-11-03 09:22:47 +01:00
Darshit Shah
35bfcb34b0
Remove extra padding from the progress bar
2014-11-01 23:38:07 +05:30
Giuseppe Scrivano
ea97693b54
http: Always check for "Connection: close" presence
2014-11-01 13:22:07 +01:00
Tim Rühsen
fb8f81040a
make _get_rfc2253_formatted static
2014-10-31 09:25:21 +01:00
Tim Rühsen
4ea40809cb
fix implicit decl warning
2014-10-30 15:44:04 +01:00
Tim Rühsen
c2bb6bc875
fix memory leak
2014-10-30 11:05:07 +01:00
Tim Rühsen
a5c6ae8f28
use CLOSE_INVALIDATE instead of fd_close
2014-10-30 11:05:07 +01:00
Tim Rühsen
42333c4a5e
always set fd invalid after close
2014-10-30 11:05:07 +01:00
Tim Rühsen
a6c2ba73d9
fix memory leak in openssl.c
2014-10-30 11:04:52 +01:00
Peter Meiser
c81e3df2bc
Add guard for OpenSSL without SSLv3
2014-10-29 19:27:11 +01:00
Tim Rühsen
148065bc00
content for commit 6092205538
2014-10-29 16:18:01 +01:00
Tim Ruehsen
4152e98bb0
content for commit 605d9053e5
2014-10-28 20:21:33 +01:00
Tim Rühsen
6092205538
fixing several memory leaks
2014-10-28 16:56:34 +01:00
Giuseppe Scrivano
e5cb0f77e6
Revert "Replace @VAR@ in Makefile.am files with $VAR"
...
This reverts commit d1ab00cab4
.
Conflicts:
tests/Makefile.am
2014-10-28 10:42:50 +01:00
Darshit Shah
69c45cba43
Add checks for valid listing file in FTP
...
When Wget retrieves a file through FTP, it first downloads a .listing
file and parses it for information about the files and other metadata.
Some servers may serve invalid .listing files. This patch checks for one
such known inconsistency wherein multiple lines in a listing file have
the same name. Such a filesystem is clearly not possible and hence we
eliminate duplicate entries here.
Signed-off-by: Darshit Shah <darnir@gmail.com>
2014-10-27 09:18:13 +01:00
Darshit Shah
18b0979357
CVE-2014-4877: Arbitrary Symlink Access
...
Wget was susceptible to a symlink attack which could create arbitrary
files, directories or symbolic links and set their permissions when
retrieving a directory recursively through FTP. This commit changes the
default settings in Wget such that Wget no longer creates local symbolic
links, but rather traverses them and retrieves the pointed-to file in
such a retrieval.
The old behaviour can be attained by passing the --retr-symlinks=no
option to the Wget invokation command.
2014-10-27 09:18:13 +01:00
Giuseppe Scrivano
c986ea790c
Fix ChangeLog entry
2014-10-27 09:14:56 +01:00
Tim Ruehsen
3e3073ca7b
add TLSv1_1 and TLSv1_2 to --secure-protocol
2014-10-23 21:16:37 +02:00
Ángel González
601b282cd8
css-url.c (get_uri_string): Fix regression from 8e6de1fb5
...
Solves the issue discovered by Gabriel Somlo and reported in the ml thread
"Regression in git master branch (commit 8e6de1fb5f
)"
2014-10-22 20:26:28 +02:00
Tim Rühsen
bc347cc36f
fixed IRI misbehaviour(s)
2014-10-20 08:53:12 +02:00
Tim Ruehsen
6fc11e46ec
do not use SSLv3 except explicitely requested
2014-10-19 21:57:06 +02:00
Tim Rühsen
8c2d9afd08
fixed memleak in retrieve_url()
2014-09-30 20:50:06 +05:30
Darshit Shah
efe090df89
Handle multibyte characters in progressbar
...
This commit fixes a bug in the progressbar implementation wherein
filenames with multibyte characters were not handled correctly.
2014-09-14 16:17:00 +05:30
Darshit Shah
eab853b7e6
Plug memory leaks
2014-07-24 14:23:43 +05:30
Daniel Stenberg
3d7797c46e
main.c: update the --method description
...
The first line of a HTTP request is not a header, it is the start-line,
which for requests is called the request-line.
See http://tools.ietf.org/html/rfc7230#section-3.1
2014-07-23 18:46:21 +05:30
Darshit Shah
a44841cbe2
Fix potential memory leak and libpsl configure
2014-07-21 13:25:54 +05:30
Tomas Hozza
e43ae39dff
Fix checking of iconv_open return code.
...
Based on libiconv documentation, the iconv_open function returns
(iconv_t)(-1).
Signed-off-by: Tomas Hozza <thozza@redhat.com>
2014-07-08 17:01:17 +02:00
Darshit Shah
c5f2c7fcef
Convert domains to lowercase before libpsl checks
2014-07-05 16:21:40 +05:30
Darshit Shah
550cd6e9d2
Fix indentation and remove excess variable
2014-07-05 16:18:38 +05:30
Darshit Shah
97ce41b2d0
Remove unused error codes
2014-07-05 16:18:31 +05:30
Giuseppe Scrivano
416d0e892c
convert: initialize variable before usage.
2014-06-30 11:35:46 +02:00
Giuseppe Scrivano
e2c8436e17
warc: Avoid out-of-scope variable usage
2014-06-29 11:22:44 +02:00
Giuseppe Scrivano
ebda24eb69
Remove tab-space indentation
2014-06-28 17:53:42 +02:00
Giuseppe Scrivano
601401da71
warc: Fix UUID generation on FreeBSD
2014-06-24 15:05:19 +02:00
Darshit Shah
f3289f76ec
Better align download percentage status
2014-06-22 14:53:24 +05:30
Giuseppe Scrivano
26787225c1
Fix build error on Windows
2014-06-21 18:41:49 +02:00
Nikita Vetrov
104fd20ac3
Add GOST94-GOST89-GOST89 and other ciphers support
...
It is done via one-time call OPENSSL_config. It will fix this error
`OpenSSL: error:140920F8:SSL routines:SSL3_GET_SERVER_HELLO:unknown
cipher returned`. OpenSSL with GOST-support and rebuilding wget
required
2014-06-21 18:33:41 +02:00
Giuseppe Scrivano
ca402e2f81
windows: do not dinamically allocate info->lfilename.
2014-06-19 20:25:27 +02:00
Darshit Shah
8445279306
Fix failing make check
2014-06-16 20:50:30 +05:30
Giuseppe Scrivano
bb025955c3
Fix a problem with ISA server proxy
2014-06-16 16:39:04 +02:00
Darshit Shah
08cedb953b
Mark non returning functions
2014-06-16 18:25:44 +05:30
Giuseppe Scrivano
c03855be40
ftp: Replace main() with main in comments.
2014-06-12 18:49:16 +02:00
Giuseppe Scrivano
3e8f9a6436
Remove duplicated words
2014-06-12 18:49:15 +02:00
Giuseppe Scrivano
5a712b5bcf
gnutls: do not include <assert.h>
2014-06-12 18:49:15 +02:00
Giuseppe Scrivano
ffccc7d3be
Do not depend on always defined macros
2014-06-12 18:49:15 +02:00
Giuseppe Scrivano
d1ab00cab4
Replace @VAR@ in Makefile.am files with $VAR
2014-06-12 18:49:15 +02:00
Giuseppe Scrivano
dd1b69c600
Remove trailing empty lines
2014-06-12 18:49:15 +02:00
Giuseppe Scrivano
3b502901c0
Ensure main calls bindtextdomain
2014-06-12 18:49:14 +02:00
Giuseppe Scrivano
a22cd7394b
Remove trailing whitespaces
2014-06-12 18:49:14 +02:00
Giuseppe Scrivano
8e6de1fb5f
Drop usage of strncpy
2014-06-12 18:49:13 +02:00
Giuseppe Scrivano
8a919932a6
Do not include strings.h
2014-06-12 18:49:13 +02:00
Giuseppe Scrivano
087e17be1c
Do not use exit() with a magic number
2014-06-12 18:48:48 +02:00
Giuseppe Scrivano
ee5b28367c
main: make program_name not static
2014-06-10 11:37:00 +02:00
Giuseppe Scrivano
4d77b190fd
Fix build when libpsl is not available
2014-06-08 22:45:19 +02:00
Darshit Shah
854ebbf4dd
Support libpsl for cookie domain checking
2014-06-05 16:20:34 +05:30
Darshit Shah
8624553a31
Whitespace and formatting changes.(Aesthetic only)
...
This commit makes lots of whitespace only changes. It has been ensured that this
commit does not make any changes to the functioning of the program. The only
changes that have been made are:
* Remove trailing whitespaces
* Convert tabs to spaces
* Fix indentation issues in the code
* Other aesthetic changes to the formatting of comments
2014-05-30 21:12:57 +05:30
Darshit Shah
4eeabffee6
More progress bar aesthetic changes
...
This commit introduces two new changes to how the progress bar looks:
1. Support the --progress=bar:noscroll option which will prevent the filename
from scrolling in the progress bar
2. Print human readable value for the amount already downloaded for any file
2014-05-30 13:28:02 +05:30
Tim Ruehsen
38a7829dcb
Fix compiler warnings
2014-05-12 12:18:50 +02:00
Benjamin Goose
351e438e51
Plug memory leak
2014-05-10 00:47:10 +02:00
Darshit Shah
6d4158122c
Aesthetic changes and bug fixes for progress bar
2014-05-01 23:08:52 +02:00
Darshit Shah
8c2fd06ba8
Add --show-progress to force display progress bar
...
This is a relatively large commit that implements two major features:
1. Implement --show-progress switch to force the display of the progress bar in
any verbosity level
2. Edit the implementation of the progress bar so that the filename is displayed
in the same line.
2014-05-01 01:07:43 +02:00
Giuseppe Scrivano
67a4c6cf97
progress: Split update into update and draw
2014-05-01 00:46:44 +02:00
Tim Ruehsen
848d7537e1
fixed 204 response handling, added new Test-204.px
2014-04-24 13:27:44 +02:00
Darshit Shah
97787110a2
Fix compiler warnings
2014-03-26 12:38:39 +01:00
Daniel Stenberg
226785838a
url: remove shorten_string
...
The function wasn't used and caused a compiler warning:
url.c:1288:1: warning: 'shorten_length' defined but not used [-Wunused-function]
2014-03-25 15:56:23 +01:00
Yousong Zhou
dfa1f4e064
Make wget capable of starting downloads from a specified position.
...
This patch adds an option `--start-pos' for specifying starting position
of a HTTP or FTP download.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2014-03-21 11:21:00 +01:00
Giuseppe Scrivano
43c89ab7a5
http: aesthetic change
2014-03-04 17:26:32 +01:00
Vladimír Pýcha
5bb2f43165
URL-decode the filename parameter of Content-Disposition HTTP header if it is encoded
2014-03-03 11:07:00 +01:00
Giuseppe Scrivano
d68295bdb1
wget: move --version copyright year out of the localized string
2014-02-06 18:35:05 +01:00
Darshit Shah
b65b9cb8c5
Turn --debug into no-op if compiled without debugging support
2014-02-01 11:49:49 +01:00
Darshit Shah
b9e5c3e8b3
Introduce --no-config. The wgetrc files will not be read
...
In case of a conflict between --config and --no-config, the one
that appears first will be considered and the other ignored.
2014-01-22 21:59:06 +01:00
Håkon Vågsether
d260ded060
Fix checking the URL length when filename is specified
2014-01-07 15:59:29 +01:00
Giuseppe Scrivano
70f7cdf1af
Remove some useless if statements
2013-12-29 11:46:04 +01:00
Tim Ruehsen
3b6a3e84a0
fix GnuTLS connect timeout
2013-12-29 11:35:58 +01:00
Giuseppe Scrivano
38933de17c
http: Increase max header value length to 512
2013-11-02 11:53:18 +01:00
Pavel Mateja
aed7d4163a
http: specify Host when CONNECT is used.
2013-11-02 11:30:04 +01:00
Giuseppe Scrivano
42c15e47b4
Remove assert which is always true
2013-10-30 21:20:50 +01:00
Andrea Urbani
c3835a425a
"LIST" or "LIST -a" ftp command according to the remote system
2013-10-28 23:37:10 +01:00
Bykov Aleksey
8b2954e58a
Fix FTP list parsing & Fix cookies reject
2013-10-28 00:26:58 +01:00
Bykov Aleksey
bba67890f3
Fix FTP list parsing
2013-10-28 00:20:18 +01:00
Tim Ruehsen
0c9fb2b041
better backport availability for PFS feature
2013-10-17 09:56:27 +02:00
Giuseppe Scrivano
1fd32c995c
iri: Fix parsing of some URLs contained in HTML documents
2013-10-10 23:13:13 +02:00
Tim Ruehsen
85dd2f7ce2
fix --without-ssl compile error
2013-09-14 11:35:43 +02:00
Tim Ruehsen
e1fc2057c7
PFS runtime check
2013-09-08 00:49:36 +02:00
Tim Ruehsen
e505664ef3
added PFS to --secure-protocol
2013-09-07 13:22:15 +02:00
Tim Ruehsen
42c78fdd71
added option --https-only
2013-08-22 20:05:41 +02:00
Tim Ruehsen
695f11304b
gnutls: Prevent CA files from being loaded twice if possible
2013-08-09 23:06:17 +02:00
Will Dietz
a12bd59111
wget: Fix --version wrapping issue
2013-08-09 20:35:23 +02:00
Darshit Shah
92035dbabd
Fix erroneous error codes when HTTP Digest Authentication fails.
2013-07-22 19:31:07 +02:00
Tim Ruehsen
c19d76c024
ntlm: support libnettle.
2013-07-22 14:17:03 +02:00
Giuseppe Scrivano
a300f1e47d
Fix some memory leaks a problem introduced with the last commit
2013-07-13 16:25:43 +02:00
Steven M. Schweda
72b2c58983
warc: Fix some portability issues on VMS.
2013-07-13 13:36:55 +02:00
Giuseppe Scrivano
c52bbad9e4
Make --backups work as documented
2013-07-13 13:36:55 +02:00
Giuseppe Scrivano
44ba49b31f
doc: document --backups
2013-07-13 13:36:55 +02:00
Steven M. Schweda
eee1589ef3
vms: support --backups
2013-07-13 13:36:54 +02:00
Giuseppe Scrivano
e9cc8b2f7c
Fix HTTP Digest authentication when the algorithm is not specified
2013-07-12 19:07:22 +02:00
Karsten Hopp
b8f036d16c
Fix timeout option when used with SSL
...
Previously wget didn't honor the --timeout option if the remote host did
not answer SSL handshake
Signed-off-by: Tomas Hozza <thozza@redhat.com>
2013-07-12 11:43:41 +02:00
Tim Ruehsen
91f0f99e9a
gnutls: honor connect timeout
2013-07-12 00:07:05 +02:00
Tomas Hozza
c78caecbb4
Document missing options and fix --preserve-permissions
...
Added documentation for --regex-type and --preserve-permissions
options.
Fixed --preserve-permissions to work properly also if downloading a
single file from FTP.
Signed-off-by: Tomas Hozza <thozza@redhat.com>
2013-07-11 22:01:43 +02:00
Tomas Hozza
8760123cee
Set sock variable to -1 if no persistent conn exists
...
Wget should set sock variable to -1 if no persistent
connection exists. Function persistent_available_p()
tests persistent connection but if test_socket_open()
fails it closes the socket but will not set sock variable
to -1. After returning from persistent_available_p()
it is possible that sock has still value of already
closed connection.
Signed-off-by: Tomas Hozza <thozza@redhat.com>
2013-07-11 20:50:42 +02:00
Tomas Hozza
c9c0e4c641
Fix using deadcode and possible use of NULL pointer
...
Fix for deadcode in unique_create() so that "opened_name" parameter is
always initialized to a valid string or NULL when returning from
function.
Fix for redirect_output() so that "logfile" is not blindly used in
fprintf() call and checked if it is not NULL.
Signed-off-by: Tomas Hozza <thozza@redhat.com>
2013-07-10 23:04:25 +02:00
Darshit Shah
9e0d87a248
Download response body data for all requests
2013-06-27 20:07:47 +02:00
Ciprian Vieru
6a2d67b583
Add HTML5 media tags to list of known tags and attributes
2013-06-25 23:49:03 +02:00
Ángel González
49f6d0ded8
Cleanup cmd_string_uppercase
2013-06-22 14:06:06 +02:00
Tim Ruehsen
4df7703d62
fix segfault in ftp.c (ftp_loop_internal)
2013-06-22 13:22:24 +02:00
Ray Satiro
9d35f87218
MinGW compatibility fixes
2013-06-16 22:55:38 +02:00
Darshit Shah
90896e3314
Follow RFC 2616 and httpbis specifications when handling redirects
2013-06-16 22:31:16 +02:00
Bykov Aleksey
5ce9389384
Removing "Could not open temporary WARC manifest file." issue in Win builds
2013-06-04 20:36:42 +02:00
Tim Ruehsen
099d8ee3da
replaced read_whole_file() by getline()
2013-05-17 20:19:02 +02:00
Tim Ruehsen
e976d4f3dc
src/utils.c cleanup
2013-05-12 21:41:07 +02:00
Dmitry Bogatov
027d9f385d
Non-functionality improvement in src/http.c.
...
Pulled `request_set_method` functionality into `request_new`
to ensure these functions always called in right order.
2013-05-12 19:28:22 +02:00
mancha
ae80fd2ec7
gnutls: do not abort on non-fatal alerts during handshake
...
Signed-off-by: mancha <mancha1@hush.com>
2013-05-06 22:52:13 +02:00
Darshit Shah
277785fa2a
Fix issue when converting string to uppercase
2013-05-05 01:34:47 +02:00
Gijs van Tulder
52dd6da6e0
Keep the same method on a 307 redirect
2013-05-02 23:04:31 +02:00
Giuseppe Scrivano
550457bcad
Fix crash when receiving a HTTP redirect upon a POST request
...
The crash was introduced by a recent commit.
2013-05-02 21:57:20 +02:00
Darshit Shah
54fd8de415
Improve output in case of --post-{file,body} commands.
2013-04-24 21:08:33 +02:00
Gijs van Tulder
81409cb9c8
Remove old reference to opt.post_data.
2013-04-23 22:02:29 +02:00
Gijs van Tulder
7df4b05f0b
warc: Follow the guidelines for metadata records
...
Do not use the same UUID for the manifest and arguments records.
Write the manifest as a metadata record, not as a resource.
2013-04-14 14:01:01 +02:00
Darshit Shah
6c30653a1a
Add a generic --method command to set a method in HTTP Requests.
...
Add supplementary --body-data and --body-file commands to send BODY Data.
Signed-off-by: Darshit Shah <darnir@gmail.com>
2013-04-14 12:57:58 +02:00
Gijs van Tulder
edbeaa0c4e
warc: correctly write the field length in the skip length field
2013-04-06 20:57:47 +02:00
Darshit Shah
50238e49b9
Make wget abort if --post-file does not exist
...
Signed-off-by: Darshit Shah <darnir@gmail.com>
2013-03-14 21:19:13 +01:00