提交 3c4b284a 编写于 作者: G Gines Hidalgo

OpenCV updated to 4.5 from 4.2

Signed-off-by: NGines Hidalgo <gineshidalgo99@gmail.com>
上级 8ca5c1d9
......@@ -3,22 +3,22 @@ Asio:
- Link: https://think-async.com/Asio/Download
Eigen:
- Version 3.3.4 (15.06.2017)
- Version 3.3.4
- Link: http://eigen.tuxfamily.org/index.php?title=Main_Page
Unix:
- Caffe:
- Version 1.0.0, extracted from GitHub on 04/26/2018 from the current master branch.
- Version 1.0.0, extracted from GitHub from its master branch.
- Link: https://github.com/BVLC/caffe
- GitHub SHA: 864520713a4c5ffae7382ced5d34e4cadc608473
- Spinnaker:
- Tested on Spinnaker 1.13.0.31 SDK - Linux Ubuntu 16.04 (64-bit) 05/25/2018 - 41.580MB.
- Tested on Spinnaker 1.13.0.31 SDK - Linux Ubuntu 16.04 (64-bit) - 05/25/2018 - 41.580MB.
- Prerequisites: https://www.ptgrey.com/tan/10685
Windows:
- Caffe & Caffe dependencies (caffe3rdparty):
- Version 1.0.0, extracted from GitHub on 07/11/2017 from the current master branch.
- Version 1.0.0, extracted from GitHub from its master branch.
- Link: https://github.com/BVLC/caffe/tree/windows
- FreeGLUT (only for the 3-D reconstruction demo):
......@@ -26,7 +26,7 @@ Windows:
- Link: https://www.transmissionzero.co.uk/software/freeglut-devel/
- OpenCV:
- Version 4.2.0, extracted from their oficial website: section `Releases`, subsection `OpenCV – 4.2.0`, `Windows` version.
- Version 4.5.0, extracted from their oficial website: section `Releases`, subsection `OpenCV - 4.5.0`, `Windows` version.
- Link: https://opencv.org/releases/
- Unzip:
......@@ -34,5 +34,5 @@ Windows:
- Link: http://stahlworks.com/dev/?tool=zipunzip
- Wget:
- Version wget-1.19.1-win64.
- Version wget-1.20.3-win64.
- Link: https://eternallybored.org/misc/wget/
......@@ -7,7 +7,7 @@ SET WGET_EXE=wget\wget.exe
:: Download temporary zip
echo ----- Downloading OpenCV -----
SET OPENCV_FOLDER=opencv\
SET ZIP_NAME=opencv_420_v14_15_2020_04_04.zip
SET ZIP_NAME=opencv_450_v15_2020_11_18.zip
SET ZIP_FULL_PATH=%OPENCV_FOLDER%%ZIP_NAME%
%WGET_EXE% -c http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/%ZIP_NAME% -P %OPENCV_FOLDER%
echo:
......
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
......@@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
......@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
<https://www.gnu.org/philosophy/why-not-lgpl.html>.
Version wget-1.19.1-win64 from:
Version wget-1.20.3-win64 from:
- https://eternallybored.org/misc/wget/
<!-- Creator : groff version 1.22.2 -->
<!-- CreationDate: Sat Feb 25 23:28:43 2017 -->
<!-- Creator : groff version 1.22.3 -->
<!-- CreationDate: Sat Apr 6 16:01:09 2019 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
......@@ -40,8 +40,8 @@
</h2>
<p style="margin-left:11%; margin-top: 1em">Wget &minus;
The non&minus;interactive network downloader.</p>
<p style="margin-left:11%; margin-top: 1em">Wget -
The non-interactive network downloader.</p>
<h2>SYNOPSIS
<a name="SYNOPSIS"></a>
......@@ -103,34 +103,34 @@ remember, but take time to type. You may freely mix
different option styles, or specify options after the
command-line arguments. Thus you may write:</p>
<pre style="margin-left:11%; margin-top: 1em"> wget &minus;r &minus;&minus;tries=10 http://fly.srk.fer.hr/ &minus;o log</pre>
<pre style="margin-left:11%; margin-top: 1em"> wget -r --tries=10 http://fly.srk.fer.hr/ -o log</pre>
<p style="margin-left:11%; margin-top: 1em">The space
between the option accepting an argument and the argument
may be omitted. Instead of <b>&minus;o log</b> you can write
<b>&minus;olog</b>.</p>
may be omitted. Instead of <b>-o log</b> you can write
<b>-olog</b>.</p>
<p style="margin-left:11%; margin-top: 1em">You may put
several options that do not require arguments together,
like:</p>
<pre style="margin-left:11%; margin-top: 1em"> wget &minus;drc &lt;URL&gt;</pre>
<pre style="margin-left:11%; margin-top: 1em"> wget -drc &lt;URL&gt;</pre>
<p style="margin-left:11%; margin-top: 1em">This is
completely equivalent to:</p>
<pre style="margin-left:11%; margin-top: 1em"> wget &minus;d &minus;r &minus;c &lt;URL&gt;</pre>
<pre style="margin-left:11%; margin-top: 1em"> wget -d -r -c &lt;URL&gt;</pre>
<p style="margin-left:11%; margin-top: 1em">Since the
options can be specified after the arguments, you may
terminate them with <b>&minus;&minus;</b>. So the following
will try to download <small>URL</small> <b>&minus;x</b>,
terminate them with <b>--</b>. So the following
will try to download <small>URL</small> <b>-x</b>,
reporting failure to <i>log</i>:</p>
<pre style="margin-left:11%; margin-top: 1em"> wget &minus;o log &minus;&minus; &minus;x</pre>
<pre style="margin-left:11%; margin-top: 1em"> wget -o log -- -x</pre>
<p style="margin-left:11%; margin-top: 1em">The options
......@@ -139,46 +139,46 @@ that specifying an empty list clears its value. This can be
useful to clear the <i>.wgetrc</i> settings. For instance,
if your <i>.wgetrc</i> sets
<tt>&quot;exclude_directories&quot;</tt> to
<i>/cgi&minus;bin</i>, the following example will first
<i>/cgi-bin</i>, the following example will first
reset it, and then set it to exclude <i>/~nobody</i> and
<i>/~somebody</i>. You can also clear the lists in
<i>.wgetrc</i>.</p>
<pre style="margin-left:11%; margin-top: 1em"> wget &minus;X &quot; &minus;X /~nobody,/~somebody</pre>
<pre style="margin-left:11%; margin-top: 1em"> wget -X &quot; -X /~nobody,/~somebody</pre>
<p style="margin-left:11%; margin-top: 1em">Most options
that do not accept arguments are <i>boolean</i> options, so
named because their state can be captured with a yes-or-no
(&quot;boolean&quot;) variable. For example,
<b>&minus;&minus;follow&minus;ftp</b> tells Wget to follow
<b>--follow-ftp</b> tells Wget to follow
<small>FTP</small> links from <small>HTML</small> files and,
on the other hand, <b>&minus;&minus;no&minus;glob</b> tells
on the other hand, <b>--no-glob</b> tells
it not to perform file globbing on <small>FTP</small> URLs.
A boolean option is either <i>affirmative</i> or
<i>negative</i> (beginning with <b>&minus;&minus;no</b>).
<i>negative</i> (beginning with <b>--no</b>).
All such options share several properties.</p>
<p style="margin-left:11%; margin-top: 1em">Unless stated
otherwise, it is assumed that the default behavior is the
opposite of what the option accomplishes. For example, the
documented existence of
<b>&minus;&minus;follow&minus;ftp</b> assumes that the
<b>--follow-ftp</b> assumes that the
default is to <i>not</i> follow <small>FTP</small> links
from <small>HTML</small> pages.</p>
<p style="margin-left:11%; margin-top: 1em">Affirmative
options can be negated by prepending the
<b>&minus;&minus;no&minus;</b> to the option name; negative
<b>--no-</b> to the option name; negative
options can be negated by omitting the
<b>&minus;&minus;no&minus;</b> prefix. This might seem
superfluous&minus;&minus;&minus;if the default for an
<b>--no-</b> prefix. This might seem
superfluous---if the default for an
affirmative option is to not do something, then why provide
a way to explicitly turn it off? But the startup file may in
fact change the default. For instance, using
<tt>&quot;follow_ftp = on&quot;</tt> in <i>.wgetrc</i> makes
Wget <i>follow</i> <small>FTP</small> links by default, and
using <b>&minus;&minus;no&minus;follow&minus;ftp</b> is the
using <b>--no-follow-ftp</b> is the
only way to restore the factory default from the command
line.</p>
......@@ -192,13 +192,13 @@ Startup Options</b></p>
<td width="3%">
<p><b>&minus;V</b></p></td>
<p><b>-V</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;version</b></p>
<p style="margin-left:11%;"><b>--version</b></p>
<p style="margin-left:17%;">Display the version of
Wget.</p>
......@@ -210,12 +210,12 @@ Wget.</p>
<td width="3%">
<p><b>&minus;h</b></p></td>
<p><b>-h</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;help</b></p>
<p style="margin-left:11%;"><b>--help</b></p>
<p style="margin-left:17%;">Print a help message describing
all of Wget&rsquo;s command-line options.</p>
......@@ -227,45 +227,45 @@ all of Wget&rsquo;s command-line options.</p>
<td width="3%">
<p><b>&minus;b</b></p></td>
<p><b>-b</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;background</b></p>
<p style="margin-left:11%;"><b>--background</b></p>
<p style="margin-left:17%;">Go to background immediately
after startup. If no output file is specified via the
<b>&minus;o</b>, output is redirected to
<b>-o</b>, output is redirected to
<i>wget-log</i>.</p>
<p style="margin-left:11%;"><b>&minus;e</b> <i>command</i>
<p style="margin-left:11%;"><b>-e</b> <i>command</i>
<b><br>
&minus;&minus;execute</b> <i>command</i></p>
--execute</b> <i>command</i></p>
<p style="margin-left:17%;">Execute <i>command</i> as if it
were a part of <i>.wgetrc</i>. A command thus invoked will
be executed <i>after</i> the commands in <i>.wgetrc</i>,
thus taking precedence over them. If you need to specify
more than one wgetrc command, use multiple instances of
<b>&minus;e</b>.</p>
<b>-e</b>.</p>
<p style="margin-left:11%; margin-top: 1em"><b>Logging and
Input File Options <br>
&minus;o</b> <i>logfile</i> <b><br>
&minus;&minus;output&minus;file=</b><i>logfile</i></p>
-o</b> <i>logfile</i> <b><br>
--output-file=</b><i>logfile</i></p>
<p style="margin-left:17%;">Log all messages to
<i>logfile</i>. The messages are normally reported to
standard error.</p>
<p style="margin-left:11%;"><b>&minus;a</b> <i>logfile</i>
<p style="margin-left:11%;"><b>-a</b> <i>logfile</i>
<b><br>
&minus;&minus;append&minus;output=</b><i>logfile</i></p>
--append-output=</b><i>logfile</i></p>
<p style="margin-left:17%;">Append to <i>logfile</i>. This
is the same as <b>&minus;o</b>, only it appends to
is the same as <b>-o</b>, only it appends to
<i>logfile</i> instead of overwriting the old log file. If
<i>logfile</i> does not exist, a new file is created.</p>
......@@ -276,22 +276,22 @@ is the same as <b>&minus;o</b>, only it appends to
<td width="3%">
<p><b>&minus;d</b></p></td>
<p><b>-d</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;debug</b></p>
<p style="margin-left:11%;"><b>--debug</b></p>
<p style="margin-left:17%;">Turn on debug output, meaning
various information important to the developers of Wget if
it does not work properly. Your system administrator may
have chosen to compile Wget without debug support, in which
case <b>&minus;d</b> will not work. Please note that
case <b>-d</b> will not work. Please note that
compiling with debug support is always
safe&minus;&minus;&minus;Wget compiled with the debug
safe---Wget compiled with the debug
support will <i>not</i> print any debug info unless
requested with <b>&minus;d</b>.</p>
requested with <b>-d</b>.</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
......@@ -300,12 +300,12 @@ requested with <b>&minus;d</b>.</p>
<td width="3%">
<p><b>&minus;q</b></p></td>
<p><b>-q</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;quiet</b></p>
<p style="margin-left:11%;"><b>--quiet</b></p>
<p style="margin-left:17%;">Turn off Wget&rsquo;s
output.</p>
......@@ -317,13 +317,13 @@ output.</p>
<td width="3%">
<p><b>&minus;v</b></p></td>
<p><b>-v</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;verbose</b></p>
<p style="margin-left:11%;"><b>--verbose</b></p>
<p style="margin-left:17%;">Turn on verbose output, with
all the available data. The default output is verbose.</p>
......@@ -335,52 +335,52 @@ all the available data. The default output is verbose.</p>
<td width="4%">
<p><b>&minus;nv</b></p></td>
<p><b>-nv</b></p></td>
<td width="85%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;verbose</b></p>
<p style="margin-left:11%;"><b>--no-verbose</b></p>
<p style="margin-left:17%;">Turn off verbose without being
completely quiet (use <b>&minus;q</b> for that), which means
completely quiet (use <b>-q</b> for that), which means
that error messages and basic information still get
printed.</p>
<p style="margin-left:11%;"><b>&minus;&minus;report&minus;speed=</b><i>type</i></p>
<p style="margin-left:11%;"><b>--report-speed=</b><i>type</i></p>
<p style="margin-left:17%;">Output bandwidth as
<i>type</i>. The only accepted value is <b>bits</b>.</p>
<p style="margin-left:11%;"><b>&minus;i</b> <i>file</i>
<p style="margin-left:11%;"><b>-i</b> <i>file</i>
<b><br>
&minus;&minus;input&minus;file=</b><i>file</i></p>
--input-file=</b><i>file</i></p>
<p style="margin-left:17%;">Read URLs from a local or
external <i>file</i>. If <b>&minus;</b> is specified as
external <i>file</i>. If <b>-</b> is specified as
<i>file</i>, URLs are read from the standard input. (Use
<b>./&minus;</b> to read from a file literally named
<b>&minus;</b>.)</p>
<b>./-</b> to read from a file literally named
<b>-</b>.)</p>
<p style="margin-left:17%; margin-top: 1em">If this
function is used, no URLs need be present on the command
line. If there are URLs both on the command line and in an
input file, those on the command lines will be the first
ones to be retrieved. If
<b>&minus;&minus;force&minus;html</b> is not specified, then
<b>--force-html</b> is not specified, then
<i>file</i> should consist of a series of URLs, one per
line.</p>
<p style="margin-left:17%; margin-top: 1em">However, if you
specify <b>&minus;&minus;force&minus;html</b>, the document
specify <b>--force-html</b>, the document
will be regarded as <b>html</b>. In that case you may have
problems with relative links, which you can solve either by
adding <tt>&quot;&lt;base
href=&quot;</tt><i>url</i><tt>&quot;&gt;&quot;</tt> to the
documents or by specifying
<b>&minus;&minus;base=</b><i>url</i> on the command
<b>--base=</b><i>url</i> on the command
line.</p>
<p style="margin-left:17%; margin-top: 1em">If the
......@@ -391,14 +391,14 @@ matches <b>text/html</b>. Furthermore, the
href if none was specified.</p>
<p style="margin-left:11%;"><b>&minus;&minus;input&minus;metalink=</b><i>file</i></p>
<p style="margin-left:11%;"><b>--input-metalink=</b><i>file</i></p>
<p style="margin-left:17%;">Downloads files covered in
local Metalink <i>file</i>. Metalink version 3 and 4 are
supported.</p>
<p style="margin-left:11%;"><b>&minus;&minus;keep&minus;badhash</b></p>
<p style="margin-left:11%;"><b>--keep-badhash</b></p>
<p style="margin-left:17%;">Keeps downloaded
Metalink&rsquo;s files with a bad hash. It appends .badhash
......@@ -406,7 +406,7 @@ to the name of Metalink&rsquo;s files which have a checksum
mismatch, except without overwriting existing files.</p>
<p style="margin-left:11%;"><b>&minus;&minus;metalink&minus;over&minus;http</b></p>
<p style="margin-left:11%;"><b>--metalink-over-http</b></p>
<p style="margin-left:17%;">Issues <small>HTTP HEAD</small>
request instead of <small>GET</small> and extracts Metalink
......@@ -417,7 +417,7 @@ back to ordinary <small>HTTP</small> download. Enables
download/processing.</p>
<p style="margin-left:11%;"><b>&minus;&minus;metalink&minus;index=</b><i>number</i></p>
<p style="margin-left:11%;"><b>--metalink-index=</b><i>number</i></p>
<p style="margin-left:17%;">Set the Metalink
<b>application/metalink4+xml</b> metaurl ordinal
......@@ -425,17 +425,28 @@ download/processing.</p>
&quot;application/metalink4+xml&quot; available. Specify 0
or <b>inf</b> to choose the first good one. Metaurls, such
as those from a
<b>&minus;&minus;metalink&minus;over&minus;http</b>, may
<b>--metalink-over-http</b>, may
have been sorted by priority key&rsquo;s value; keep this in
mind to choose the right <small>NUMBER.</small></p>
<p style="margin-left:11%;"><b>&minus;&minus;preferred&minus;location</b></p>
<p style="margin-left:11%;"><b>--preferred-location</b></p>
<p style="margin-left:17%;">Set preferred location for
Metalink resources. This has effect if multiple resources
with same priority are available.</p>
<p style="margin-left:11%;"><b>--xattr</b></p>
<p style="margin-left:17%;">Enable use of file
system&rsquo;s extended attributes to save the original
<small>URL</small> and the Referer <small>HTTP</small>
header value if used.</p>
<p style="margin-left:17%; margin-top: 1em">Be aware that
the <small>URL</small> might contain private information
like access tokens or credentials.</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
......@@ -443,13 +454,13 @@ with same priority are available.</p>
<td width="3%">
<p><b>&minus;F</b></p></td>
<p><b>-F</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;force&minus;html</b></p>
<p style="margin-left:11%;"><b>--force-html</b></p>
<p style="margin-left:17%;">When input is read from a file,
force it to be treated as an <small>HTML</small> file. This
......@@ -457,18 +468,18 @@ enables you to retrieve relative links from existing
<small>HTML</small> files on your local disk, by adding
<tt>&quot;&lt;base
href=&quot;</tt><i>url</i><tt>&quot;&gt;&quot;</tt> to
<small>HTML,</small> or using the <b>&minus;&minus;base</b>
<small>HTML,</small> or using the <b>--base</b>
command-line option.</p>
<p style="margin-left:11%;"><b>&minus;B</b>
<p style="margin-left:11%;"><b>-B</b>
<i><small>URL</small></i> <b><br>
&minus;&minus;base=</b> <i><small>URL</small></i></p>
--base=</b> <i><small>URL</small></i></p>
<p style="margin-left:17%;">Resolves relative links using
<i><small>URL</small></i> as the point of reference, when
reading links from an <small>HTML</small> file specified via
the <b>&minus;i</b>/<b>&minus;&minus;input&minus;file</b>
option (together with <b>&minus;&minus;force&minus;html</b>,
the <b>-i</b>/<b>--input-file</b>
option (together with <b>--force-html</b>,
or when the input file was fetched remotely from a server
describing it as <small>HTML</small> ). This is equivalent
to the presence of a <tt>&quot;BASE&quot;</tt> tag in the
......@@ -482,14 +493,18 @@ if you specify <b>http://foo/bar/a.html</b> for
<b>../baz/b.html</b> from the input file, it would be
resolved to <b>http://foo/baz/b.html</b>.</p>
<p style="margin-left:11%;"><b>&minus;&minus;config=</b>
<p style="margin-left:11%;"><b>--config=</b>
<i><small>FILE</small></i></p>
<p style="margin-left:17%;">Specify the location of a
startup file you wish to use.</p>
startup file you wish to use instead of the default one(s).
Use --no-config to disable reading of
config files. If both --config and
--no-config are given,
--no-config is ignored.</p>
<p style="margin-left:11%;"><b>&minus;&minus;rejected&minus;log=</b><i>logfile</i></p>
<p style="margin-left:11%;"><b>--rejected-log=</b><i>logfile</i></p>
<p style="margin-left:17%;">Logs all <small>URL</small>
rejections to <i>logfile</i> as comma separated values. The
......@@ -499,7 +514,7 @@ found in.</p>
<p style="margin-left:11%; margin-top: 1em"><b>Download
Options <br>
&minus;&minus;bind&minus;address=</b>
--bind-address=</b>
<i><small>ADDRESS</small></i></p>
<p style="margin-left:17%;">When making client
......@@ -510,20 +525,20 @@ or <small>IP</small> address. This option can be useful if
your machine is bound to multiple IPs.</p>
<p style="margin-left:11%;"><b>&minus;&minus;bind&minus;dns&minus;address=</b>
<p style="margin-left:11%;"><b>--bind-dns-address=</b>
<i><small>ADDRESS</small></i></p>
<p style="margin-left:17%;">[libcares only] This address
overrides the route for <small>DNS</small> requests. If you
ever need to circumvent the standard settings from
/etc/resolv.conf, this option together with
<b>&minus;&minus;dns&minus;servers</b> is your friend.
<b>--dns-servers</b> is your friend.
<i><small>ADDRESS</small></i> must be specified either as
IPv4 or IPv6 address. Wget needs to be built with libcares
for this option to be available.</p>
<p style="margin-left:11%;"><b>&minus;&minus;dns&minus;servers=</b>
<p style="margin-left:11%;"><b>--dns-servers=</b>
<i><small>ADDRESSES</small></i></p>
<p style="margin-left:17%;">[libcares only] The given
......@@ -533,9 +548,9 @@ as configured in /etc/resolv.conf.
IPv4 or IPv6 addresses, comma-separated. Wget needs to be
built with libcares for this option to be available.</p>
<p style="margin-left:11%;"><b>&minus;t</b> <i>number</i>
<p style="margin-left:11%;"><b>-t</b> <i>number</i>
<b><br>
&minus;&minus;tries=</b><i>number</i></p>
--tries=</b><i>number</i></p>
<p style="margin-left:17%;">Set number of tries to
<i>number</i>. Specify 0 or <b>inf</b> for infinite
......@@ -544,37 +559,37 @@ exception of fatal errors like &quot;connection
refused&quot; or &quot;not found&quot; (404), which are not
retried.</p>
<p style="margin-left:11%;"><b>&minus;O</b> <i>file</i>
<p style="margin-left:11%;"><b>-O</b> <i>file</i>
<b><br>
&minus;&minus;output&minus;document=</b><i>file</i></p>
--output-document=</b><i>file</i></p>
<p style="margin-left:17%;">The documents will not be
written to the appropriate files, but all will be
concatenated together and written to <i>file</i>. If
<b>&minus;</b> is used as <i>file</i>, documents will be
<b>-</b> is used as <i>file</i>, documents will be
printed to standard output, disabling link conversion. (Use
<b>./&minus;</b> to print to a file literally named
<b>&minus;</b>.)</p>
<b>./-</b> to print to a file literally named
<b>-</b>.)</p>
<p style="margin-left:17%; margin-top: 1em">Use of
<b>&minus;O</b> is <i>not</i> intended to mean simply
<b>-O</b> is <i>not</i> intended to mean simply
&quot;use the name <i>file</i> instead of the one in the
<small>URL</small> ;&quot; rather, it is analogous to shell
redirection: <b>wget &minus;O file http://foo</b> is
intended to work like <b>wget &minus;O &minus; http://foo
redirection: <b>wget -O file http://foo</b> is
intended to work like <b>wget -O - http://foo
&gt; file</b>; <i>file</i> will be truncated immediately,
and <i>all</i> downloaded content will be written there.</p>
<p style="margin-left:17%; margin-top: 1em">For this
reason, <b>&minus;N</b> (for timestamp-checking) is not
supported in combination with <b>&minus;O</b>: since
reason, <b>-N</b> (for timestamp-checking) is not
supported in combination with <b>-O</b>: since
<i>file</i> is always newly created, it will always have a
very new timestamp. A warning will be issued if this
combination is used.</p>
<p style="margin-left:17%; margin-top: 1em">Similarly,
using <b>&minus;r</b> or <b>&minus;p</b> with
<b>&minus;O</b> may not work as you expect: Wget won&rsquo;t
using <b>-r</b> or <b>-p</b> with
<b>-O</b> may not work as you expect: Wget won&rsquo;t
just download the first file to <i>file</i> and then
download the rest to their normal names: <i>all</i>
downloaded content will be placed in <i>file</i>. This was
......@@ -583,15 +598,15 @@ warning) in 1.11.2, as there are some cases where this
behavior can actually have some use.</p>
<p style="margin-left:17%; margin-top: 1em">A combination
with <b>&minus;nc</b> is only accepted if the given output
with <b>-nc</b> is only accepted if the given output
file does not exist.</p>
<p style="margin-left:17%; margin-top: 1em">Note that a
combination with <b>&minus;k</b> is only permitted when
combination with <b>-k</b> is only permitted when
downloading a single document, as in that case it will just
convert all relative URIs to external ones; <b>&minus;k</b>
convert all relative URIs to external ones; <b>-k</b>
makes no sense for multiple URIs when they&rsquo;re all
being downloaded to a single file; <b>&minus;k</b> can be
being downloaded to a single file; <b>-k</b> can be
used only when the output is a regular file.</p>
<table width="100%" border="0" rules="none" frame="void"
......@@ -601,70 +616,70 @@ used only when the output is a regular file.</p>
<td width="4%">
<p><b>&minus;nc</b></p></td>
<p><b>-nc</b></p></td>
<td width="85%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;clobber</b></p>
<p style="margin-left:11%;"><b>--no-clobber</b></p>
<p style="margin-left:17%;">If a file is downloaded more
than once in the same directory, Wget&rsquo;s behavior
depends on a few options, including <b>&minus;nc</b>. In
depends on a few options, including <b>-nc</b>. In
certain cases, the local file will be <i>clobbered</i>, or
overwritten, upon repeated download. In other cases it will
be preserved.</p>
<p style="margin-left:17%; margin-top: 1em">When running
Wget without <b>&minus;N</b>, <b>&minus;nc</b>,
<b>&minus;r</b>, or <b>&minus;p</b>, downloading the same
Wget without <b>-N</b>, <b>-nc</b>,
<b>-r</b>, or <b>-p</b>, downloading the same
file in the same directory will result in the original copy
of <i>file</i> being preserved and the second copy being
named <i>file</i><b>.1</b>. If that file is downloaded yet
again, the third copy will be named <i>file</i><b>.2</b>,
and so on. (This is also the behavior with <b>&minus;nd</b>,
even if <b>&minus;r</b> or <b>&minus;p</b> are in effect.)
When <b>&minus;nc</b> is specified, this behavior is
and so on. (This is also the behavior with <b>-nd</b>,
even if <b>-r</b> or <b>-p</b> are in effect.)
When <b>-nc</b> is specified, this behavior is
suppressed, and Wget will refuse to download newer copies of
<i>file</i>. Therefore,
&quot;<tt>&quot;no&minus;clobber&quot;</tt>&quot; is
&quot;<tt>&quot;no-clobber&quot;</tt>&quot; is
actually a misnomer in this
mode&minus;&minus;&minus;it&rsquo;s not clobbering
mode---it&rsquo;s not clobbering
that&rsquo;s prevented (as the numeric suffixes were already
preventing clobbering), but rather the multiple version
saving that&rsquo;s prevented.</p>
<p style="margin-left:17%; margin-top: 1em">When running
Wget with <b>&minus;r</b> or <b>&minus;p</b>, but without
<b>&minus;N</b>, <b>&minus;nd</b>, or <b>&minus;nc</b>,
Wget with <b>-r</b> or <b>-p</b>, but without
<b>-N</b>, <b>-nd</b>, or <b>-nc</b>,
re-downloading a file will result in the new copy simply
overwriting the old. Adding <b>&minus;nc</b> will prevent
overwriting the old. Adding <b>-nc</b> will prevent
this behavior, instead causing the original version to be
preserved and any newer copies on the server to be
ignored.</p>
<p style="margin-left:17%; margin-top: 1em">When running
Wget with <b>&minus;N</b>, with or without <b>&minus;r</b>
or <b>&minus;p</b>, the decision as to whether or not to
Wget with <b>-N</b>, with or without <b>-r</b>
or <b>-p</b>, the decision as to whether or not to
download a newer copy of a file depends on the local and
remote timestamp and size of the file. <b>&minus;nc</b> may
not be specified at the same time as <b>&minus;N</b>.</p>
remote timestamp and size of the file. <b>-nc</b> may
not be specified at the same time as <b>-N</b>.</p>
<p style="margin-left:17%; margin-top: 1em">A combination
with
<b>&minus;O</b>/<b>&minus;&minus;output&minus;document</b>
<b>-O</b>/<b>--output-document</b>
is only accepted if the given output file does not
exist.</p>
<p style="margin-left:17%; margin-top: 1em">Note that when
<b>&minus;nc</b> is specified, files with the suffixes
<b>-nc</b> is specified, files with the suffixes
<b>.html</b> or <b>.htm</b> will be loaded from the local
disk and parsed as if they had been retrieved from the
Web.</p>
<p style="margin-left:11%;"><b>&minus;&minus;backups=</b><i>backups</i></p>
<p style="margin-left:11%;"><b>--backups=</b><i>backups</i></p>
<p style="margin-left:17%;">Before (over)writing a file,
back up an existing file by adding a <b>.1</b> suffix
......@@ -672,6 +687,15 @@ back up an existing file by adding a <b>.1</b> suffix
backup files are rotated to <b>.2</b>, <b>.3</b>, and so on,
up to <i>backups</i> (and lost beyond that).</p>
<p style="margin-left:11%;"><b>--no-netrc</b></p>
<p style="margin-left:17%;">Do not try to obtain
credentials from <i>.netrc</i> file. By default
<i>.netrc</i> file is searched for credentials in case none
have been passed on command line and authentication is
required.</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
......@@ -679,24 +703,24 @@ up to <i>backups</i> (and lost beyond that).</p>
<td width="3%">
<p><b>&minus;c</b></p></td>
<p><b>-c</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;continue</b></p>
<p style="margin-left:11%;"><b>--continue</b></p>
<p style="margin-left:17%;">Continue getting a
partially-downloaded file. This is useful when you want to
finish up a download started by a previous instance of Wget,
or by another program. For instance:</p>
<pre style="margin-left:17%; margin-top: 1em"> wget &minus;c ftp://sunsite.doc.ic.ac.uk/ls&minus;lR.Z</pre>
<pre style="margin-left:17%; margin-top: 1em"> wget -c ftp://sunsite.doc.ic.ac.uk/ls-lR.Z</pre>
<p style="margin-left:17%; margin-top: 1em">If there is a
file named <i>ls&minus;lR.Z</i> in the current directory,
file named <i>ls-lR.Z</i> in the current directory,
Wget will assume that it is the first portion of the remote
file, and will ask the server to continue the retrieval from
an offset equal to the length of the local file.</p>
......@@ -705,40 +729,40 @@ an offset equal to the length of the local file.</p>
don&rsquo;t need to specify this option if you just want the
current invocation of Wget to retry downloading a file
should the connection be lost midway through. This is the
default behavior. <b>&minus;c</b> only affects resumption of
default behavior. <b>-c</b> only affects resumption of
downloads started <i>prior</i> to this invocation of Wget,
and whose local files are still sitting around.</p>
<p style="margin-left:17%; margin-top: 1em">Without
<b>&minus;c</b>, the previous example would just download
the remote file to <i>ls&minus;lR.Z.1</i>, leaving the
truncated <i>ls&minus;lR.Z</i> file alone.</p>
<b>-c</b>, the previous example would just download
the remote file to <i>ls-lR.Z.1</i>, leaving the
truncated <i>ls-lR.Z</i> file alone.</p>
<p style="margin-left:17%; margin-top: 1em">If you use
<b>&minus;c</b> on a non-empty file, and the server does not
<b>-c</b> on a non-empty file, and the server does not
support continued downloading, Wget will restart the
download from scratch and overwrite the existing file
entirely.</p>
<p style="margin-left:17%; margin-top: 1em">Beginning with
Wget 1.7, if you use <b>&minus;c</b> on a file which is of
Wget 1.7, if you use <b>-c</b> on a file which is of
equal size as the one on the server, Wget will refuse to
download the file and print an explanatory message. The same
happens when the file is smaller on the server than locally
(presumably because it was changed on the server since your
last download attempt)&minus;&minus;&minus;because
last download attempt)---because
&quot;continuing&quot; is not meaningful, no download
occurs.</p>
<p style="margin-left:17%; margin-top: 1em">On the other
side of the coin, while using <b>&minus;c</b>, any file
side of the coin, while using <b>-c</b>, any file
that&rsquo;s bigger on the server than locally will be
considered an incomplete download and only
<tt>&quot;(length(remote) &minus; length(local))&quot;</tt>
<tt>&quot;(length(remote) - length(local))&quot;</tt>
bytes will be downloaded and tacked onto the end of the
local file. This behavior can be desirable in certain
cases&minus;&minus;&minus;for instance, you can use <b>wget
&minus;c</b> to download just the new portion that&rsquo;s
cases---for instance, you can use <b>wget
-c</b> to download just the new portion that&rsquo;s
been appended to a data collection or log file.</p>
<p style="margin-left:17%; margin-top: 1em">However, if the
......@@ -747,25 +771,25 @@ file is bigger on the server because it&rsquo;s been
you&rsquo;ll end up with a garbled file. Wget has no way of
verifying that the local file is really a valid prefix of
the remote file. You need to be especially careful of this
when using <b>&minus;c</b> in conjunction with
<b>&minus;r</b>, since every file will be considered as an
when using <b>-c</b> in conjunction with
<b>-r</b>, since every file will be considered as an
&quot;incomplete download&quot; candidate.</p>
<p style="margin-left:17%; margin-top: 1em">Another
instance where you&rsquo;ll get a garbled file if you try to
use <b>&minus;c</b> is if you have a lame
use <b>-c</b> is if you have a lame
<small>HTTP</small> proxy that inserts a &quot;transfer
interrupted&quot; string into the local file. In the future
a &quot;rollback&quot; option may be added to deal with this
case.</p>
<p style="margin-left:17%; margin-top: 1em">Note that
<b>&minus;c</b> only works with <small>FTP</small> servers
<b>-c</b> only works with <small>FTP</small> servers
and with <small>HTTP</small> servers that support the
<tt>&quot;Range&quot;</tt> header.</p>
<p style="margin-left:11%;"><b>&minus;&minus;start&minus;pos=</b>
<p style="margin-left:11%;"><b>--start-pos=</b>
<i><small>OFFSET</small></i></p>
<p style="margin-left:17%;">Start downloading at zero-based
......@@ -775,20 +799,20 @@ suffix, or megabytes with the &lsquo;m&rsquo; suffix,
etc.</p>
<p style="margin-left:17%; margin-top: 1em"><b>&minus;&minus;start&minus;pos</b>
has higher precedence over <b>&minus;&minus;continue</b>.
When <b>&minus;&minus;start&minus;pos</b> and
<b>&minus;&minus;continue</b> are both specified, wget will
<p style="margin-left:17%; margin-top: 1em"><b>--start-pos</b>
has higher precedence over <b>--continue</b>.
When <b>--start-pos</b> and
<b>--continue</b> are both specified, wget will
emit a warning then proceed as if
<b>&minus;&minus;continue</b> was absent.</p>
<b>--continue</b> was absent.</p>
<p style="margin-left:17%; margin-top: 1em">Server support
for continued download is required, otherwise
<b>&minus;&minus;start&minus;pos</b> cannot help. See
<b>&minus;c</b> for details.</p>
<b>--start-pos</b> cannot help. See
<b>-c</b> for details.</p>
<p style="margin-left:11%;"><b>&minus;&minus;progress=</b><i>type</i></p>
<p style="margin-left:11%;"><b>--progress=</b><i>type</i></p>
<p style="margin-left:17%;">Select the type of the progress
indicator you wish to use. Legal indicators are
......@@ -802,7 +826,7 @@ retrieval. If the output is not a <small>TTY,</small> the
&quot;dot&quot; bar will be used by default.</p>
<p style="margin-left:17%; margin-top: 1em">Use
<b>&minus;&minus;progress=dot</b> to switch to the
<b>--progress=dot</b> to switch to the
&quot;dot&quot; display. It traces the retrieval by printing
dots on the screen, each dot representing a fixed amount of
downloaded data.</p>
......@@ -812,7 +836,7 @@ downloaded data.</p>
parameters vary based on the <i>type</i> selected.
Parameters to <i>type</i> are passed by appending them to
the type sperated by a colon (:) like this:
<b>&minus;&minus;progress=</b><i>type</i><b>:</b><i>parameter1</i><b>:</b><i>parameter2</i>.</p>
<b>--progress=</b><i>type</i><b>:</b><i>parameter1</i><b>:</b><i>parameter2</i>.</p>
<p style="margin-left:17%; margin-top: 1em">When using the
dotted retrieval, you may set the <i>style</i> by specifying
......@@ -821,36 +845,36 @@ different meaning to one dot. With the
<tt>&quot;default&quot;</tt> style each dot represents 1K,
there are ten dots in a cluster and 50 dots in a line. The
<tt>&quot;binary&quot;</tt> style has a more
&quot;computer&quot;&minus;like
orientation&minus;&minus;&minus;8K dots, 16&minus;dots
&quot;computer&quot;-like
orientation---8K dots, 16-dots
clusters and 48 dots per line (which makes for 384K lines).
The <tt>&quot;mega&quot;</tt> style is suitable for
downloading large files&minus;&minus;&minus;each dot
downloading large files---each dot
represents 64K retrieved, there are eight dots in a cluster,
and 48 dots on each line (so each line contains 3M). If
<tt>&quot;mega&quot;</tt> is not enough then you can use the
<tt>&quot;giga&quot;</tt> style&minus;&minus;&minus;each dot
<tt>&quot;giga&quot;</tt> style---each dot
represents 1M retrieved, there are eight dots in a cluster,
and 32 dots on each line (so each line contains 32M).</p>
<p style="margin-left:17%; margin-top: 1em">With
<b>&minus;&minus;progress=bar</b>, there are currently two
<b>--progress=bar</b>, there are currently two
possible parameters, <i>force</i> and <i>noscroll</i>.</p>
<p style="margin-left:17%; margin-top: 1em">When the output
is not a <small>TTY,</small> the progress bar always falls
back to &quot;dot&quot;, even if
<b>&minus;&minus;progress=bar</b> was passed to Wget during
<b>--progress=bar</b> was passed to Wget during
invocation. This behaviour can be overridden and the
&quot;bar&quot; output forced by using the &quot;force&quot;
parameter as <b>&minus;&minus;progress=bar:force</b>.</p>
parameter as <b>--progress=bar:force</b>.</p>
<p style="margin-left:17%; margin-top: 1em">By default, the
<b>bar</b> style progress bar scroll the name of the file
from left to right for the file being downloaded if the
filename exceeds the maximum length allotted for its
display. In certain cases, such as with
<b>&minus;&minus;progress=bar:force</b>, one may not want
<b>--progress=bar:force</b>, one may not want
the scrolling filename in the progress bar. By passing the
&quot;noscroll&quot; parameter, Wget can be forced to
display as much of the filename as possible without
......@@ -861,10 +885,10 @@ can set the default style using the
<tt>&quot;progress&quot;</tt> command in <i>.wgetrc</i>.
That setting may be overridden from the command line. For
example, to force the bar output without scrolling, use
<b>&minus;&minus;progress=bar:force:noscroll</b>.</p>
<b>--progress=bar:force:noscroll</b>.</p>
<p style="margin-left:11%;"><b>&minus;&minus;show&minus;progress</b></p>
<p style="margin-left:11%;"><b>--show-progress</b></p>
<p style="margin-left:17%;">Force wget to display the
progress bar in any verbosity.</p>
......@@ -873,8 +897,8 @@ progress bar in any verbosity.</p>
wget only displays the progress bar in verbose mode. One may
however, want wget to display the progress bar on screen in
conjunction with any other verbosity modes like
<b>&minus;&minus;no&minus;verbose</b> or
<b>&minus;&minus;quiet</b>. This is often a desired a
<b>--no-verbose</b> or
<b>--quiet</b>. This is often a desired a
property when invoking wget to download several small/large
files. In such a case, wget could simply be invoked with
this parameter to get a much cleaner output on the
......@@ -883,7 +907,7 @@ screen.</p>
<p style="margin-left:17%; margin-top: 1em">This option
will also force the progress bar to be printed to
<i>stderr</i> when used alongside the
<b>&minus;&minus;logfile</b> option.</p>
<b>--output-file</b> option.</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
......@@ -892,26 +916,26 @@ will also force the progress bar to be printed to
<td width="3%">
<p><b>&minus;N</b></p></td>
<p><b>-N</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;timestamping</b></p>
<p style="margin-left:11%;"><b>--timestamping</b></p>
<p style="margin-left:17%;">Turn on time-stamping.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;if&minus;modified&minus;since</b></p>
<p style="margin-left:11%;"><b>--no-if-modified-since</b></p>
<p style="margin-left:17%;">Do not send If-Modified-Since
header in <b>&minus;N</b> mode. Send preliminary
header in <b>-N</b> mode. Send preliminary
<small>HEAD</small> request instead. This has only effect in
<b>&minus;N</b> mode.</p>
<b>-N</b> mode.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;use&minus;server&minus;timestamps</b></p>
<p style="margin-left:11%;"><b>--no-use-server-timestamps</b></p>
<p style="margin-left:17%;">Don&rsquo;t set the local
file&rsquo;s timestamp by the one on the server.</p>
......@@ -919,11 +943,11 @@ file&rsquo;s timestamp by the one on the server.</p>
<p style="margin-left:17%; margin-top: 1em">By default,
when a file is downloaded, its timestamps are set to match
those from the remote file. This allows the use of
<b>&minus;&minus;timestamping</b> on subsequent invocations
<b>--timestamping</b> on subsequent invocations
of wget. However, it is sometimes useful to base the local
file&rsquo;s timestamp on when it was actually downloaded;
for that purpose, the
<b>&minus;&minus;no&minus;use&minus;server&minus;timestamps</b>
<b>--no-use-server-timestamps</b>
option has been provided.</p>
<table width="100%" border="0" rules="none" frame="void"
......@@ -933,48 +957,48 @@ option has been provided.</p>
<td width="3%">
<p><b>&minus;S</b></p></td>
<p><b>-S</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;server&minus;response</b></p>
<p style="margin-left:11%;"><b>--server-response</b></p>
<p style="margin-left:17%;">Print the headers sent by
<small>HTTP</small> servers and responses sent by
<small>FTP</small> servers.</p>
<p style="margin-left:11%;"><b>&minus;&minus;spider</b></p>
<p style="margin-left:11%;"><b>--spider</b></p>
<p style="margin-left:17%;">When invoked with this option,
Wget will behave as a Web <i>spider</i>, which means that it
will not download the pages, just check that they are there.
For example, you can use Wget to check your bookmarks:</p>
<pre style="margin-left:17%; margin-top: 1em"> wget &minus;&minus;spider &minus;&minus;force&minus;html &minus;i bookmarks.html</pre>
<pre style="margin-left:17%; margin-top: 1em"> wget --spider --force-html -i bookmarks.html</pre>
<p style="margin-left:17%; margin-top: 1em">This feature
needs much more work for Wget to get close to the
functionality of real web spiders.</p>
<p style="margin-left:11%;"><b>&minus;T seconds <br>
&minus;&minus;timeout=</b><i>seconds</i></p>
<p style="margin-left:11%;"><b>-T seconds <br>
--timeout=</b><i>seconds</i></p>
<p style="margin-left:17%;">Set the network timeout to
<i>seconds</i> seconds. This is equivalent to specifying
<b>&minus;&minus;dns&minus;timeout</b>,
<b>&minus;&minus;connect&minus;timeout</b>, and
<b>&minus;&minus;read&minus;timeout</b>, all at the same
<b>--dns-timeout</b>,
<b>--connect-timeout</b>, and
<b>--read-timeout</b>, all at the same
time.</p>
<p style="margin-left:17%; margin-top: 1em">When
interacting with the network, Wget can check for timeout and
abort the operation if it takes too long. This prevents
anomalies like hanging reads and infinite connects. The only
timeout enabled by default is a 900&minus;second read
timeout enabled by default is a 900-second read
timeout. Setting a timeout to 0 disables it altogether.
Unless you know what you are doing, it is best not to change
the default timeout settings.</p>
......@@ -987,7 +1011,7 @@ useful for checking server response times or for testing
network latency.</p>
<p style="margin-left:11%;"><b>&minus;&minus;dns&minus;timeout=</b><i>seconds</i></p>
<p style="margin-left:11%;"><b>--dns-timeout=</b><i>seconds</i></p>
<p style="margin-left:17%;">Set the <small>DNS</small>
lookup timeout to <i>seconds</i> seconds. <small>DNS</small>
......@@ -997,7 +1021,7 @@ will fail. By default, there is no timeout on
system libraries.</p>
<p style="margin-left:11%;"><b>&minus;&minus;connect&minus;timeout=</b><i>seconds</i></p>
<p style="margin-left:11%;"><b>--connect-timeout=</b><i>seconds</i></p>
<p style="margin-left:17%;">Set the connect timeout to
<i>seconds</i> seconds. <small>TCP</small> connections that
......@@ -1006,7 +1030,7 @@ is no connect timeout, other than that implemented by system
libraries.</p>
<p style="margin-left:11%;"><b>&minus;&minus;read&minus;timeout=</b><i>seconds</i></p>
<p style="margin-left:11%;"><b>--read-timeout=</b><i>seconds</i></p>
<p style="margin-left:17%;">Set the read (and write)
timeout to <i>seconds</i> seconds. The &quot;time&quot; of
......@@ -1022,13 +1046,13 @@ than this option requires. The default read timeout is 900
seconds.</p>
<p style="margin-left:11%;"><b>&minus;&minus;limit&minus;rate=</b><i>amount</i></p>
<p style="margin-left:11%;"><b>--limit-rate=</b><i>amount</i></p>
<p style="margin-left:17%;">Limit the download speed to
<i>amount</i> bytes per second. Amount may be expressed in
bytes, kilobytes with the <b>k</b> suffix, or megabytes with
the <b>m</b> suffix. For example,
<b>&minus;&minus;limit&minus;rate=20k</b> will limit the
<b>--limit-rate=20k</b> will limit the
retrieval rate to 20KB/s. This is useful when, for whatever
reason, you don&rsquo;t want Wget to consume the entire
available bandwidth.</p>
......@@ -1036,7 +1060,7 @@ available bandwidth.</p>
<p style="margin-left:17%; margin-top: 1em">This option
allows the use of decimal numbers, usually in conjunction
with power suffixes; for example,
<b>&minus;&minus;limit&minus;rate=2.5k</b> is a legal
<b>--limit-rate=2.5k</b> is a legal
value.</p>
<p style="margin-left:17%; margin-top: 1em">Note that Wget
......@@ -1049,9 +1073,9 @@ balance to be achieved, so don&rsquo;t be surprised if
limiting the rate doesn&rsquo;t work well with very small
files.</p>
<p style="margin-left:11%;"><b>&minus;w</b> <i>seconds</i>
<p style="margin-left:11%;"><b>-w</b> <i>seconds</i>
<b><br>
&minus;&minus;wait=</b><i>seconds</i></p>
--wait=</b><i>seconds</i></p>
<p style="margin-left:17%;">Wait the specified number of
seconds between the retrievals. Use of this option is
......@@ -1067,11 +1091,11 @@ destination host is down, so that Wget can wait long enough
to reasonably expect the network error to be fixed before
the retry. The waiting interval specified by this function
is influenced by
<tt>&quot;&minus;&minus;random&minus;wait&quot;</tt>, which
<tt>&quot;--random-wait&quot;</tt>, which
see.</p>
<p style="margin-left:11%;"><b>&minus;&minus;waitretry=</b><i>seconds</i></p>
<p style="margin-left:11%;"><b>--waitretry=</b><i>seconds</i></p>
<p style="margin-left:17%;">If you don&rsquo;t want Wget to
wait between <i>every</i> retrieval, but only between
......@@ -1085,7 +1109,7 @@ the second failure on that file, up to the maximum number of
Wget will assume a value of 10 seconds.</p>
<p style="margin-left:11%;"><b>&minus;&minus;random&minus;wait</b></p>
<p style="margin-left:11%;"><b>--random-wait</b></p>
<p style="margin-left:17%;">Some web sites may perform log
analysis to identify retrieval programs such as Wget by
......@@ -1093,7 +1117,7 @@ looking for statistically significant similarities in the
time between requests. This option causes the time between
requests to vary between 0.5 and 1.5 * <i>wait</i> seconds,
where <i>wait</i> was specified using the
<b>&minus;&minus;wait</b> option, in order to mask
<b>--wait</b> option, in order to mask
Wget&rsquo;s presence from such analysis.</p>
<p style="margin-left:17%; margin-top: 1em">A 2001 article
......@@ -1104,20 +1128,20 @@ address level to ensure automated retrieval programs were
blocked despite changing DHCP-supplied addresses.</p>
<p style="margin-left:17%; margin-top: 1em">The
<b>&minus;&minus;random&minus;wait</b> option was inspired
<b>--random-wait</b> option was inspired
by this ill-advised recommendation to block many unrelated
users from a web site due to the actions of one.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;proxy</b></p>
<p style="margin-left:11%;"><b>--no-proxy</b></p>
<p style="margin-left:17%;">Don&rsquo;t use proxies, even
if the appropriate <tt>*_proxy</tt> environment variable is
defined.</p>
<p style="margin-left:11%;"><b>&minus;Q</b> <i>quota</i>
<p style="margin-left:11%;"><b>-Q</b> <i>quota</i>
<b><br>
&minus;&minus;quota=</b><i>quota</i></p>
--quota=</b><i>quota</i></p>
<p style="margin-left:17%;">Specify download quota for
automatic retrievals. The value can be specified in bytes
......@@ -1126,21 +1150,21 @@ automatic retrievals. The value can be specified in bytes
<p style="margin-left:17%; margin-top: 1em">Note that quota
will never affect downloading a single file. So if you
specify <b>wget &minus;Q10k
https://example.com/ls&minus;lR.gz</b>, all of the
<i>ls&minus;lR.gz</i> will be downloaded. The same goes even
specify <b>wget -Q10k
https://example.com/ls-lR.gz</b>, all of the
<i>ls-lR.gz</i> will be downloaded. The same goes even
when several URLs are specified on the command-line.
However, quota is respected when retrieving either
recursively, or from an input file. Thus you may safely type
<b>wget &minus;Q2m &minus;i
sites</b>&minus;&minus;&minus;download will be aborted when
<b>wget -Q2m -i
sites</b>---download will be aborted when
the quota is exceeded.</p>
<p style="margin-left:17%; margin-top: 1em">Setting quota
to 0 or to <b>inf</b> unlimits the download quota.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;dns&minus;cache</b></p>
<p style="margin-left:11%;"><b>--no-dns-cache</b></p>
<p style="margin-left:17%;">Turn off caching of
<small>DNS</small> lookups. Normally, Wget remembers the
......@@ -1168,7 +1192,7 @@ don&rsquo;t understand exactly what this option does, you
probably won&rsquo;t need it.</p>
<p style="margin-left:11%;"><b>&minus;&minus;restrict&minus;file&minus;names=</b><i>modes</i></p>
<p style="margin-left:11%;"><b>--restrict-file-names=</b><i>modes</i></p>
<p style="margin-left:17%;">Change which characters found
in remote URLs must be escaped during generation of local
......@@ -1177,7 +1201,7 @@ option are escaped, i.e. replaced with <b>%HH</b>, where
<b><small>HH</small></b> is the hexadecimal number that
corresponds to the restricted character. This option may
also be used to force all alphabetical cases to be either
lower&minus; or uppercase.</p>
lower- or uppercase.</p>
<p style="margin-left:17%; margin-top: 1em">By default,
Wget escapes the characters that are not valid or safe as
......@@ -1198,20 +1222,20 @@ are mutually exclusive (one will override the other), as are
<b>lowercase</b> and <b>uppercase</b>. Those last are
special cases, as they do not change the set of characters
that would be escaped, but rather force local file paths to
be converted either to lower&minus; or uppercase.</p>
be converted either to lower- or uppercase.</p>
<p style="margin-left:17%; margin-top: 1em">When
&quot;unix&quot; is specified, Wget escapes the character
<b>/</b> and the control characters in the ranges
0&minus;&minus;31 and 128&minus;&minus;159. This is the
0--31 and 128--159. This is the
default on Unix-like operating systems.</p>
<p style="margin-left:17%; margin-top: 1em">When
&quot;windows&quot; is given, Wget escapes the characters
<b>\</b>, <b>|</b>, <b>/</b>, <b>:</b>, <b>?</b>,
<b>&quot;</b>, <b>*</b>, <b>&lt;</b>, <b>&gt;</b>, and the
control characters in the ranges 0&minus;&minus;31 and
128&minus;&minus;159. In addition to this, Wget in Windows
control characters in the ranges 0--31 and
128--159. In addition to this, Wget in Windows
mode uses <b>+</b> instead of <b>:</b> to separate host and
port in local file names, and uses <b>@</b> instead of
<b>?</b> to separate the query portion of the file name from
......@@ -1225,10 +1249,10 @@ mode. This mode is the default on Windows.</p>
<b>nocontrol</b>, then the escaping of the control
characters is also switched off. This option may make sense
when you are downloading URLs whose names contain
<small>UTF&minus;8</small> characters, on a system which can
save and display filenames in <small>UTF&minus;8</small>
<small>UTF-8</small> characters, on a system which can
save and display filenames in <small>UTF-8</small>
(some possible byte values used in
<small>UTF&minus;8</small> byte sequences fall in the range
<small>UTF-8</small> byte sequences fall in the range
of values designated by Wget as &quot;controls&quot;).</p>
<p style="margin-left:17%; margin-top: 1em">The
......@@ -1245,13 +1269,13 @@ not match the one used locally.</p>
<td width="3%">
<p><b>&minus;4</b></p></td>
<p><b>-4</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;inet4&minus;only</b></p>
<p style="margin-left:11%;"><b>--inet4-only</b></p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
......@@ -1260,44 +1284,44 @@ not match the one used locally.</p>
<td width="3%">
<p><b>&minus;6</b></p></td>
<p><b>-6</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;inet6&minus;only</b></p>
<p style="margin-left:11%;"><b>--inet6-only</b></p>
<p style="margin-left:17%;">Force connecting to IPv4 or
IPv6 addresses. With <b>&minus;&minus;inet4&minus;only</b>
or <b>&minus;4</b>, Wget will only connect to IPv4 hosts,
IPv6 addresses. With <b>--inet4-only</b>
or <b>-4</b>, Wget will only connect to IPv4 hosts,
ignoring <small>AAAA</small> records in <small>DNS,</small>
and refusing to connect to IPv6 addresses specified in URLs.
Conversely, with <b>&minus;&minus;inet6&minus;only</b> or
<b>&minus;6</b>, Wget will only connect to IPv6 hosts and
Conversely, with <b>--inet6-only</b> or
<b>-6</b>, Wget will only connect to IPv6 hosts and
ignore A records and IPv4 addresses.</p>
<p style="margin-left:17%; margin-top: 1em">Neither options
should be needed normally. By default, an IPv6&minus;aware
should be needed normally. By default, an IPv6-aware
Wget will use the address family specified by the
host&rsquo;s <small>DNS</small> record. If the
<small>DNS</small> responds with both IPv4 and IPv6
addresses, Wget will try them in sequence until it finds one
it can connect to. (Also see
<tt>&quot;&minus;&minus;prefer&minus;family&quot;</tt>
<tt>&quot;--prefer-family&quot;</tt>
option described below.)</p>
<p style="margin-left:17%; margin-top: 1em">These options
can be used to deliberately force the use of IPv4 or IPv6
address families on dual family systems, usually to aid
debugging or to deal with broken network configuration. Only
one of <b>&minus;&minus;inet6&minus;only</b> and
<b>&minus;&minus;inet4&minus;only</b> may be specified at
one of <b>--inet6-only</b> and
<b>--inet4-only</b> may be specified at
the same time. Neither option is available in Wget compiled
without IPv6 support.</p>
<p style="margin-left:11%;"><b>&minus;&minus;prefer&minus;family=none/IPv4/IPv6</b></p>
<p style="margin-left:11%;"><b>--prefer-family=none/IPv4/IPv6</b></p>
<p style="margin-left:17%;">When given a choice of several
addresses, connect to the addresses with specified address
......@@ -1317,17 +1341,17 @@ IPv6 address is used first; if the specified value is
<small>DNS</small> is used without change.</p>
<p style="margin-left:17%; margin-top: 1em">Unlike
<b>&minus;4</b> and <b>&minus;6</b>, this option
<b>-4</b> and <b>-6</b>, this option
doesn&rsquo;t inhibit access to any address family, it only
changes the <i>order</i> in which the addresses are
accessed. Also note that the reordering performed by this
option is <i>stable</i>&minus;&minus;&minus;it doesn&rsquo;t
option is <i>stable</i>---it doesn&rsquo;t
affect order of addresses of the same family. That is, the
relative order of all IPv4 addresses and of all IPv6
addresses remains intact in all cases.</p>
<p style="margin-left:11%;"><b>&minus;&minus;retry&minus;connrefused</b></p>
<p style="margin-left:11%;"><b>--retry-connrefused</b></p>
<p style="margin-left:17%;">Consider &quot;connection
refused&quot; a transient error and try again. Normally Wget
......@@ -1339,31 +1363,31 @@ sites whose servers tend to disappear for short periods of
time.</p>
<p style="margin-left:11%;"><b>&minus;&minus;user=</b><i>user</i>
<p style="margin-left:11%;"><b>--user=</b><i>user</i>
<b><br>
&minus;&minus;password=</b><i>password</i></p>
--password=</b><i>password</i></p>
<p style="margin-left:17%;">Specify the username
<i>user</i> and password <i>password</i> for both
<small>FTP</small> and <small>HTTP</small> file retrieval.
These parameters can be overridden using the
<b>&minus;&minus;ftp&minus;user</b> and
<b>&minus;&minus;ftp&minus;password</b> options for
<b>--ftp-user</b> and
<b>--ftp-password</b> options for
<small>FTP</small> connections and the
<b>&minus;&minus;http&minus;user</b> and
<b>&minus;&minus;http&minus;password</b> options for
<b>--http-user</b> and
<b>--http-password</b> options for
<small>HTTP</small> connections.</p>
<p style="margin-left:11%;"><b>&minus;&minus;ask&minus;password</b></p>
<p style="margin-left:11%;"><b>--ask-password</b></p>
<p style="margin-left:17%;">Prompt for a password for each
connection established. Cannot be specified when
<b>&minus;&minus;password</b> is being used, because they
<b>--password</b> is being used, because they
are mutually exclusive.</p>
<p style="margin-left:11%;"><b>&minus;&minus;use&minus;askpass=</b><i>command</i></p>
<p style="margin-left:11%;"><b>--use-askpass=</b><i>command</i></p>
<p style="margin-left:17%;">Prompt for a user and password
using the specified command. If no command is specified then
......@@ -1378,11 +1402,11 @@ default command for use-askpass in the <i>.wgetrc</i>. That
setting may be overridden from the command line.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;iri</b></p>
<p style="margin-left:11%;"><b>--no-iri</b></p>
<p style="margin-left:17%;">Turn off internationalized
<small>URI</small> ( <small>IRI</small> ) support. Use
<b>&minus;&minus;iri</b> to turn it on. <small>IRI</small>
<b>--iri</b> to turn it on. <small>IRI</small>
support is activated by default.</p>
<p style="margin-left:17%; margin-top: 1em">You can set the
......@@ -1391,12 +1415,12 @@ default state of <small>IRI</small> support using the
setting may be overridden from the command line.</p>
<p style="margin-left:11%;"><b>&minus;&minus;local&minus;encoding=</b><i>encoding</i></p>
<p style="margin-left:11%;"><b>--local-encoding=</b><i>encoding</i></p>
<p style="margin-left:17%;">Force Wget to use
<i>encoding</i> as the default system encoding. That affects
how Wget converts URLs specified as arguments from locale to
<small>UTF&minus;8</small> for <small>IRI</small>
<small>UTF-8</small> for <small>IRI</small>
support.</p>
<p style="margin-left:17%; margin-top: 1em">Wget use the
......@@ -1411,20 +1435,20 @@ default local encoding using the
command line.</p>
<p style="margin-left:11%;"><b>&minus;&minus;remote&minus;encoding=</b><i>encoding</i></p>
<p style="margin-left:11%;"><b>--remote-encoding=</b><i>encoding</i></p>
<p style="margin-left:17%;">Force Wget to use
<i>encoding</i> as the default remote server encoding. That
affects how Wget converts URIs found in files from remote
encoding to <small>UTF&minus;8</small> during a recursive
encoding to <small>UTF-8</small> during a recursive
fetch. This options is only useful for <small>IRI</small>
support, for the interpretation of non-ASCII characters.</p>
<p style="margin-left:17%; margin-top: 1em">For
<small>HTTP,</small> remote encoding can be found in
<small>HTTP</small> <tt>&quot;Content&minus;Type&quot;</tt>
<small>HTTP</small> <tt>&quot;Content-Type&quot;</tt>
header and in <small>HTML</small>
<tt>&quot;Content&minus;Type http&minus;equiv&quot;</tt>
<tt>&quot;Content-Type http-equiv&quot;</tt>
meta tag.</p>
<p style="margin-left:17%; margin-top: 1em">You can set the
......@@ -1434,7 +1458,7 @@ default encoding using the
command line.</p>
<p style="margin-left:11%;"><b>&minus;&minus;unlink</b></p>
<p style="margin-left:11%;"><b>--unlink</b></p>
<p style="margin-left:17%;">Force Wget to unlink file
instead of clobbering existing file. This option is useful
......@@ -1450,13 +1474,13 @@ Options</b></p>
<td width="4%">
<p><b>&minus;nd</b></p></td>
<p><b>-nd</b></p></td>
<td width="85%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;directories</b></p>
<p style="margin-left:11%;"><b>--no-directories</b></p>
<p style="margin-left:17%;">Do not create a hierarchy of
directories when retrieving recursively. With this option
......@@ -1471,18 +1495,18 @@ once, the filenames will get extensions <b>.n</b>).</p>
<td width="3%">
<p><b>&minus;x</b></p></td>
<p><b>-x</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;force&minus;directories</b></p>
<p style="margin-left:11%;"><b>--force-directories</b></p>
<p style="margin-left:17%;">The opposite of
<b>&minus;nd</b>&minus;&minus;&minus;create a hierarchy of
<b>-nd</b>---create a hierarchy of
directories, even if one would not have been created
otherwise. E.g. <b>wget &minus;x
otherwise. E.g. <b>wget -x
http://fly.srk.fer.hr/robots.txt</b> will save the
downloaded file to <i>fly.srk.fer.hr/robots.txt</i>.</p>
......@@ -1493,32 +1517,32 @@ downloaded file to <i>fly.srk.fer.hr/robots.txt</i>.</p>
<td width="4%">
<p><b>&minus;nH</b></p></td>
<p><b>-nH</b></p></td>
<td width="85%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;host&minus;directories</b></p>
<p style="margin-left:11%;"><b>--no-host-directories</b></p>
<p style="margin-left:17%;">Disable generation of
host-prefixed directories. By default, invoking Wget with
<b>&minus;r http://fly.srk.fer.hr/</b> will create a
<b>-r http://fly.srk.fer.hr/</b> will create a
structure of directories beginning with
<i>fly.srk.fer.hr/</i>. This option disables such
behavior.</p>
<p style="margin-left:11%;"><b>&minus;&minus;protocol&minus;directories</b></p>
<p style="margin-left:11%;"><b>--protocol-directories</b></p>
<p style="margin-left:17%;">Use the protocol name as a
directory component of local file names. For example, with
this option, <b>wget &minus;r http://</b><i>host</i> will
this option, <b>wget -r http://</b><i>host</i> will
save to <b>http/</b><i>host</i><b>/...</b> rather than just
to <i>host</i><b>/...</b>.</p>
<p style="margin-left:11%;"><b>&minus;&minus;cut&minus;dirs=</b><i>number</i></p>
<p style="margin-left:11%;"><b>--cut-dirs=</b><i>number</i></p>
<p style="margin-left:17%;">Ignore <i>number</i> directory
components. This is useful for getting a fine-grained
......@@ -1528,37 +1552,37 @@ saved.</p>
<p style="margin-left:17%; margin-top: 1em">Take, for
example, the directory at
<b>ftp://ftp.xemacs.org/pub/xemacs/</b>. If you retrieve it
with <b>&minus;r</b>, it will be saved locally under
with <b>-r</b>, it will be saved locally under
<i>ftp.xemacs.org/pub/xemacs/</i>. While the
<b>&minus;nH</b> option can remove the
<b>-nH</b> option can remove the
<i>ftp.xemacs.org/</i> part, you are still stuck with
<i>pub/xemacs</i>. This is where
<b>&minus;&minus;cut&minus;dirs</b> comes in handy; it makes
<b>--cut-dirs</b> comes in handy; it makes
Wget not &quot;see&quot; <i>number</i> remote directory
components. Here are several examples of how
<b>&minus;&minus;cut&minus;dirs</b> option works.</p>
<b>--cut-dirs</b> option works.</p>
<pre style="margin-left:17%; margin-top: 1em"> No options &minus;&gt; ftp.xemacs.org/pub/xemacs/
&minus;nH &minus;&gt; pub/xemacs/
&minus;nH &minus;&minus;cut&minus;dirs=1 &minus;&gt; xemacs/
&minus;nH &minus;&minus;cut&minus;dirs=2 &minus;&gt; .
&minus;&minus;cut&minus;dirs=1 &minus;&gt; ftp.xemacs.org/xemacs/
<pre style="margin-left:17%; margin-top: 1em"> No options -&gt; ftp.xemacs.org/pub/xemacs/
-nH -&gt; pub/xemacs/
-nH --cut-dirs=1 -&gt; xemacs/
-nH --cut-dirs=2 -&gt; .
--cut-dirs=1 -&gt; ftp.xemacs.org/xemacs/
...</pre>
<p style="margin-left:17%; margin-top: 1em">If you just
want to get rid of the directory structure, this option is
similar to a combination of <b>&minus;nd</b> and
<b>&minus;P</b>. However, unlike <b>&minus;nd</b>,
<b>&minus;&minus;cut&minus;dirs</b> does not lose with
subdirectories&minus;&minus;&minus;for instance, with
<b>&minus;nH &minus;&minus;cut&minus;dirs=1</b>, a
similar to a combination of <b>-nd</b> and
<b>-P</b>. However, unlike <b>-nd</b>,
<b>--cut-dirs</b> does not lose with
subdirectories---for instance, with
<b>-nH --cut-dirs=1</b>, a
<i>beta/</i> subdirectory will be placed to
<i>xemacs/beta</i>, as one would expect.</p>
<p style="margin-left:11%;"><b>&minus;P</b> <i>prefix</i>
<p style="margin-left:11%;"><b>-P</b> <i>prefix</i>
<b><br>
&minus;&minus;directory&minus;prefix=</b><i>prefix</i></p>
--directory-prefix=</b><i>prefix</i></p>
<p style="margin-left:17%;">Set directory prefix to
<i>prefix</i>. The <i>directory prefix</i> is the directory
......@@ -1569,7 +1593,7 @@ i.e. the top of the retrieval tree. The default is <b>.</b>
<p style="margin-left:11%; margin-top: 1em"><b><small>HTTP</small>
Options <br>
&minus;&minus;default&minus;page=</b><i>name</i></p>
--default-page=</b><i>name</i></p>
<p style="margin-left:17%;">Use <i>name</i> as the default
file name when it isn&rsquo;t known (i.e., for URLs that end
......@@ -1582,13 +1606,13 @@ in a slash), instead of <i>index.html</i>.</p>
<td width="3%">
<p><b>&minus;E</b></p></td>
<p><b>-E</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;adjust&minus;extension</b></p>
<p style="margin-left:11%;"><b>--adjust-extension</b></p>
<p style="margin-left:17%;">If a file of type
<b>application/xhtml+xml</b> or <b>text/html</b> is
......@@ -1615,19 +1639,26 @@ that the <small>URL</small> produces output of type
1.12, Wget will also ensure that any downloaded files of
type <b>text/css</b> end in the suffix <b>.css</b>, and the
option was renamed from
<b>&minus;&minus;html&minus;extension</b>, to better reflect
<b>--html-extension</b>, to better reflect
its new behavior. The old option name is still acceptable,
but should now be considered deprecated.</p>
<p style="margin-left:17%; margin-top: 1em">As of version
1.19.2, Wget will also ensure that any downloaded files with
a <tt>&quot;Content-Encoding&quot;</tt> of <b>br</b>,
<b>compress</b>, <b>deflate</b> or <b>gzip</b> end in the
suffix <b>.br</b>, <b>.Z</b>, <b>.zlib</b> and <b>.gz</b>
respectively.</p>
<p style="margin-left:17%; margin-top: 1em">At some point
in the future, this option may well be expanded to include
suffixes for other types of content, including content types
that are not parsed by Wget.</p>
<p style="margin-left:11%;"><b>&minus;&minus;http&minus;user=</b><i>user</i>
<p style="margin-left:11%;"><b>--http-user=</b><i>user</i>
<b><br>
&minus;&minus;http&minus;password=</b><i>password</i></p>
--http-password=</b><i>password</i></p>
<p style="margin-left:17%;">Specify the username
<i>user</i> and password <i>password</i> on an
......@@ -1642,16 +1673,16 @@ specify username and password is in the <small>URL</small>
itself. Either method reveals your password to anyone who
bothers to run <tt>&quot;ps&quot;</tt>. To prevent the
passwords from being seen, use the
<b>&minus;&minus;use&minus;askpass</b> or store them in
<b>--use-askpass</b> or store them in
<i>.wgetrc</i> or <i>.netrc</i>, and make sure to protect
those files from other users with
<tt>&quot;chmod&quot;</tt>. If the passwords are really
important, do not leave them lying in those files
either&minus;&minus;&minus;edit the files and delete them
either---edit the files and delete them
after Wget has started the download.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;http&minus;keep&minus;alive</b></p>
<p style="margin-left:11%;"><b>--no-http-keep-alive</b></p>
<p style="margin-left:17%;">Turn off the
&quot;keep-alive&quot; feature for <small>HTTP</small>
......@@ -1668,25 +1699,26 @@ server bug or due to the inability of server-side scripts to
cope with the connections.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;cache</b></p>
<p style="margin-left:11%;"><b>--no-cache</b></p>
<p style="margin-left:17%;">Disable server-side cache. In
this case, Wget will send the remote server an appropriate
directive (<b>Pragma: no-cache</b>) to get the file from the
remote service, rather than returning the cached version.
This is especially useful for retrieving and flushing
out-of-date documents on proxy servers.</p>
this case, Wget will send the remote server appropriate
directives (<b>Cache-Control: no-cache</b> and <b>Pragma:
no-cache</b>) to get the file from the remote service,
rather than returning the cached version. This is especially
useful for retrieving and flushing out-of-date documents on
proxy servers.</p>
<p style="margin-left:17%; margin-top: 1em">Caching is
allowed by default.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;cookies</b></p>
<p style="margin-left:11%;"><b>--no-cookies</b></p>
<p style="margin-left:17%;">Disable the use of cookies.
Cookies are a mechanism for maintaining server-side state.
The server sends the client a cookie using the
<tt>&quot;Set&minus;Cookie&quot;</tt> header, and the client
<tt>&quot;Set-Cookie&quot;</tt> header, and the client
responds with the same cookie upon further requests. Since
cookies allow the server owners to keep track of visitors
and for sites to exchange this information, some consider
......@@ -1694,7 +1726,7 @@ them a breach of privacy. The default is to use cookies;
however, <i>storing</i> cookies is not on by default.</p>
<p style="margin-left:11%;"><b>&minus;&minus;load&minus;cookies</b>
<p style="margin-left:11%;"><b>--load-cookies</b>
<i>file</i></p>
<p style="margin-left:17%;">Load cookies from <i>file</i>
......@@ -1714,7 +1746,7 @@ your identity.</p>
<p style="margin-left:17%; margin-top: 1em">Mirroring such
a site requires Wget to send the same cookies your browser
sends when communicating with the site. This is achieved by
<b>&minus;&minus;load&minus;cookies</b>&minus;&minus;&minus;simply
<b>--load-cookies</b>---simply
point Wget to the location of the <i>cookies.txt</i> file,
and it will send the same cookies your browser would send in
the same situation. Different browsers keep textual cookie
......@@ -1745,12 +1777,12 @@ Export Cookies. This has been tested with Internet Explorer
<p style="margin-left:23%;">If you are using a different
browser to create your cookies,
<b>&minus;&minus;load&minus;cookies</b> will only work if
<b>--load-cookies</b> will only work if
you can locate or produce a cookie file in the Netscape
format that Wget expects.</p>
<p style="margin-left:17%; margin-top: 1em">If you cannot
use <b>&minus;&minus;load&minus;cookies</b>, there might
use <b>--load-cookies</b>, there might
still be an alternative. If your browser supports a
&quot;cookie manager&quot;, you can use it to view the
cookies used when accessing the site you&rsquo;re mirroring.
......@@ -1758,24 +1790,24 @@ Write down the name and value of the cookie, and manually
instruct Wget to send those cookies, bypassing the
&quot;official&quot; cookie support:</p>
<pre style="margin-left:17%; margin-top: 1em"> wget &minus;&minus;no&minus;cookies &minus;&minus;header &quot;Cookie: &lt;name&gt;=&lt;value&gt;&quot;</pre>
<pre style="margin-left:17%; margin-top: 1em"> wget --no-cookies --header &quot;Cookie: &lt;name&gt;=&lt;value&gt;&quot;</pre>
<p style="margin-left:11%;"><b>&minus;&minus;save&minus;cookies</b>
<p style="margin-left:11%;"><b>--save-cookies</b>
<i>file</i></p>
<p style="margin-left:17%;">Save cookies to <i>file</i>
before exiting. This will not save cookies that have expired
or that have no expiry time (so-called &quot;session
cookies&quot;), but also see
<b>&minus;&minus;keep&minus;session&minus;cookies</b>.</p>
<b>--keep-session-cookies</b>.</p>
<p style="margin-left:11%;"><b>&minus;&minus;keep&minus;session&minus;cookies</b></p>
<p style="margin-left:11%;"><b>--keep-session-cookies</b></p>
<p style="margin-left:17%;">When specified, causes
<b>&minus;&minus;save&minus;cookies</b> to also save session
<b>--save-cookies</b> to also save session
cookies. Session cookies are normally not saved because they
are meant to be kept in memory and forgotten when you exit
the browser. Saving them is useful on sites that require you
......@@ -1787,22 +1819,22 @@ concerned.</p>
<p style="margin-left:17%; margin-top: 1em">Since the
cookie file format does not normally carry session cookies,
Wget marks them with an expiry timestamp of 0. Wget&rsquo;s
<b>&minus;&minus;load&minus;cookies</b> recognizes those as
<b>--load-cookies</b> recognizes those as
session cookies, but it might confuse other browsers. Also
note that cookies so loaded will be treated as other session
cookies, which means that if you want
<b>&minus;&minus;save&minus;cookies</b> to preserve them
<b>--save-cookies</b> to preserve them
again, you must use
<b>&minus;&minus;keep&minus;session&minus;cookies</b>
<b>--keep-session-cookies</b>
again.</p>
<p style="margin-left:11%;"><b>&minus;&minus;ignore&minus;length</b></p>
<p style="margin-left:11%;"><b>--ignore-length</b></p>
<p style="margin-left:17%;">Unfortunately, some
<small>HTTP</small> servers ( <small>CGI</small> programs,
to be more precise) send out bogus
<tt>&quot;Content&minus;Length&quot;</tt> headers, which
<tt>&quot;Content-Length&quot;</tt> headers, which
makes Wget go wild, as it thinks not all the document was
retrieved. You can spot this syndrome if Wget retries
getting the same document again and again, each time
......@@ -1811,11 +1843,11 @@ on the very same byte.</p>
<p style="margin-left:17%; margin-top: 1em">With this
option, Wget will ignore the
<tt>&quot;Content&minus;Length&quot;</tt>
header&minus;&minus;&minus;as if it never existed.</p>
<tt>&quot;Content-Length&quot;</tt>
header---as if it never existed.</p>
<p style="margin-left:11%;"><b>&minus;&minus;header=</b><i>header-line</i></p>
<p style="margin-left:11%;"><b>--header=</b><i>header-line</i></p>
<p style="margin-left:17%;">Send <i>header-line</i> along
with the rest of the headers in each <small>HTTP</small>
......@@ -1825,10 +1857,10 @@ contain newlines.</p>
<p style="margin-left:17%; margin-top: 1em">You may define
more than one additional header by specifying
<b>&minus;&minus;header</b> more than once.</p>
<b>--header</b> more than once.</p>
<pre style="margin-left:17%; margin-top: 1em"> wget &minus;&minus;header='Accept&minus;Charset: iso&minus;8859&minus;2' \
&minus;&minus;header='Accept&minus;Language: hr' \
<pre style="margin-left:17%; margin-top: 1em"> wget --header='Accept-Charset: iso-8859-2' \
--header='Accept-Language: hr' \
http://fly.srk.fer.hr/</pre>
......@@ -1842,15 +1874,40 @@ generated automatically. This example instructs Wget to
connect to localhost, but to specify <b>foo.bar</b> in the
<tt>&quot;Host&quot;</tt> header:</p>
<pre style="margin-left:17%; margin-top: 1em"> wget &minus;&minus;header=&quot;Host: foo.bar&quot; http://localhost/</pre>
<pre style="margin-left:17%; margin-top: 1em"> wget --header=&quot;Host: foo.bar&quot; http://localhost/</pre>
<p style="margin-left:17%; margin-top: 1em">In versions of
Wget prior to 1.10 such use of <b>&minus;&minus;header</b>
Wget prior to 1.10 such use of <b>--header</b>
caused sending of duplicate headers.</p>
<p style="margin-left:11%;"><b>&minus;&minus;max&minus;redirect=</b><i>number</i></p>
<p style="margin-left:11%;"><b>--compression=</b><i>type</i></p>
<p style="margin-left:17%;">Choose the type of compression
to be used. Legal values are <b>auto</b>, <b>gzip</b> and
<b>none</b>.</p>
<p style="margin-left:17%; margin-top: 1em">If <b>auto</b>
or <b>gzip</b> are specified, Wget asks the server to
compress the file using the gzip compression format. If the
server compresses the file and responds with the
<tt>&quot;Content-Encoding&quot;</tt> header field set
appropriately, the file will be decompressed
automatically.</p>
<p style="margin-left:17%; margin-top: 1em">If <b>none</b>
is specified, wget will not ask the server to compress the
file and will not decompress any server responses. This is
the default.</p>
<p style="margin-left:17%; margin-top: 1em">Compression
support is currently experimental. In case it is turned on,
please report any bugs to
<tt>&quot;bug-wget@gnu.org&quot;</tt>.</p>
<p style="margin-left:11%;"><b>--max-redirect=</b><i>number</i></p>
<p style="margin-left:17%;">Specifies the maximum number of
redirections to follow for a resource. The default is 20,
......@@ -1859,9 +1916,9 @@ occasions where you want to allow more (or fewer), this is
the option to use.</p>
<p style="margin-left:11%;"><b>&minus;&minus;proxy&minus;user=</b><i>user</i>
<p style="margin-left:11%;"><b>--proxy-user=</b><i>user</i>
<b><br>
&minus;&minus;proxy&minus;password=</b><i>password</i></p>
--proxy-password=</b><i>password</i></p>
<p style="margin-left:17%;">Specify the username
<i>user</i> and password <i>password</i> for authentication
......@@ -1870,11 +1927,11 @@ on a proxy server. Wget will encode them using the
<p style="margin-left:17%; margin-top: 1em">Security
considerations similar to those with
<b>&minus;&minus;http&minus;password</b> pertain here as
<b>--http-password</b> pertain here as
well.</p>
<p style="margin-left:11%;"><b>&minus;&minus;referer=</b><i>url</i></p>
<p style="margin-left:11%;"><b>--referer=</b><i>url</i></p>
<p style="margin-left:17%;">Include &lsquo;Referer:
<i>url</i>&rsquo; header in <small>HTTP</small> request.
......@@ -1884,22 +1941,22 @@ web browsers and only come out properly when Referer is set
to one of the pages that point to them.</p>
<p style="margin-left:11%;"><b>&minus;&minus;save&minus;headers</b></p>
<p style="margin-left:11%;"><b>--save-headers</b></p>
<p style="margin-left:17%;">Save the headers sent by the
<small>HTTP</small> server to the file, preceding the actual
contents, with an empty line as the separator.</p>
<p style="margin-left:11%;"><b>&minus;U</b>
<p style="margin-left:11%;"><b>-U</b>
<i>agent-string</i> <b><br>
&minus;&minus;user&minus;agent=</b><i>agent-string</i></p>
--user-agent=</b><i>agent-string</i></p>
<p style="margin-left:17%;">Identify as <i>agent-string</i>
to the <small>HTTP</small> server.</p>
<p style="margin-left:17%; margin-top: 1em">The
<small>HTTP</small> protocol allows the clients to identify
themselves using a <tt>&quot;User&minus;Agent&quot;</tt>
themselves using a <tt>&quot;User-Agent&quot;</tt>
header field. This enables distinguishing the
<small>WWW</small> software, usually for statistical
purposes or for tracing of protocol violations. Wget
......@@ -1909,31 +1966,31 @@ normally identifies as <b>Wget/</b><i>version</i>,
<p style="margin-left:17%; margin-top: 1em">However, some
sites have been known to impose the policy of tailoring the
output according to the
<tt>&quot;User&minus;Agent&quot;</tt>&minus;supplied
<tt>&quot;User-Agent&quot;</tt>-supplied
information. While this is not such a bad idea in theory, it
has been abused by servers denying information to clients
other than (historically) Netscape or, more frequently,
Microsoft Internet Explorer. This option allows you to
change the <tt>&quot;User&minus;Agent&quot;</tt> line issued
change the <tt>&quot;User-Agent&quot;</tt> line issued
by Wget. Use of this option is discouraged, unless you
really know what you are doing.</p>
<p style="margin-left:17%; margin-top: 1em">Specifying
empty user agent with
<b>&minus;&minus;user&minus;agent=&quot;&quot;</b> instructs
Wget not to send the <tt>&quot;User&minus;Agent&quot;</tt>
<b>--user-agent=&quot;&quot;</b> instructs
Wget not to send the <tt>&quot;User-Agent&quot;</tt>
header in <small>HTTP</small> requests.</p>
<p style="margin-left:11%;"><b>&minus;&minus;post&minus;data=</b><i>string</i>
<p style="margin-left:11%;"><b>--post-data=</b><i>string</i>
<b><br>
&minus;&minus;post&minus;file=</b><i>file</i></p>
--post-file=</b><i>file</i></p>
<p style="margin-left:17%;">Use <small>POST</small> as the
method for all <small>HTTP</small> requests and send the
specified data in the request body.
<b>&minus;&minus;post&minus;data</b> sends <i>string</i> as
data, whereas <b>&minus;&minus;post&minus;file</b> sends the
<b>--post-data</b> sends <i>string</i> as
data, whereas <b>--post-file</b> sends the
contents of <i>file</i>. Other than that, they work in
exactly the same way. In particular, they <i>both</i> expect
content of the form
......@@ -1941,16 +1998,16 @@ content of the form
percent-encoding for special characters; the only difference
is that one expects its content as a command-line parameter
and the other accepts its content from a file. In
particular, <b>&minus;&minus;post&minus;file</b> is
particular, <b>--post-file</b> is
<i>not</i> for transmitting files as form attachments: those
must appear as <tt>&quot;key=value&quot;</tt> data (with
appropriate percent-coding) just like everything else. Wget
does not currently support
<tt>&quot;multipart/form&minus;data&quot;</tt> for
<tt>&quot;multipart/form-data&quot;</tt> for
transmitting <small>POST</small> data; only
<tt>&quot;application/x&minus;www&minus;form&minus;urlencoded&quot;</tt>.
Only one of <b>&minus;&minus;post&minus;data</b> and
<b>&minus;&minus;post&minus;file</b> should be
<tt>&quot;application/x-www-form-urlencoded&quot;</tt>.
Only one of <b>--post-data</b> and
<b>--post-file</b> should be
specified.</p>
<p style="margin-left:17%; margin-top: 1em">Please note
......@@ -1963,7 +2020,7 @@ processing <small>HTML</small> Forms.</p>
<p style="margin-left:17%; margin-top: 1em">When sending a
<small>POST</small> request using the
<b>&minus;&minus;post&minus;file</b> option, Wget treats the
<b>--post-file</b> option, Wget treats the
file as a binary file and will send every character in the
<small>POST</small> request without stripping trailing
newline or formfeed characters. Any other control characters
......@@ -1973,7 +2030,7 @@ in the text will also be sent as-is in the
<p style="margin-left:17%; margin-top: 1em">Please be aware
that Wget needs to know the size of the <small>POST</small>
data in advance. Therefore the argument to
<tt>&quot;&minus;&minus;post&minus;file&quot;</tt> must be a
<tt>&quot;--post-file&quot;</tt> must be a
regular file; specifying a <small>FIFO</small> or something
like <i>/dev/stdin</i> won&rsquo;t work. It&rsquo;s not
quite clear how to work around this limitation inherent in
......@@ -2003,64 +2060,64 @@ and then proceed to download the desired pages, presumably
only accessible to authorized users:</p>
<pre style="margin-left:17%; margin-top: 1em"> # Log in to the server. This can be done only once.
wget &minus;&minus;save&minus;cookies cookies.txt \
&minus;&minus;post&minus;data 'user=foo&amp;password=bar' \
wget --save-cookies cookies.txt \
--post-data 'user=foo&amp;password=bar' \
http://example.com/auth.php
# Now grab the page or pages we care about.
wget &minus;&minus;load&minus;cookies cookies.txt \
&minus;p http://example.com/interesting/article.php</pre>
wget --load-cookies cookies.txt \
-p http://example.com/interesting/article.php</pre>
<p style="margin-left:17%; margin-top: 1em">If the server
is using session cookies to track user authentication, the
above will not work because
<b>&minus;&minus;save&minus;cookies</b> will not save them
<b>--save-cookies</b> will not save them
(and neither will browsers) and the <i>cookies.txt</i> file
will be empty. In that case use
<b>&minus;&minus;keep&minus;session&minus;cookies</b> along
with <b>&minus;&minus;save&minus;cookies</b> to force saving
<b>--keep-session-cookies</b> along
with <b>--save-cookies</b> to force saving
of session cookies.</p>
<p style="margin-left:11%;"><b>&minus;&minus;method=</b><i>HTTP-Method</i></p>
<p style="margin-left:11%;"><b>--method=</b><i>HTTP-Method</i></p>
<p style="margin-left:17%;">For the purpose of RESTful
scripting, Wget allows sending of other <small>HTTP</small>
Methods without the need to explicitly set them using
<b>&minus;&minus;header=Header&minus;Line</b>. Wget will use
<b>--header=Header-Line</b>. Wget will use
whatever string is passed to it after
<b>&minus;&minus;method</b> as the <small>HTTP</small>
<b>--method</b> as the <small>HTTP</small>
Method to the server.</p>
<p style="margin-left:11%;"><b>&minus;&minus;body&minus;data=</b><i>Data-String</i>
<p style="margin-left:11%;"><b>--body-data=</b><i>Data-String</i>
<b><br>
&minus;&minus;body&minus;file=</b><i>Data-File</i></p>
--body-file=</b><i>Data-File</i></p>
<p style="margin-left:17%;">Must be set when additional
data needs to be sent to the server along with the Method
specified using <b>&minus;&minus;method</b>.
<b>&minus;&minus;body&minus;data</b> sends <i>string</i> as
data, whereas <b>&minus;&minus;body&minus;file</b> sends the
specified using <b>--method</b>.
<b>--body-data</b> sends <i>string</i> as
data, whereas <b>--body-file</b> sends the
contents of <i>file</i>. Other than that, they work in
exactly the same way.</p>
<p style="margin-left:17%; margin-top: 1em">Currently,
<b>&minus;&minus;body&minus;file</b> is <i>not</i> for
<b>--body-file</b> is <i>not</i> for
transmitting files as a whole. Wget does not currently
support <tt>&quot;multipart/form&minus;data&quot;</tt> for
support <tt>&quot;multipart/form-data&quot;</tt> for
transmitting data; only
<tt>&quot;application/x&minus;www&minus;form&minus;urlencoded&quot;</tt>.
<tt>&quot;application/x-www-form-urlencoded&quot;</tt>.
In the future, this may be changed so that wget sends the
<b>&minus;&minus;body&minus;file</b> as a complete file
<b>--body-file</b> as a complete file
instead of sending its contents to the server. Please be
aware that Wget needs to know the contents of
<small>BODY</small> Data in advance, and hence the argument
to <b>&minus;&minus;body&minus;file</b> should be a regular
file. See <b>&minus;&minus;post&minus;file</b> for a more
to <b>--body-file</b> should be a regular
file. See <b>--post-file</b> for a more
detailed explanation. Only one of
<b>&minus;&minus;body&minus;data</b> and
<b>&minus;&minus;body&minus;file</b> should be
<b>--body-data</b> and
<b>--body-file</b> should be
specified.</p>
<p style="margin-left:17%; margin-top: 1em">If Wget is
......@@ -2072,14 +2129,14 @@ which is used to explicitly specify that the request method
should <i>not</i> change. Another exception is when the
method is set to <tt>&quot;POST&quot;</tt>, in which case
the redirection rules specified under
<b>&minus;&minus;post&minus;data</b> are followed.</p>
<b>--post-data</b> are followed.</p>
<p style="margin-left:11%;"><b>&minus;&minus;content&minus;disposition</b></p>
<p style="margin-left:11%;"><b>--content-disposition</b></p>
<p style="margin-left:17%;">If this is set to on,
experimental (not fully-functional) support for
<tt>&quot;Content&minus;Disposition&quot;</tt> headers is
<tt>&quot;Content-Disposition&quot;</tt> headers is
enabled. This can currently result in extra round-trips to
the server for a <tt>&quot;HEAD&quot;</tt> request, and is
known to suffer from a few bugs, which is why it is not
......@@ -2087,26 +2144,26 @@ currently enabled by default.</p>
<p style="margin-left:17%; margin-top: 1em">This option is
useful for some file-downloading <small>CGI</small> programs
that use <tt>&quot;Content&minus;Disposition&quot;</tt>
that use <tt>&quot;Content-Disposition&quot;</tt>
headers to describe what the name of a downloaded file
should be.</p>
<p style="margin-left:17%; margin-top: 1em">When combined
with <b>&minus;&minus;metalink&minus;over&minus;http</b> and
<b>&minus;&minus;trust&minus;server&minus;names</b>, a
with <b>--metalink-over-http</b> and
<b>--trust-server-names</b>, a
<b>Content-Type: application/metalink4+xml</b> file is named
using the <tt>&quot;Content&minus;Disposition&quot;</tt>
using the <tt>&quot;Content-Disposition&quot;</tt>
filename field, if available.</p>
<p style="margin-left:11%;"><b>&minus;&minus;content&minus;on&minus;error</b></p>
<p style="margin-left:11%;"><b>--content-on-error</b></p>
<p style="margin-left:17%;">If this is set to on, wget will
not skip the content when the server responds with a http
status code that indicates error.</p>
<p style="margin-left:11%;"><b>&minus;&minus;trust&minus;server&minus;names</b></p>
<p style="margin-left:11%;"><b>--trust-server-names</b></p>
<p style="margin-left:17%;">If this is set, on a redirect,
the local file name will be based on the redirection
......@@ -2117,7 +2174,7 @@ redirected URLs correspond to an underlying file structure,
while link URLs do not.</p>
<p style="margin-left:11%;"><b>&minus;&minus;auth&minus;no&minus;challenge</b></p>
<p style="margin-left:11%;"><b>--auth-no-challenge</b></p>
<p style="margin-left:17%;">If this option is given, Wget
will send Basic <small>HTTP</small> authentication
......@@ -2133,11 +2190,18 @@ unsolicited auth info, say, in addition to form-based
authentication.</p>
<p style="margin-left:11%;"><b>&minus;&minus;retry&minus;on&minus;http&minus;error=</b><i>code[,code,...]</i></p>
<p style="margin-left:11%;"><b>--retry-on-host-error</b></p>
<p style="margin-left:17%;">Consider host errors, such as
&quot;Temporary failure in name resolution&quot;, as
non-fatal, transient errors.</p>
<p style="margin-left:11%;"><b>--retry-on-http-error=</b><i>code[,code,...]</i></p>
<p style="margin-left:17%;">Consider given
<small>HTTP</small> response codes as non-fatal, transient
errors. Supply a comma-separated list of 3&minus;digit
errors. Supply a comma-separated list of 3-digit
<small>HTTP</small> response codes as argument. Useful to
work around special circumstances where retries are
required, but the server responds with an error code
......@@ -2163,24 +2227,25 @@ is GnuTLS. In addition, Wget also supports
<small>HSTS</small> ( <small>HTTP</small> Strict Transport
Security). If Wget is compiled without <small>SSL</small>
support, none of these options are available. <b><br>
&minus;&minus;secure&minus;protocol=</b><i>protocol</i></p>
--secure-protocol=</b><i>protocol</i></p>
<p style="margin-left:17%;">Choose the secure protocol to
be used. Legal values are <b>auto</b>, <b>SSLv2</b>,
<b>SSLv3</b>, <b>TLSv1</b>, <b>TLSv1_1</b>, <b>TLSv1_2</b>
and <b><small>PFS</small></b> . If <b>auto</b> is used, the
<small>SSL</small> library is given the liberty of choosing
the appropriate protocol automatically, which is achieved by
sending a TLSv1 greeting. This is the default.</p>
<b>SSLv3</b>, <b>TLSv1</b>, <b>TLSv1_1</b>, <b>TLSv1_2</b>,
<b>TLSv1_3</b> and <b><small>PFS</small></b> . If
<b>auto</b> is used, the <small>SSL</small> library is given
the liberty of choosing the appropriate protocol
automatically, which is achieved by sending a TLSv1
greeting. This is the default.</p>
<p style="margin-left:17%; margin-top: 1em">Specifying
<b>SSLv2</b>, <b>SSLv3</b>, <b>TLSv1</b>, <b>TLSv1_1</b> or
<b>TLSv1_2</b> forces the use of the corresponding protocol.
This is useful when talking to old and buggy
<small>SSL</small> server implementations that make it hard
for the underlying <small>SSL</small> library to choose the
correct protocol version. Fortunately, such servers are
quite rare.</p>
<b>SSLv2</b>, <b>SSLv3</b>, <b>TLSv1</b>, <b>TLSv1_1</b>,
<b>TLSv1_2</b> or <b>TLSv1_3</b> forces the use of the
corresponding protocol. This is useful when talking to old
and buggy <small>SSL</small> server implementations that
make it hard for the underlying <small>SSL</small> library
to choose the correct protocol version. Fortunately, such
servers are quite rare.</p>
<p style="margin-left:17%; margin-top: 1em">Specifying
<b><small>PFS</small></b> enforces the use of the so-called
......@@ -2189,16 +2254,32 @@ Perfect Forward Security cipher suites. In short,
for each <small>SSL</small> connection. It has a bit more
<small>CPU</small> impact on client and server. We use known
to be secure ciphers (e.g. no <small>MD4</small> ) and the
<small>TLS</small> protocol.</p>
<small>TLS</small> protocol. This mode also explicitly
excludes non-PFS key exchange methods, such as
<small>RSA.</small></p>
<p style="margin-left:11%;"><b>&minus;&minus;https&minus;only</b></p>
<p style="margin-left:11%;"><b>--https-only</b></p>
<p style="margin-left:17%;">When in recursive mode, only
<small>HTTPS</small> links are followed.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;check&minus;certificate</b></p>
<p style="margin-left:11%;"><b>--ciphers</b></p>
<p style="margin-left:17%;">Set the cipher list string.
Typically this string sets the cipher suites and other
<small>SSL/TLS</small> options that the user wish should be
used, in a set order of preference (GnuTLS calls it
&rsquo;priority string&rsquo;). This string will be fed
verbatim to the <small>SSL/TLS</small> engine (OpenSSL or
GnuTLS) and hence its format and syntax is dependent on
that. Wget will not process or manipulate it in any way.
Refer to the OpenSSL or GnuTLS documentation for more
information.</p>
<p style="margin-left:11%;"><b>--no-check-certificate</b></p>
<p style="margin-left:17%;">Don&rsquo;t check the server
certificate against the available certificate authorities.
......@@ -2228,16 +2309,16 @@ site&rsquo;s authenticity, or if you really don&rsquo;t care
about the validity of its certificate.</i> It is almost
always a bad idea not to check the certificates when
transmitting confidential or important data. For
self&minus;signed/internal certificates, you should download
self-signed/internal certificates, you should download
the certificate and verify against that instead of forcing
this insecure mode. If you are really sure of not desiring
any certificate verification, you can specify
&minus;&minus;check&minus;certificate=quiet to tell wget to
--check-certificate=quiet to tell wget to
not print any warning about invalid certificates, albeit in
most cases this is the wrong thing to do.</p>
<p style="margin-left:11%;"><b>&minus;&minus;certificate=</b><i>file</i></p>
<p style="margin-left:11%;"><b>--certificate=</b><i>file</i></p>
<p style="margin-left:17%;">Use the client certificate
stored in <i>file</i>. This is needed for servers that are
......@@ -2246,7 +2327,7 @@ connect to them. Normally a certificate is not required and
this switch is optional.</p>
<p style="margin-left:11%;"><b>&minus;&minus;certificate&minus;type=</b><i>type</i></p>
<p style="margin-left:11%;"><b>--certificate-type=</b><i>type</i></p>
<p style="margin-left:17%;">Specify the type of the client
certificate. Legal values are <b><small>PEM</small></b>
......@@ -2254,21 +2335,21 @@ certificate. Legal values are <b><small>PEM</small></b>
known as <b><small>ASN1</small></b> .</p>
<p style="margin-left:11%;"><b>&minus;&minus;private&minus;key=</b><i>file</i></p>
<p style="margin-left:11%;"><b>--private-key=</b><i>file</i></p>
<p style="margin-left:17%;">Read the private key from
<i>file</i>. This allows you to provide the private key in a
file separate from the certificate.</p>
<p style="margin-left:11%;"><b>&minus;&minus;private&minus;key&minus;type=</b><i>type</i></p>
<p style="margin-left:11%;"><b>--private-key-type=</b><i>type</i></p>
<p style="margin-left:17%;">Specify the type of the private
key. Accepted values are <b><small>PEM</small></b> (the
default) and <b><small>DER</small></b> .</p>
<p style="margin-left:11%;"><b>&minus;&minus;ca&minus;certificate=</b><i>file</i></p>
<p style="margin-left:11%;"><b>--ca-certificate=</b><i>file</i></p>
<p style="margin-left:17%;">Use <i>file</i> as the file
with the bundle of certificate authorities (&quot;
......@@ -2281,7 +2362,7 @@ system-specified locations, chosen at OpenSSL installation
time.</p>
<p style="margin-left:11%;"><b>&minus;&minus;ca&minus;directory=</b><i>directory</i></p>
<p style="margin-left:11%;"><b>--ca-directory=</b><i>directory</i></p>
<p style="margin-left:17%;">Specifies directory containing
<small>CA</small> certificates in <small>PEM</small> format.
......@@ -2290,8 +2371,8 @@ the file name is based on a hash value derived from the
certificate. This is achieved by processing a certificate
directory with the <tt>&quot;c_rehash&quot;</tt> utility
supplied with OpenSSL. Using
<b>&minus;&minus;ca&minus;directory</b> is more efficient
than <b>&minus;&minus;ca&minus;certificate</b> when many
<b>--ca-directory</b> is more efficient
than <b>--ca-certificate</b> when many
certificates are installed because it allows Wget to fetch
certificates on demand.</p>
......@@ -2301,14 +2382,14 @@ system-specified locations, chosen at OpenSSL installation
time.</p>
<p style="margin-left:11%;"><b>&minus;&minus;crl&minus;file=</b><i>file</i></p>
<p style="margin-left:11%;"><b>--crl-file=</b><i>file</i></p>
<p style="margin-left:17%;">Specifies a <small>CRL</small>
file in <i>file</i>. This is needed for certificates that
have been revocated by the CAs.</p>
<p style="margin-left:11%;"><b>&minus;&minus;pinnedpubkey=file/hashes</b></p>
<p style="margin-left:11%;"><b>--pinnedpubkey=file/hashes</b></p>
<p style="margin-left:17%;">Tells wget to use the specified
public key file (or hashes) to verify the peer. This can be
......@@ -2326,7 +2407,7 @@ to this option, wget will abort the connection before
sending or receiving any data.</p>
<p style="margin-left:11%;"><b>&minus;&minus;random&minus;file=</b><i>file</i></p>
<p style="margin-left:11%;"><b>--random-file=</b><i>file</i></p>
<p style="margin-left:17%;">[OpenSSL and LibreSSL only] Use
<i>file</i> as the source of random data for seeding the
......@@ -2336,7 +2417,7 @@ pseudo-random number generator on systems without
<p style="margin-left:17%; margin-top: 1em">On such systems
the <small>SSL</small> library needs an external source of
randomness to initialize. Randomness may be provided by
<small>EGD</small> (see <b>&minus;&minus;egd&minus;file</b>
<small>EGD</small> (see <b>--egd-file</b>
below) or read from an external source specified by the
user. If this option is not specified, Wget looks for random
data in <tt>$RANDFILE</tt> or, if that is unset, in
......@@ -2349,7 +2430,7 @@ provide random data using some of the methods described
above.</p>
<p style="margin-left:11%;"><b>&minus;&minus;egd&minus;file=</b><i>file</i></p>
<p style="margin-left:11%;"><b>--egd-file=</b><i>file</i></p>
<p style="margin-left:17%;">[OpenSSL only] Use <i>file</i>
as the <small>EGD</small> socket. <small>EGD</small> stands
......@@ -2375,24 +2456,24 @@ used), <small>EGD</small> is never contacted.
support <i>/dev/urandom</i>.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;hsts</b></p>
<p style="margin-left:11%;"><b>--no-hsts</b></p>
<p style="margin-left:17%;">Wget supports
<small>HSTS</small> ( <small>HTTP</small> Strict Transport
Security, <small>RFC 6797</small> ) by default. Use
<b>&minus;&minus;no&minus;hsts</b> to make Wget act as a
<b>--no-hsts</b> to make Wget act as a
non-HSTS-compliant <small>UA.</small> As a consequence, Wget
would ignore all the
<tt>&quot;Strict&minus;Transport&minus;Security&quot;</tt>
<tt>&quot;Strict-Transport-Security&quot;</tt>
headers, and would not enforce any existing
<small>HSTS</small> policy.</p>
<p style="margin-left:11%;"><b>&minus;&minus;hsts&minus;file=</b><i>file</i></p>
<p style="margin-left:11%;"><b>--hsts-file=</b><i>file</i></p>
<p style="margin-left:17%;">By default, Wget stores its
<small>HSTS</small> database in <i>~/.wget&minus;hsts</i>.
You can use <b>&minus;&minus;hsts&minus;file</b> to override
<small>HSTS</small> database in <i>~/.wget-hsts</i>.
You can use <b>--hsts-file</b> to override
this. Wget will use the supplied file as the
<small>HSTS</small> database. Such file must conform to the
correct <small>HSTS</small> database format used by Wget. If
......@@ -2403,7 +2484,7 @@ unspecified.</p>
Wget&rsquo;s <small>HSTS</small> database is a plain text
file. Each line contains an <small>HSTS</small> entry (ie. a
site that has issued a
<tt>&quot;Strict&minus;Transport&minus;Security&quot;</tt>
<tt>&quot;Strict-Transport-Security&quot;</tt>
header and that therefore has specified a concrete
<small>HSTS</small> policy to be applied). Lines starting
with a dash (<tt>&quot;#&quot;</tt>) are ignored by Wget.
......@@ -2418,7 +2499,7 @@ separated by one or more whitespace:</p>
<p style="margin-left:17%; margin-top: 1em"><tt>&quot;&lt;hostname&gt;
SP [&lt;port&gt;] SP &lt;include subdomains&gt; SP
&lt;created&gt; SP &lt;max&minus;age&gt;&quot;</tt></p>
&lt;created&gt; SP &lt;max-age&gt;&quot;</tt></p>
<p style="margin-left:17%; margin-top: 1em">The
<i>hostname</i> and <i>port</i> fields indicate the hostname
......@@ -2447,7 +2528,7 @@ subdomains of the target domain should be part of the given
<small>HSTS</small> policy as well. The <i>created</i> and
<i>max-age</i> fields hold the timestamp values of when such
entry was created (first seen by Wget) and the HSTS-defined
value &rsquo;max&minus;age&rsquo;, which states how long
value &rsquo;max-age&rsquo;, which states how long
should that <small>HSTS</small> policy remain active,
measured in seconds elapsed since the timestamp stored in
<i>created</i>. Once that time has passed, that
......@@ -2456,7 +2537,7 @@ eventually be removed from the database.</p>
<p style="margin-left:17%; margin-top: 1em">If you supply
your own <small>HSTS</small> database via
<b>&minus;&minus;hsts&minus;file</b>, be aware that Wget may
<b>--hsts-file</b>, be aware that Wget may
modify the provided file if any change occurs between the
<small>HSTS</small> policies requested by the remote servers
and those in the file. When Wget exists, it effectively
......@@ -2467,10 +2548,10 @@ database file with the new entries.</p>
file does not exist, Wget will create one. This file will
contain the new <small>HSTS</small> entries. If no
<small>HSTS</small> entries were generated (no
<tt>&quot;Strict&minus;Transport&minus;Security&quot;</tt>
<tt>&quot;Strict-Transport-Security&quot;</tt>
headers were sent by any of the servers) then no file will
be created, not even an empty one. This behaviour applies to
the default database file (<i>~/.wget&minus;hsts</i>) as
the default database file (<i>~/.wget-hsts</i>) as
well: it will not be created until some server enforces an
<small>HSTS</small> policy.</p>
......@@ -2484,61 +2565,61 @@ changes.</p>
<p style="margin-left:17%; margin-top: 1em">Using a custom
<small>HSTS</small> database and/or modifying an existing
one is discouraged. For more information about the potential
security threats arised from such practice, see section 14
security threats arose from such practice, see section 14
&quot;Security Considerations&quot; of <small>RFC
6797,</small> specially section 14.9 &quot;Creative
Manipulation of <small>HSTS</small> Policy Store&quot;.</p>
<p style="margin-left:11%;"><b>&minus;&minus;warc&minus;file=</b><i>file</i></p>
<p style="margin-left:11%;"><b>--warc-file=</b><i>file</i></p>
<p style="margin-left:17%;">Use <i>file</i> as the
destination <small>WARC</small> file.</p>
<p style="margin-left:11%;"><b>&minus;&minus;warc&minus;header=</b><i>string</i></p>
<p style="margin-left:11%;"><b>--warc-header=</b><i>string</i></p>
<p style="margin-left:17%;">Use <i>string</i> into as the
warcinfo record.</p>
<p style="margin-left:11%;"><b>&minus;&minus;warc&minus;max&minus;size=</b><i>size</i></p>
<p style="margin-left:11%;"><b>--warc-max-size=</b><i>size</i></p>
<p style="margin-left:17%;">Set the maximum size of the
<small>WARC</small> files to <i>size</i>.</p>
<p style="margin-left:11%;"><b>&minus;&minus;warc&minus;cdx</b></p>
<p style="margin-left:11%;"><b>--warc-cdx</b></p>
<p style="margin-left:17%;">Write <small>CDX</small> index
files.</p>
<p style="margin-left:11%;"><b>&minus;&minus;warc&minus;dedup=</b><i>file</i></p>
<p style="margin-left:11%;"><b>--warc-dedup=</b><i>file</i></p>
<p style="margin-left:17%;">Do not store records listed in
this <small>CDX</small> file.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;warc&minus;compression</b></p>
<p style="margin-left:11%;"><b>--no-warc-compression</b></p>
<p style="margin-left:17%;">Do not compress
<small>WARC</small> files with <small>GZIP.</small></p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;warc&minus;digests</b></p>
<p style="margin-left:11%;"><b>--no-warc-digests</b></p>
<p style="margin-left:17%;">Do not calculate
<small>SHA1</small> digests.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;warc&minus;keep&minus;log</b></p>
<p style="margin-left:11%;"><b>--no-warc-keep-log</b></p>
<p style="margin-left:17%;">Do not store the log file in a
<small>WARC</small> record.</p>
<p style="margin-left:11%;"><b>&minus;&minus;warc&minus;tempdir=</b><i>dir</i></p>
<p style="margin-left:11%;"><b>--warc-tempdir=</b><i>dir</i></p>
<p style="margin-left:17%;">Specify the location for
temporary files created by the <small>WARC</small>
......@@ -2547,14 +2628,14 @@ writer.</p>
<p style="margin-left:11%; margin-top: 1em"><b><small>FTP</small>
Options <br>
&minus;&minus;ftp&minus;user=</b><i>user</i> <b><br>
&minus;&minus;ftp&minus;password=</b><i>password</i></p>
--ftp-user=</b><i>user</i> <b><br>
--ftp-password=</b><i>password</i></p>
<p style="margin-left:17%;">Specify the username
<i>user</i> and password <i>password</i> on an
<small>FTP</small> server. Without this, or the
corresponding startup option, the password defaults to
<b>&minus;wget@</b>, normally used for anonymous
<b>-wget@</b>, normally used for anonymous
<small>FTP.</small></p>
<p style="margin-left:17%; margin-top: 1em">Another way to
......@@ -2565,11 +2646,11 @@ passwords from being seen, store them in <i>.wgetrc</i> or
<i>.netrc</i>, and make sure to protect those files from
other users with <tt>&quot;chmod&quot;</tt>. If the
passwords are really important, do not leave them lying in
those files either&minus;&minus;&minus;edit the files and
those files either---edit the files and
delete them after Wget has started the download.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;remove&minus;listing</b></p>
<p style="margin-left:11%;"><b>--no-remove-listing</b></p>
<p style="margin-left:17%;">Don&rsquo;t remove the
temporary <i>.listing</i> files generated by
......@@ -2587,7 +2668,7 @@ is not a security hole in the scenario of a user making
something and asking <tt>&quot;root&quot;</tt> to run Wget
in his or her directory. Depending on the options used,
either Wget will refuse to write to <i>.listing</i>, making
the globbing/recursion/time&minus;stamping operation fail,
the globbing/recursion/time-stamping operation fail,
or the symbolic link will be deleted and replaced with the
actual <i>.listing</i> file, or the listing will be written
to a <i>.listing.number</i> file.</p>
......@@ -2598,11 +2679,11 @@ this situation isn&rsquo;t a problem, though,
non-trusted user&rsquo;s directory. A user could do
something as simple as linking <i>index.html</i> to
<i>/etc/passwd</i> and asking <tt>&quot;root&quot;</tt> to
run Wget with <b>&minus;N</b> or <b>&minus;r</b> so the file
run Wget with <b>-N</b> or <b>-r</b> so the file
will be overwritten.</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;glob</b></p>
<p style="margin-left:11%;"><b>--no-glob</b></p>
<p style="margin-left:17%;">Turn off <small>FTP</small>
globbing. Globbing refers to the use of shell-like special
......@@ -2627,7 +2708,7 @@ currently works only with Unix <small>FTP</small> servers
output).</p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;passive&minus;ftp</b></p>
<p style="margin-left:11%;"><b>--no-passive-ftp</b></p>
<p style="margin-left:17%;">Disable the use of the
<i>passive</i> <small>FTP</small> transfer mode. Passive
......@@ -2647,13 +2728,13 @@ the case, use this option, or set
<tt>&quot;passive_ftp=off&quot;</tt> in your init file.</p>
<p style="margin-left:11%;"><b>&minus;&minus;preserve&minus;permissions</b></p>
<p style="margin-left:11%;"><b>--preserve-permissions</b></p>
<p style="margin-left:17%;">Preserve remote file
permissions instead of permissions set by umask.</p>
<p style="margin-left:11%;"><b>&minus;&minus;retr&minus;symlinks</b></p>
<p style="margin-left:11%;"><b>--retr-symlinks</b></p>
<p style="margin-left:17%;">By default, when retrieving
<small>FTP</small> directories recursively and a symbolic
......@@ -2664,7 +2745,7 @@ recursively, though this feature may be added in the
future.</p>
<p style="margin-left:17%; margin-top: 1em">When
<b>&minus;&minus;retr&minus;symlinks=no</b> is specified,
<b>--retr-symlinks=no</b> is specified,
the linked-to file is not downloaded. Instead, a matching
symbolic link is created on the local filesystem. The
pointed-to file will not be retrieved unless this recursive
......@@ -2683,7 +2764,7 @@ traversed in this case.</p>
<p style="margin-left:11%; margin-top: 1em"><b><small>FTPS</small>
Options <br>
&minus;&minus;ftps&minus;implicit</b></p>
--ftps-implicit</b></p>
<p style="margin-left:17%;">This option tells Wget to use
<small>FTPS</small> implicitly. Implicit <small>FTPS</small>
......@@ -2698,7 +2779,7 @@ is successful, the session continues just like regular
<small>FTPS</small> is no longer a requirement for
<small>FTPS</small> implementations, and thus many servers
may not support it. If
<b>&minus;&minus;ftps&minus;implicit</b> is passed and no
<b>--ftps-implicit</b> is passed and no
explicit port number specified, the default port for
implicit <small>FTPS, 990,</small> will be used, instead of
the default port for the &quot;normal&quot; (explicit)
......@@ -2706,7 +2787,7 @@ the default port for the &quot;normal&quot; (explicit)
21.</small></p>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;ftps&minus;resume&minus;ssl</b></p>
<p style="margin-left:11%;"><b>--no-ftps-resume-ssl</b></p>
<p style="margin-left:17%;">Do not resume the
<small>SSL/TLS</small> session in the data channel. When
......@@ -2720,11 +2801,11 @@ that way, so Wget does this by default. Under rare
circumstances however, one might want to start an entirely
new <small>SSL/TLS</small> session in every data connection.
This is what
<b>&minus;&minus;no&minus;ftps&minus;resume&minus;ssl</b> is
<b>--no-ftps-resume-ssl</b> is
for.</p>
<p style="margin-left:11%;"><b>&minus;&minus;ftps&minus;clear&minus;data&minus;connection</b></p>
<p style="margin-left:11%;"><b>--ftps-clear-data-connection</b></p>
<p style="margin-left:17%;">All the data connections will
be in plain text. Only the control connection will be under
......@@ -2733,7 +2814,7 @@ C&quot;</tt> command to achieve this, which must be approved
by the server.</p>
<p style="margin-left:11%;"><b>&minus;&minus;ftps&minus;fallback&minus;to&minus;ftp</b></p>
<p style="margin-left:11%;"><b>--ftps-fallback-to-ftp</b></p>
<p style="margin-left:17%;">Fall back to <small>FTP</small>
if <small>FTPS</small> is not supported by the target
......@@ -2756,46 +2837,46 @@ Retrieval Options</b></p>
<td width="3%">
<p><b>&minus;r</b></p></td>
<p><b>-r</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;recursive</b></p>
<p style="margin-left:11%;"><b>--recursive</b></p>
<p style="margin-left:17%;">Turn on recursive retrieving.
The default maximum depth is 5.</p>
<p style="margin-left:11%;"><b>&minus;l</b> <i>depth</i>
<p style="margin-left:11%;"><b>-l</b> <i>depth</i>
<b><br>
&minus;&minus;level=</b><i>depth</i></p>
--level=</b><i>depth</i></p>
<p style="margin-left:17%;">Specify recursion maximum depth
level <i>depth</i>.</p>
<p style="margin-left:11%;"><b>&minus;&minus;delete&minus;after</b></p>
<p style="margin-left:11%;"><b>--delete-after</b></p>
<p style="margin-left:17%;">This option tells Wget to
delete every single file it downloads, <i>after</i> having
done so. It is useful for pre-fetching popular pages through
a proxy, e.g.:</p>
<pre style="margin-left:17%; margin-top: 1em"> wget &minus;r &minus;nd &minus;&minus;delete&minus;after http://whatever.com/~popular/page/</pre>
<pre style="margin-left:17%; margin-top: 1em"> wget -r -nd --delete-after http://whatever.com/~popular/page/</pre>
<p style="margin-left:17%; margin-top: 1em">The
<b>&minus;r</b> option is to retrieve recursively, and
<b>&minus;nd</b> to not create directories.</p>
<b>-r</b> option is to retrieve recursively, and
<b>-nd</b> to not create directories.</p>
<p style="margin-left:17%; margin-top: 1em">Note that
<b>&minus;&minus;delete&minus;after</b> deletes files on the
<b>--delete-after</b> deletes files on the
local machine. It does not issue the
<b><small>DELE</small></b> command to remote
<small>FTP</small> sites, for instance. Also note that when
<b>&minus;&minus;delete&minus;after</b> is specified,
<b>&minus;&minus;convert&minus;links</b> is ignored, so
<b>--delete-after</b> is specified,
<b>--convert-links</b> is ignored, so
<b>.orig</b> files are simply not created in the first
place.</p>
......@@ -2806,13 +2887,13 @@ place.</p>
<td width="3%">
<p><b>&minus;k</b></p></td>
<p><b>-k</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;convert&minus;links</b></p>
<p style="margin-left:11%;"><b>--convert-links</b></p>
<p style="margin-left:17%;">After the download is complete,
convert the links in the document to make them suitable for
......@@ -2883,11 +2964,11 @@ directory.</p>
<p style="margin-left:17%; margin-top: 1em">Note that only
at the end of the download can Wget know which links have
been downloaded. Because of that, the work done by
<b>&minus;k</b> will be performed at the end of all the
<b>-k</b> will be performed at the end of all the
downloads.</p>
<p style="margin-left:11%;"><b>&minus;&minus;convert&minus;file&minus;only</b></p>
<p style="margin-left:11%;"><b>--convert-file-only</b></p>
<p style="margin-left:17%;">This option converts only the
filename part of the URLs, leaving the rest of the URLs
......@@ -2897,14 +2978,14 @@ in order not to cause confusion.</p>
<p style="margin-left:17%; margin-top: 1em">It works
particularly well in conjunction with
<b>&minus;&minus;adjust&minus;extension</b>, although this
<b>--adjust-extension</b>, although this
coupling is not enforced. It proves useful to populate
Internet caches with files downloaded from different
hosts.</p>
<p style="margin-left:17%; margin-top: 1em">Example: if
some link points to <i>//foo.com/bar.cgi?xyz</i> with
<b>&minus;&minus;adjust&minus;extension</b> asserted and its
<b>--adjust-extension</b> asserted and its
local destination is intended to be
<i>./foo.com/bar.cgi?xyz.css</i>, then the link would be
converted to <i>//foo.com/bar.cgi?xyz.css</i>. Note that
......@@ -2921,17 +3002,17 @@ processed by Wget and converted to the effective scheme (ie.
<td width="3%">
<p><b>&minus;K</b></p></td>
<p><b>-K</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;backup&minus;converted</b></p>
<p style="margin-left:11%;"><b>--backup-converted</b></p>
<p style="margin-left:17%;">When converting a file, back up
the original version with a <b>.orig</b> suffix. Affects the
behavior of <b>&minus;N</b>.</p>
behavior of <b>-N</b>.</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
......@@ -2940,20 +3021,20 @@ behavior of <b>&minus;N</b>.</p>
<td width="3%">
<p><b>&minus;m</b></p></td>
<p><b>-m</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;mirror</b></p>
<p style="margin-left:11%;"><b>--mirror</b></p>
<p style="margin-left:17%;">Turn on options suitable for
mirroring. This option turns on recursion and time-stamping,
sets infinite recursion depth and keeps <small>FTP</small>
directory listings. It is currently equivalent to
<b>&minus;r &minus;N &minus;l inf
&minus;&minus;no&minus;remove&minus;listing</b>.</p>
<b>-r -N -l inf
--no-remove-listing</b>.</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
......@@ -2962,13 +3043,13 @@ directory listings. It is currently equivalent to
<td width="3%">
<p><b>&minus;p</b></p></td>
<p><b>-p</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;page&minus;requisites</b></p>
<p style="margin-left:11%;"><b>--page-requisites</b></p>
<p style="margin-left:17%;">This option causes Wget to
download all the files that are necessary to properly
......@@ -2979,8 +3060,8 @@ stylesheets.</p>
<p style="margin-left:17%; margin-top: 1em">Ordinarily,
when downloading a single <small>HTML</small> page, any
requisite documents that may be needed to display it
properly are not downloaded. Using <b>&minus;r</b> together
with <b>&minus;l</b> can help, but since Wget does not
properly are not downloaded. Using <b>-r</b> together
with <b>-l</b> can help, but since Wget does not
ordinarily distinguish between external and inlined
documents, one is generally left with &quot;leaf
documents&quot; that are missing their requisites.</p>
......@@ -2997,7 +3078,7 @@ arbitrarily high number.</p>
<p style="margin-left:17%; margin-top: 1em">If one executes
the command:</p>
<pre style="margin-left:17%; margin-top: 1em"> wget &minus;r &minus;l 2 http://&lt;site&gt;/1.html</pre>
<pre style="margin-left:17%; margin-top: 1em"> wget -r -l 2 http://&lt;site&gt;/1.html</pre>
<p style="margin-left:17%; margin-top: 1em">then
......@@ -3008,47 +3089,47 @@ Wget is simply counting the number of hops (up to 2) away
from <i>1.html</i> in order to determine where to stop the
recursion. However, with this command:</p>
<pre style="margin-left:17%; margin-top: 1em"> wget &minus;r &minus;l 2 &minus;p http://&lt;site&gt;/1.html</pre>
<pre style="margin-left:17%; margin-top: 1em"> wget -r -l 2 -p http://&lt;site&gt;/1.html</pre>
<p style="margin-left:17%; margin-top: 1em">all the above
files <i>and 3.html</i>&rsquo;s requisite <i>3.gif</i> will
be downloaded. Similarly,</p>
<pre style="margin-left:17%; margin-top: 1em"> wget &minus;r &minus;l 1 &minus;p http://&lt;site&gt;/1.html</pre>
<pre style="margin-left:17%; margin-top: 1em"> wget -r -l 1 -p http://&lt;site&gt;/1.html</pre>
<p style="margin-left:17%; margin-top: 1em">will cause
<i>1.html</i>, <i>1.gif</i>, <i>2.html</i>, and <i>2.gif</i>
to be downloaded. One might think that:</p>
<pre style="margin-left:17%; margin-top: 1em"> wget &minus;r &minus;l 0 &minus;p http://&lt;site&gt;/1.html</pre>
<pre style="margin-left:17%; margin-top: 1em"> wget -r -l 0 -p http://&lt;site&gt;/1.html</pre>
<p style="margin-left:17%; margin-top: 1em">would download
just <i>1.html</i> and <i>1.gif</i>, but unfortunately this
is not the case, because <b>&minus;l 0</b> is equivalent to
<b>&minus;l inf</b>&minus;&minus;&minus;that is, infinite
is not the case, because <b>-l 0</b> is equivalent to
<b>-l inf</b>---that is, infinite
recursion. To download a single <small>HTML</small> page (or
a handful of them, all specified on the command-line or in a
<b>&minus;i</b> <small>URL</small> input file) and its (or
their) requisites, simply leave off <b>&minus;r</b> and
<b>&minus;l</b>:</p>
<b>-i</b> <small>URL</small> input file) and its (or
their) requisites, simply leave off <b>-r</b> and
<b>-l</b>:</p>
<pre style="margin-left:17%; margin-top: 1em"> wget &minus;p http://&lt;site&gt;/1.html</pre>
<pre style="margin-left:17%; margin-top: 1em"> wget -p http://&lt;site&gt;/1.html</pre>
<p style="margin-left:17%; margin-top: 1em">Note that Wget
will behave as if <b>&minus;r</b> had been specified, but
will behave as if <b>-r</b> had been specified, but
only that single page and its requisites will be downloaded.
Links from that page to external documents will not be
followed. Actually, to download a single page and all its
requisites (even if they exist on separate websites), and
make sure the lot displays properly locally, this author
likes to use a few options in addition to
<b>&minus;p</b>:</p>
<b>-p</b>:</p>
<pre style="margin-left:17%; margin-top: 1em"> wget &minus;E &minus;H &minus;k &minus;K &minus;p http://&lt;site&gt;/&lt;document&gt;</pre>
<pre style="margin-left:17%; margin-top: 1em"> wget -E -H -k -K -p http://&lt;site&gt;/&lt;document&gt;</pre>
<p style="margin-left:17%; margin-top: 1em">To finish off
......@@ -3061,42 +3142,42 @@ specified in an <tt>&quot;&lt;A&gt;&quot;</tt> tag, an
REL=&quot;stylesheet&quot;&gt;&quot;</tt>.</p>
<p style="margin-left:11%;"><b>&minus;&minus;strict&minus;comments</b></p>
<p style="margin-left:11%;"><b>--strict-comments</b></p>
<p style="margin-left:17%;">Turn on strict parsing of
<small>HTML</small> comments. The default is to terminate
comments at the first occurrence of
<b>&minus;&minus;&gt;</b>.</p>
<b>--&gt;</b>.</p>
<p style="margin-left:17%; margin-top: 1em">According to
specifications, <small>HTML</small> comments are expressed
as <small>SGML</small> <i>declarations</i>. Declaration is
special markup that begins with <b>&lt;!</b> and ends with
<b>&gt;</b>, such as <b>&lt;!DOCTYPE ...&gt;</b>, that may
contain comments between a pair of <b>&minus;&minus;</b>
contain comments between a pair of <b>--</b>
delimiters. <small>HTML</small> comments are &quot;empty
declarations&quot;, <small>SGML</small> declarations without
any non-comment text. Therefore,
<b>&lt;!&minus;&minus;foo&minus;&minus;&gt;</b> is a valid
comment, and so is <b>&lt;!&minus;&minus;one--
&minus;&minus;two&minus;&minus;&gt;</b>, but
<b>&lt;!&minus;&minus;1&minus;&minus;2&minus;&minus;&gt;</b>
<b>&lt;!--foo--&gt;</b> is a valid
comment, and so is <b>&lt;!--one--
--two--&gt;</b>, but
<b>&lt;!--1--2--&gt;</b>
is not.</p>
<p style="margin-left:17%; margin-top: 1em">On the other
hand, most <small>HTML</small> writers don&rsquo;t perceive
comments as anything other than text delimited with
<b>&lt;!&minus;&minus;</b> and <b>&minus;&minus;&gt;</b>,
<b>&lt;!--</b> and <b>--&gt;</b>,
which is not quite the same. For example, something like
<b>&lt;!&minus;&minus;&minus;&minus;&minus;&minus;&minus;&minus;&minus;&minus;&minus;&minus;&gt;</b>
<b>&lt;!------------&gt;</b>
works as a valid comment as long as the number of dashes is
a multiple of four (!). If not, the comment technically
lasts until the next <b>&minus;&minus;</b>, which may be at
lasts until the next <b>--</b>, which may be at
the other end of the document. Because of this, many popular
browsers completely ignore the specification and implement
what users have come to expect: comments delimited with
<b>&lt;!&minus;&minus;</b> and
<b>&minus;&minus;&gt;</b>.</p>
<b>&lt;!--</b> and
<b>--&gt;</b>.</p>
<p style="margin-left:17%; margin-top: 1em">Until version
1.9, Wget interpreted comments strictly, which resulted in
......@@ -3105,7 +3186,7 @@ browsers, but had the misfortune of containing non-compliant
comments. Beginning with version 1.9, Wget has joined the
ranks of clients that implements &quot;naive&quot; comments,
terminating each comment at the first occurrence of
<b>&minus;&minus;&gt;</b>.</p>
<b>--&gt;</b>.</p>
<p style="margin-left:17%; margin-top: 1em">If, for
whatever reason, you want strict comment parsing, use this
......@@ -3113,9 +3194,9 @@ option to turn it on.</p>
<p style="margin-left:11%; margin-top: 1em"><b>Recursive
Accept/Reject Options <br>
&minus;A</b> <i>acclist</i> <b>&minus;&minus;accept</b>
-A</b> <i>acclist</i> <b>--accept</b>
<i>acclist</i> <b><br>
&minus;R</b> <i>rejlist</i> <b>&minus;&minus;reject</b>
-R</b> <i>rejlist</i> <b>--reject</b>
<i>rejlist</i></p>
<p style="margin-left:17%;">Specify comma-separated lists
......@@ -3125,19 +3206,19 @@ that if any of the wildcard characters, <b>*</b>, <b>?</b>,
or <i>rejlist</i>, it will be treated as a pattern, rather
than a suffix. In this case, you have to enclose the pattern
into quotes to prevent your shell from expanding it, like in
<b>&minus;A &quot;*.mp3&quot;</b> or <b>&minus;A
<b>-A &quot;*.mp3&quot;</b> or <b>-A
&rsquo;*.mp3&rsquo;</b>.</p>
<p style="margin-left:11%;"><b>&minus;&minus;accept&minus;regex</b>
<p style="margin-left:11%;"><b>--accept-regex</b>
<i>urlregex</i> <b><br>
&minus;&minus;reject&minus;regex</b> <i>urlregex</i></p>
--reject-regex</b> <i>urlregex</i></p>
<p style="margin-left:17%;">Specify a regular expression to
accept or reject the complete <small>URL.</small></p>
<p style="margin-left:11%;"><b>&minus;&minus;regex&minus;type</b>
<p style="margin-left:11%;"><b>--regex-type</b>
<i>regextype</i></p>
<p style="margin-left:17%;">Specify the regular expression
......@@ -3145,30 +3226,30 @@ type. Possible types are <b>posix</b> or <b>pcre</b>. Note
that to be able to use <b>pcre</b> type, wget has to be
compiled with libpcre support.</p>
<p style="margin-left:11%;"><b>&minus;D</b>
<p style="margin-left:11%;"><b>-D</b>
<i>domain-list</i> <b><br>
&minus;&minus;domains=</b><i>domain-list</i></p>
--domains=</b><i>domain-list</i></p>
<p style="margin-left:17%;">Set domains to be followed.
<i>domain-list</i> is a comma-separated list of domains.
Note that it does <i>not</i> turn on <b>&minus;H</b>.</p>
Note that it does <i>not</i> turn on <b>-H</b>.</p>
<p style="margin-left:11%;"><b>&minus;&minus;exclude&minus;domains</b>
<p style="margin-left:11%;"><b>--exclude-domains</b>
<i>domain-list</i></p>
<p style="margin-left:17%;">Specify the domains that are
<i>not</i> to be followed.</p>
<p style="margin-left:11%;"><b>&minus;&minus;follow&minus;ftp</b></p>
<p style="margin-left:11%;"><b>--follow-ftp</b></p>
<p style="margin-left:17%;">Follow <small>FTP</small> links
from <small>HTML</small> documents. Without this option,
Wget will ignore all the <small>FTP</small> links.</p>
<p style="margin-left:11%;"><b>&minus;&minus;follow&minus;tags=</b><i>list</i></p>
<p style="margin-left:11%;"><b>--follow-tags=</b><i>list</i></p>
<p style="margin-left:17%;">Wget has an internal table of
<small>HTML</small> tag / attribute pairs that it considers
......@@ -3178,10 +3259,10 @@ considered, however, he or she should be specify such tags
in a comma-separated <i>list</i> with this option.</p>
<p style="margin-left:11%;"><b>&minus;&minus;ignore&minus;tags=</b><i>list</i></p>
<p style="margin-left:11%;"><b>--ignore-tags=</b><i>list</i></p>
<p style="margin-left:17%;">This is the opposite of the
<b>&minus;&minus;follow&minus;tags</b> option. To skip
<b>--follow-tags</b> option. To skip
certain <small>HTML</small> tags when recursively looking
for documents to download, specify them in a comma-separated
<i>list</i>.</p>
......@@ -3190,7 +3271,7 @@ for documents to download, specify them in a comma-separated
this option was the best bet for downloading a single page
and its requisites, using a command-line like:</p>
<pre style="margin-left:17%; margin-top: 1em"> wget &minus;&minus;ignore&minus;tags=a,area &minus;H &minus;k &minus;K &minus;r http://&lt;site&gt;/&lt;document&gt;</pre>
<pre style="margin-left:17%; margin-top: 1em"> wget --ignore-tags=a,area -H -k -K -r http://&lt;site&gt;/&lt;document&gt;</pre>
<p style="margin-left:17%; margin-top: 1em">However, the
......@@ -3202,17 +3283,17 @@ One can&rsquo;t just tell Wget to ignore
<tt>&quot;&lt;LINK&gt;&quot;</tt>, because then stylesheets
will not be downloaded. Now the best bet for downloading a
single page and its requisites is the dedicated
<b>&minus;&minus;page&minus;requisites</b> option.</p>
<b>--page-requisites</b> option.</p>
<p style="margin-left:11%;"><b>&minus;&minus;ignore&minus;case</b></p>
<p style="margin-left:11%;"><b>--ignore-case</b></p>
<p style="margin-left:17%;">Ignore case when matching files
and directories. This influences the behavior of &minus;R,
&minus;A, &minus;I, and &minus;X options, as well as
and directories. This influences the behavior of -R,
-A, -I, and -X options, as well as
globbing implemented when downloading from
<small>FTP</small> sites. For example, with this option,
<b>&minus;A &quot;*.txt&quot;</b> will match
<b>-A &quot;*.txt&quot;</b> will match
<b>file1.txt</b>, but also <b>file2.TXT</b>,
<b>file3.TxT</b>, and so on. The quotes in the example are
to prevent the shell from expanding the pattern.</p>
......@@ -3224,13 +3305,13 @@ to prevent the shell from expanding the pattern.</p>
<td width="3%">
<p><b>&minus;H</b></p></td>
<p><b>-H</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;span&minus;hosts</b></p>
<p style="margin-left:11%;"><b>--span-hosts</b></p>
<p style="margin-left:17%;">Enable spanning across hosts
when doing recursive retrieving.</p>
......@@ -3242,29 +3323,29 @@ when doing recursive retrieving.</p>
<td width="3%">
<p><b>&minus;L</b></p></td>
<p><b>-L</b></p></td>
<td width="86%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;relative</b></p>
<p style="margin-left:11%;"><b>--relative</b></p>
<p style="margin-left:17%;">Follow relative links only.
Useful for retrieving a specific home page without any
distractions, not even those from the same hosts.</p>
<p style="margin-left:11%;"><b>&minus;I</b> <i>list</i>
<p style="margin-left:11%;"><b>-I</b> <i>list</i>
<b><br>
&minus;&minus;include&minus;directories=</b><i>list</i></p>
--include-directories=</b><i>list</i></p>
<p style="margin-left:17%;">Specify a comma-separated list
of directories you wish to follow when downloading. Elements
of <i>list</i> may contain wildcards.</p>
<p style="margin-left:11%;"><b>&minus;X</b> <i>list</i>
<p style="margin-left:11%;"><b>-X</b> <i>list</i>
<b><br>
&minus;&minus;exclude&minus;directories=</b><i>list</i></p>
--exclude-directories=</b><i>list</i></p>
<p style="margin-left:17%;">Specify a comma-separated list
of directories you wish to exclude from download. Elements
......@@ -3277,13 +3358,13 @@ of <i>list</i> may contain wildcards.</p>
<td width="4%">
<p><b>&minus;np</b></p></td>
<p><b>-np</b></p></td>
<td width="85%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>&minus;&minus;no&minus;parent</b></p>
<p style="margin-left:11%;"><b>--no-parent</b></p>
<p style="margin-left:17%;">Do not ever ascend to the
parent directory when retrieving recursively. This is a
......@@ -3365,7 +3446,7 @@ one of several error codes if it encounters problems.</p>
<td width="83%">
<p>Parse error&minus;&minus;&minus;for instance, when
<p>Parse error---for instance, when
parsing command-line options, the <b>.wgetrc</b> or
<b>.netrc</b>...</p> </td></tr>
<tr valign="top" align="left">
......@@ -3472,7 +3553,13 @@ download.</p>
<p style="margin-left:11%; margin-top: 1em">You are welcome
to submit bug reports via the <small>GNU</small> Wget bug
tracker (see
&lt;<b>https://savannah.gnu.org/bugs/?func=additem&amp;group=wget</b>&gt;).</p>
&lt;<b>https://savannah.gnu.org/bugs/?func=additem&amp;group=wget</b>&gt;)
or to our mailing list
&lt;<b>bug-wget@gnu.org</b>&gt;.</p>
<p style="margin-left:11%; margin-top: 1em">Visit
&lt;<b>https://lists.gnu.org/mailman/listinfo/bug-wget</b>&gt;
to get more info (how to subscribe, list archives, ...).</p>
<p style="margin-left:11%; margin-top: 1em">Before actually
submitting a bug report, please try to follow a few simple
......@@ -3508,8 +3595,8 @@ to double-check the documentation and the mailing lists.</p></td></tr>
<p>Try to repeat the bug in as simple circumstances as
possible. E.g. if Wget crashes while downloading <b>wget
&minus;rl0 &minus;kKE &minus;t5 &minus;&minus;no&minus;proxy
http://example.com &minus;o /tmp/log</b>, you should try to
-rl0 -kKE -t5 --no-proxy
http://example.com -o /tmp/log</b>, you should try to
see if the crash is repeatable, and if will occur with a
simpler set of options. You might even try to start the
download at the page where the crash occurred to see if that
......@@ -3537,21 +3624,21 @@ bug, mail me the relevant parts of the file.</p>
<p style="margin-top: 1em">Please start Wget with
<b>&minus;d</b> option and send us the resulting output (or
<b>-d</b> option and send us the resulting output (or
relevant parts thereof). If Wget was compiled without debug
support, recompile it&minus;&minus;&minus;it is <i>much</i>
support, recompile it---it is <i>much</i>
easier to trace bugs with debug support on.</p></td></tr>
</table>
<p style="margin-left:17%; margin-top: 1em">Note: please
make sure to remove any potentially sensitive information
from the debug log before sending it to the bug address. The
<tt>&quot;&minus;d&quot;</tt> won&rsquo;t go out of its way
<tt>&quot;-d&quot;</tt> won&rsquo;t go out of its way
to collect sensitive information, but the log <i>will</i>
contain a fairly complete transcript of Wget&rsquo;s
communication with the server, which may include passwords
and pieces of downloaded data. Since the bug address is
publically archived, you may assume that all bug reports are
publicly archived, you may assume that all bug reports are
visible to the public.</p>
<table width="100%" border="0" rules="none" frame="void"
......@@ -3583,7 +3670,7 @@ has disabled core files, but it is safe to try.</p></td></tr>
For more complete information, including more detailed
explanations of some of the options, and a number of
commands available for use with <i>.wgetrc</i> files and the
<b>&minus;e</b> option, see the <small>GNU</small> Info
<b>-e</b> option, see the <small>GNU</small> Info
entry for <i>wget</i>.</p>
<h2>AUTHOR
......@@ -3601,8 +3688,7 @@ written by Hrvoje Nik&Aring;&iexcl;i&Auml;
<p style="margin-left:11%; margin-top: 1em">Copyright (c)
1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2015 Free Software
1996-2011, 2015, 2018-2019 Free Software
Foundation, Inc.</p>
<p style="margin-left:11%; margin-top: 1em">Permission is
......
###
### Sample Wget initialization file .wgetrc
###
## You can use this file to change the default behaviour of wget or to
## avoid having to type many many command-line options. This file does
## not contain a comprehensive list of commands -- look at the manual
## to find out what you can put into this file. You can find this here:
## $ info wget.info 'Startup File'
## Or online here:
## https://www.gnu.org/software/wget/manual/wget.html#Startup-File
##
## Wget initialization file can reside in /usr/local/etc/wgetrc
## (global, for all users) or $HOME/.wgetrc (for a single user).
##
## To use the settings in this file, you will have to uncomment them,
## as well as change them, in most cases, as the values on the
## commented-out lines are the default values (e.g. "off").
##
## Command are case-, underscore- and minus-insensitive.
## For example ftp_proxy, ftp-proxy and ftpproxy are the same.
##
## Global settings (useful for setting up in /usr/local/etc/wgetrc).
## Think well before you change them, since they may reduce wget's
## functionality, and make it behave contrary to the documentation:
##
# You can set retrieve quota for beginners by specifying a value
# optionally followed by 'K' (kilobytes) or 'M' (megabytes). The
# default quota is unlimited.
#quota = inf
# You can lower (or raise) the default number of retries when
# downloading a file (default is 20).
#tries = 20
# Lowering the maximum depth of the recursive retrieval is handy to
# prevent newbies from going too "deep" when they unwittingly start
# the recursive retrieval. The default is 5.
#reclevel = 5
# By default Wget uses "passive FTP" transfer where the client
# initiates the data connection to the server rather than the other
# way around. That is required on systems behind NAT where the client
# computer cannot be easily reached from the Internet. However, some
# firewalls software explicitly supports active FTP and in fact has
# problems supporting passive transfer. If you are in such
# environment, use "passive_ftp = off" to revert to active FTP.
#passive_ftp = off
# The "wait" command below makes Wget wait between every connection.
# If, instead, you want Wget to wait only between retries of failed
# downloads, set waitretry to maximum number of seconds to wait (Wget
# will use "linear backoff", waiting 1 second after the first failure
# on a file, 2 seconds after the second failure, etc. up to this max).
#waitretry = 10
##
## Local settings (for a user to set in his $HOME/.wgetrc). It is
## *highly* undesirable to put these settings in the global file, since
## they are potentially dangerous to "normal" users.
##
## Even when setting up your own ~/.wgetrc, you should know what you
## are doing before doing so.
##
# Set this to on to use timestamping by default:
#timestamping = off
# It is a good idea to make Wget send your email address in a `From:'
# header with your request (so that server administrators can contact
# you in case of errors). Wget does *not* send `From:' by default.
#header = From: Your Name <username@site.domain>
# You can set up other headers, like Accept-Language. Accept-Language
# is *not* sent by default.
#header = Accept-Language: en
# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
#https_proxy = http://proxy.yoyodyne.com:18023/
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/
# If you do not want to use proxy at all, set this to off.
#use_proxy = on
# You can customize the retrieval outlook. Valid options are default,
# binary, mega and micro.
#dot_style = default
# Setting this to off makes Wget not download /robots.txt. Be sure to
# know *exactly* what /robots.txt is and how it is used before changing
# the default!
#robots = on
# It can be useful to make Wget wait between connections. Set this to
# the number of seconds you want Wget to wait.
#wait = 0
# You can force creating directory structure, even if a single is being
# retrieved, by setting this to on.
#dirstruct = off
# You can turn on recursive retrieving by default (don't do this if
# you are not sure you know what it means) by setting this to on.
#recursive = off
# To always back up file X as X.orig before converting its links (due
# to -k / --convert-links / convert_links = on having been specified),
# set this variable to on:
#backup_converted = off
# To have Wget follow FTP links from HTML files by default, set this
# to on:
#follow_ftp = off
# To try ipv6 addresses first:
#prefer-family = IPv6
# Set default IRI support state
#iri = off
# Force the default system encoding
#localencoding = UTF-8
# Force the default remote server encoding
#remoteencoding = UTF-8
# Turn on to prevent following non-HTTPS links when in recursive mode
#httpsonly = off
# Tune HTTPS security (auto, SSLv2, SSLv3, TLSv1, PFS)
#secureprotocol = auto
......@@ -554,9 +554,7 @@ if (WIN32)
set(OP_WIN_DIR "${CMAKE_SOURCE_DIR}/3rdparty/windows")
# Download required zip files
download_zip("opencv_420_v14_15_2020_04_04.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} 59da628c17fe0f4755d22ff86dbb8c06)
# download_zip("caffe3rdparty_2019_03_12.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} 34c49be6a2418fd1670b46fc455eebc0)
# download_zip("caffe3rdparty_15_2019_03_14.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} 9fcc6bdf4765db699d1a279c8d6b830b)
download_zip("opencv_450_v15_2020_11_18.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} AFB1BD1A160C43CF5FB856C8BB4FC483)
download_zip("caffe3rdparty_16_2020_11_14.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} 83C17DC4473985B6AB3A29FD9AB93409)
if (${GPU_MODE} MATCHES "OPENCL")
download_zip("caffe_opencl_2018_02_13.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} 3ac3e1acf5ee6a4e57920be73053067a)
......@@ -573,8 +571,8 @@ if (WIN32)
message(STATUS "Windows dependencies downloaded.")
set(OPENCV_VS_VERSION "15")
find_library(OpenCV_LIBS_RELEASE opencv_world420 HINTS ${FIND_LIB_PREFIX}/opencv/x64/vc${OPENCV_VS_VERSION}/lib)
find_library(OpenCV_LIBS_DEBUG opencv_world420d HINTS ${FIND_LIB_PREFIX}/opencv/x64/vc${OPENCV_VS_VERSION}/lib)
find_library(OpenCV_LIBS_RELEASE opencv_world450 HINTS ${FIND_LIB_PREFIX}/opencv/x64/vc${OPENCV_VS_VERSION}/lib)
find_library(OpenCV_LIBS_DEBUG opencv_world450d HINTS ${FIND_LIB_PREFIX}/opencv/x64/vc${OPENCV_VS_VERSION}/lib)
find_library(GFLAGS_LIBRARY_RELEASE gflags HINTS ${FIND_LIB_PREFIX}/caffe3rdparty/lib)
find_library(GFLAGS_LIBRARY_DEBUG gflagsd HINTS ${FIND_LIB_PREFIX}/caffe3rdparty/lib)
find_library(GLOG_LIBRARY_RELEASE glog HINTS ${FIND_LIB_PREFIX}/caffe3rdparty/lib)
......
......@@ -2,13 +2,13 @@
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LocalDebuggerEnvironment>PATH=%PATH%;3rdparty\windows\caffe\bin\;3rdparty\windows\opencv\x64\vc14\bin;3rdparty\windows\freeglut\bin\;3rdparty\windows\spinnaker\bin\</LocalDebuggerEnvironment>
<LocalDebuggerEnvironment>PATH=%PATH%;3rdparty\windows\caffe\bin\;3rdparty\windows\opencv\x64\vc15\bin;3rdparty\windows\freeglut\bin\;3rdparty\windows\spinnaker\bin\</LocalDebuggerEnvironment>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerWorkingDirectory>..\..\..</LocalDebuggerWorkingDirectory>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LocalDebuggerEnvironment>PATH=%PATH%;3rdparty\windows\caffe\bin\;3rdparty\windows\opencv\x64\vc14\bin;3rdparty\windows\freeglut\bin\;3rdparty\windows\spinnaker\bin\</LocalDebuggerEnvironment>
<LocalDebuggerEnvironment>PATH=%PATH%;3rdparty\windows\caffe\bin\;3rdparty\windows\opencv\x64\vc15\bin;3rdparty\windows\freeglut\bin\;3rdparty\windows\spinnaker\bin\</LocalDebuggerEnvironment>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerWorkingDirectory>..\..\..</LocalDebuggerWorkingDirectory>
</PropertyGroup>
......
......@@ -2,13 +2,13 @@
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LocalDebuggerEnvironment>PATH=%PATH%;3rdparty\windows\caffe_opencl\bin\;3rdparty\windows\opencv\x64\vc14\bin;3rdparty\windows\freeglut\bin\;3rdparty\windows\spinnaker\bin\</LocalDebuggerEnvironment>
<LocalDebuggerEnvironment>PATH=%PATH%;3rdparty\windows\caffe_opencl\bin\;3rdparty\windows\opencv\x64\vc15\bin;3rdparty\windows\freeglut\bin\;3rdparty\windows\spinnaker\bin\</LocalDebuggerEnvironment>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerWorkingDirectory>..\..\..</LocalDebuggerWorkingDirectory>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LocalDebuggerEnvironment>PATH=%PATH%;3rdparty\windows\caffe_opencl\bin\;3rdparty\windows\opencv\x64\vc14\bin;3rdparty\windows\freeglut\bin\;3rdparty\windows\spinnaker\bin\</LocalDebuggerEnvironment>
<LocalDebuggerEnvironment>PATH=%PATH%;3rdparty\windows\caffe_opencl\bin\;3rdparty\windows\opencv\x64\vc15\bin;3rdparty\windows\freeglut\bin\;3rdparty\windows\spinnaker\bin\</LocalDebuggerEnvironment>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerWorkingDirectory>..\..\..</LocalDebuggerWorkingDirectory>
</PropertyGroup>
......
......@@ -2,13 +2,13 @@
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LocalDebuggerEnvironment>PATH=%PATH%;3rdparty\windows\caffe_cpu\bin\;3rdparty\windows\opencv\x64\vc14\bin;3rdparty\windows\freeglut\bin\;3rdparty\windows\spinnaker\bin\</LocalDebuggerEnvironment>
<LocalDebuggerEnvironment>PATH=%PATH%;3rdparty\windows\caffe_cpu\bin\;3rdparty\windows\opencv\x64\vc15\bin;3rdparty\windows\freeglut\bin\;3rdparty\windows\spinnaker\bin\</LocalDebuggerEnvironment>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerWorkingDirectory>..\..\..</LocalDebuggerWorkingDirectory>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LocalDebuggerEnvironment>PATH=%PATH%;3rdparty\windows\caffe_cpu\bin\;3rdparty\windows\opencv\x64\vc14\bin;3rdparty\windows\freeglut\bin\;3rdparty\windows\spinnaker\bin\</LocalDebuggerEnvironment>
<LocalDebuggerEnvironment>PATH=%PATH%;3rdparty\windows\caffe_cpu\bin\;3rdparty\windows\opencv\x64\vc15\bin;3rdparty\windows\freeglut\bin\;3rdparty\windows\spinnaker\bin\</LocalDebuggerEnvironment>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerWorkingDirectory>..\..\..</LocalDebuggerWorkingDirectory>
</PropertyGroup>
......
......@@ -141,7 +141,7 @@ Note: This installer will not incorporate any new features, we recommend to use
- Dependencies:
- [Caffe](http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/caffe_16_2020_11_14.zip): Unzip as `3rdparty/windows/caffe/`.
- [Caffe dependencies](http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/caffe3rdparty_16_2020_11_14.zip): Unzip as `3rdparty/windows/caffe3rdparty/`.
- [OpenCV 4.2.0](http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/opencv_420_v14_15_2020_04_04.zip): Unzip as `3rdparty/windows/opencv/`.
- [OpenCV 4.2.0](http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/opencv_450_v15_2020_11_18.zip): Unzip as `3rdparty/windows/opencv/`.
2. Open the Visual Studio project sln file by double-cliking on `{openpose_path}\windows\OpenPose.sln`.
3. In order to verify OpenPose is working, try compiling and executing the demo:
1. Right click on `OpenPoseDemo` --> `Set as StartUp Project`.
......@@ -150,7 +150,7 @@ Note: This installer will not incorporate any new features, we recommend to use
4. If you have a webcam connected, OpenPose will automatically start after being compiled.
5. In order to use the created exe file from the command line (i.e., outside Visual Studio), you have to:
1. Copy all the DLLs located on `{openpose_folder}\3rdparty\windows\caffe\bin\` on the exe folder: `{openpose_folder}\windows\x64\Release`.
2. Copy all the DLLs located on `{openpose_folder}\3rdparty\windows\opencv\x64\vc14\bin\` on the exe folder: `{openpose_folder}\windows\x64\Release`.
2. Copy all the DLLs located on `{openpose_folder}\3rdparty\windows\opencv\x64\vc15\bin\` on the exe folder: `{openpose_folder}\windows\x64\Release`.
3. Open the Windows cmd (Windows button + <kbd>X</kbd>, then <kbd>A</kbd>).
4. Go to the OpenPose directory, assuming OpenPose has been downloaded on `C:\openpose`: `cd C:\openpose\`.
5. Run the tutorial commands.
......
......@@ -106,7 +106,7 @@ NOTE: These instructions are only required when compiling OpenPose brom source.
- [CPU Caffe](http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/caffe_cpu_2018_05_27.zip): Unzip as `3rdparty/windows/caffe_cpu/`.
- [OpenCL Caffe](http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/caffe_opencl_2018_02_13.zip): Unzip as `3rdparty/windows/caffe_opencl/`.
- [Caffe dependencies](http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/caffe3rdparty_16_2020_11_14.zip): Unzip as `3rdparty/windows/caffe3rdparty/`.
- [OpenCV 4.2.0](http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/opencv_420_v14_15_2020_04_04.zip): Unzip as `3rdparty/windows/opencv/`.
- [OpenCV 4.2.0](http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/opencv_450_v15_2020_11_18.zip): Unzip as `3rdparty/windows/opencv/`.
6. **Eigen prerequisite** (optional, only required for some specific extra functionality, such as extrinsic camera calibration):
- Enable the `WITH_EIGEN` flag when running CMake, and set it to `BUILD`.
- CMake will automatically download Eigen.
......
......@@ -433,8 +433,13 @@ OpenPose Library - Release Notes
## Current version - Future OpenPose 1.7.1
1. Main improvements:
1. Webcam speed boosted on Windows (by updating OpenCV).
2. Third party versions updated:
1. OpenCV: from 4.2 to 4.5.
2. `wget`: from 1.19.1 to 1.20.3.
2. Functions or parameters renamed:
3. Main bugs fixed:
1. Windows links to the right OpenCV DLL Files (v15, while it was linking to v14).
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册