wget: Download Options

1 
1 2.5 Download Options
1 ====================
1 
1 ‘--bind-address=ADDRESS’
1      When making client TCP/IP connections, bind to ADDRESS on the local
1      machine.  ADDRESS may be specified as a hostname or IP address.
1      This option can be useful if your machine is bound to multiple IPs.
1 
1 ‘--bind-dns-address=ADDRESS’
1      [libcares only] This address overrides the route for DNS requests.
1      If you ever need to circumvent the standard settings from
1      /etc/resolv.conf, this option together with ‘--dns-servers’ is your
1      friend.  ADDRESS must be specified either as IPv4 or IPv6 address.
1      Wget needs to be built with libcares for this option to be
1      available.
1 
1 ‘--dns-servers=ADDRESSES’
1      [libcares only] The given address(es) override the standard
1      nameserver addresses, e.g.  as configured in /etc/resolv.conf.
1      ADDRESSES may be specified either as IPv4 or IPv6 addresses,
1      comma-separated.  Wget needs to be built with libcares for this
1      option to be available.
1 
1 ‘-t NUMBER’
1 ‘--tries=NUMBER’
1      Set number of tries to NUMBER.  Specify 0 or ‘inf’ for infinite
1      retrying.  The default is to retry 20 times, with the exception of
1      fatal errors like “connection refused” or “not found” (404), which
1      are not retried.
1 
1 ‘-O FILE’
1 ‘--output-document=FILE’
1      The documents will not be written to the appropriate files, but all
1      will be concatenated together and written to FILE.  If ‘-’ is used
1      as FILE, documents will be printed to standard output, disabling
1      link conversion.  (Use ‘./-’ to print to a file literally named
1      ‘-’.)
1 
1      Use of ‘-O’ is _not_ intended to mean simply “use the name FILE
1      instead of the one in the URL;” rather, it is analogous to shell
1      redirection: ‘wget -O file http://foo’ is intended to work like
1      ‘wget -O - http://foo > file’; ‘file’ will be truncated
1      immediately, and _all_ downloaded content will be written there.
1 
1      For this reason, ‘-N’ (for timestamp-checking) is not supported in
1      combination with ‘-O’: since FILE is always newly created, it will
1      always have a very new timestamp.  A warning will be issued if this
1      combination is used.
1 
1      Similarly, using ‘-r’ or ‘-p’ with ‘-O’ may not work as you expect:
1      Wget won’t just download the first file to FILE and then download
1      the rest to their normal names: _all_ downloaded content will be
1      placed in FILE.  This was disabled in version 1.11, but has been
1      reinstated (with a warning) in 1.11.2, as there are some cases
1      where this behavior can actually have some use.
1 
1      A combination with ‘-nc’ is only accepted if the given output file
1      does not exist.
1 
1      Note that a combination with ‘-k’ is only permitted when
1      downloading a single document, as in that case it will just convert
1      all relative URIs to external ones; ‘-k’ makes no sense for
1      multiple URIs when they’re all being downloaded to a single file;
1      ‘-k’ can be used only when the output is a regular file.
1 
1 ‘-nc’
1 ‘--no-clobber’
1      If a file is downloaded more than once in the same directory,
1      Wget’s behavior depends on a few options, including ‘-nc’.  In
1      certain cases, the local file will be “clobbered”, or overwritten,
1      upon repeated download.  In other cases it will be preserved.
1 
1      When running Wget without ‘-N’, ‘-nc’, ‘-r’, or ‘-p’, downloading
1      the same file in the same directory will result in the original
1      copy of FILE being preserved and the second copy being named
1      ‘FILE.1’.  If that file is downloaded yet again, the third copy
1      will be named ‘FILE.2’, and so on.  (This is also the behavior with
1      ‘-nd’, even if ‘-r’ or ‘-p’ are in effect.)  When ‘-nc’ is
1      specified, this behavior is suppressed, and Wget will refuse to
1      download newer copies of ‘FILE’.  Therefore, “‘no-clobber’” is
1      actually a misnomer in this mode—it’s not clobbering that’s
1      prevented (as the numeric suffixes were already preventing
1      clobbering), but rather the multiple version saving that’s
1      prevented.
1 
1      When running Wget with ‘-r’ or ‘-p’, but without ‘-N’, ‘-nd’, or
1      ‘-nc’, re-downloading a file will result in the new copy simply
1      overwriting the old.  Adding ‘-nc’ will prevent this behavior,
1      instead causing the original version to be preserved and any newer
1      copies on the server to be ignored.
1 
1      When running Wget with ‘-N’, with or without ‘-r’ or ‘-p’, the
1      decision as to whether or not to download a newer copy of a file
1      depends on the local and remote timestamp and size of the file
1      (⇒Time-Stamping).  ‘-nc’ may not be specified at the same
1      time as ‘-N’.
1 
1      A combination with ‘-O’/‘--output-document’ is only accepted if the
1      given output file does not exist.
1 
1      Note that when ‘-nc’ is specified, files with the suffixes ‘.html’
1      or ‘.htm’ will be loaded from the local disk and parsed as if they
1      had been retrieved from the Web.
1 
1 ‘--backups=BACKUPS’
1      Before (over)writing a file, back up an existing file by adding a
1      ‘.1’ suffix (‘_1’ on VMS) to the file name.  Such backup files are
1      rotated to ‘.2’, ‘.3’, and so on, up to BACKUPS (and lost beyond
1      that).
1 
1 ‘--no-netrc’
1      Do not try to obtain credentials from ‘.netrc’ file.  By default
1      ‘.netrc’ file is searched for credentials in case none have been
1      passed on command line and authentication is required.
1 
1 ‘-c’
1 ‘--continue’
1      Continue getting a partially-downloaded file.  This is useful when
1      you want to finish up a download started by a previous instance of
1      Wget, or by another program.  For instance:
1 
1           wget -c ftp://sunsite.doc.ic.ac.uk/ls-lR.Z
1 
1      If there is a file named ‘ls-lR.Z’ in the current directory, Wget
1      will assume that it is the first portion of the remote file, and
1      will ask the server to continue the retrieval from an offset equal
1      to the length of the local file.
1 
1      Note that you don’t need to specify this option if you just want
1      the current invocation of Wget to retry downloading a file should
1      the connection be lost midway through.  This is the default
1      behavior.  ‘-c’ only affects resumption of downloads started
1      _prior_ to this invocation of Wget, and whose local files are still
1      sitting around.
1 
1      Without ‘-c’, the previous example would just download the remote
1      file to ‘ls-lR.Z.1’, leaving the truncated ‘ls-lR.Z’ file alone.
1 
1      If you use ‘-c’ on a non-empty file, and the server does not
1      support continued downloading, Wget will restart the download from
1      scratch and overwrite the existing file entirely.
1 
1      Beginning with Wget 1.7, if you use ‘-c’ on a file which is of
1      equal size as the one on the server, Wget will refuse to download
1      the file and print an explanatory message.  The same happens when
1      the file is smaller on the server than locally (presumably because
1      it was changed on the server since your last download
1      attempt)—because “continuing” is not meaningful, no download
1      occurs.
1 
1      On the other side of the coin, while using ‘-c’, any file that’s
1      bigger on the server than locally will be considered an incomplete
1      download and only ‘(length(remote) - length(local))’ bytes will be
1      downloaded and tacked onto the end of the local file.  This
1      behavior can be desirable in certain cases—for instance, you can
1      use ‘wget -c’ to download just the new portion that’s been appended
1      to a data collection or log file.
1 
1      However, if the file is bigger on the server because it’s been
1      _changed_, as opposed to just _appended_ to, you’ll end up with a
1      garbled file.  Wget has no way of verifying that the local file is
1      really a valid prefix of the remote file.  You need to be
1      especially careful of this when using ‘-c’ in conjunction with
1      ‘-r’, since every file will be considered as an "incomplete
1      download" candidate.
1 
1      Another instance where you’ll get a garbled file if you try to use
1      ‘-c’ is if you have a lame HTTP proxy that inserts a “transfer
1      interrupted” string into the local file.  In the future a
1      “rollback” option may be added to deal with this case.
1 
1      Note that ‘-c’ only works with FTP servers and with HTTP servers
1      that support the ‘Range’ header.
1 
1 ‘--start-pos=OFFSET’
1      Start downloading at zero-based position OFFSET.  Offset may be
1      expressed in bytes, kilobytes with the ‘k’ suffix, or megabytes
1      with the ‘m’ suffix, etc.
1 
1      ‘--start-pos’ has higher precedence over ‘--continue’.  When
1      ‘--start-pos’ and ‘--continue’ are both specified, wget will emit a
1      warning then proceed as if ‘--continue’ was absent.
1 
1      Server support for continued download is required, otherwise
1      ‘--start-pos’ cannot help.  See ‘-c’ for details.
1 
1 ‘--progress=TYPE’
1      Select the type of the progress indicator you wish to use.  Legal
1      indicators are “dot” and “bar”.
1 
1      The “bar” indicator is used by default.  It draws an ASCII progress
1      bar graphics (a.k.a “thermometer” display) indicating the status of
1      retrieval.  If the output is not a TTY, the “dot” bar will be used
1      by default.
1 
1      Use ‘--progress=dot’ to switch to the “dot” display.  It traces the
1      retrieval by printing dots on the screen, each dot representing a
1      fixed amount of downloaded data.
1 
1      The progress TYPE can also take one or more parameters.  The
1      parameters vary based on the TYPE selected.  Parameters to TYPE are
1      passed by appending them to the type sperated by a colon (:) like
1      this: ‘--progress=TYPE:PARAMETER1:PARAMETER2’.
1 
1      When using the dotted retrieval, you may set the “style” by
1      specifying the type as ‘dot:STYLE’.  Different styles assign
1      different meaning to one dot.  With the ‘default’ style each dot
1      represents 1K, there are ten dots in a cluster and 50 dots in a
1      line.  The ‘binary’ style has a more “computer”-like orientation—8K
1      dots, 16-dots clusters and 48 dots per line (which makes for 384K
1      lines).  The ‘mega’ style is suitable for downloading large
1      files—each dot represents 64K retrieved, there are eight dots in a
1      cluster, and 48 dots on each line (so each line contains 3M). If
1      ‘mega’ is not enough then you can use the ‘giga’ style—each dot
1      represents 1M retrieved, there are eight dots in a cluster, and 32
1      dots on each line (so each line contains 32M).
1 
1      With ‘--progress=bar’, there are currently two possible parameters,
1      FORCE and NOSCROLL.
1 
1      When the output is not a TTY, the progress bar always falls back to
1      “dot”, even if ‘--progress=bar’ was passed to Wget during
1      invocation.  This behaviour can be overridden and the “bar” output
1      forced by using the “force” parameter as ‘--progress=bar:force’.
1 
1      By default, the ‘bar’ style progress bar scroll the name of the
1      file from left to right for the file being downloaded if the
1      filename exceeds the maximum length allotted for its display.  In
1      certain cases, such as with ‘--progress=bar:force’, one may not
1      want the scrolling filename in the progress bar.  By passing the
1      “noscroll” parameter, Wget can be forced to display as much of the
1      filename as possible without scrolling through it.
1 
1      Note that you can set the default style using the ‘progress’
1      command in ‘.wgetrc’.  That setting may be overridden from the
1      command line.  For example, to force the bar output without
1      scrolling, use ‘--progress=bar:force:noscroll’.
1 
1 ‘--show-progress’
1      Force wget to display the progress bar in any verbosity.
1 
1      By default, wget only displays the progress bar in verbose mode.
1      One may however, want wget to display the progress bar on screen in
1      conjunction with any other verbosity modes like ‘--no-verbose’ or
1      ‘--quiet’.  This is often a desired a property when invoking wget
1      to download several small/large files.  In such a case, wget could
1      simply be invoked with this parameter to get a much cleaner output
1      on the screen.
1 
1      This option will also force the progress bar to be printed to
1      ‘stderr’ when used alongside the ‘--logfile’ option.
1 
1 ‘-N’
1 ‘--timestamping’
1      Turn on time-stamping.  ⇒Time-Stamping, for details.
1 
1 ‘--no-if-modified-since’
1      Do not send If-Modified-Since header in ‘-N’ mode.  Send
1      preliminary HEAD request instead.  This has only effect in ‘-N’
1      mode.
1 
1 ‘--no-use-server-timestamps’
1      Don’t set the local file’s timestamp by the one on the server.
1 
1      By default, when a file is downloaded, its timestamps are set to
1      match those from the remote file.  This allows the use of
1      ‘--timestamping’ on subsequent invocations of wget.  However, it is
1      sometimes useful to base the local file’s timestamp on when it was
1      actually downloaded; for that purpose, the
1      ‘--no-use-server-timestamps’ option has been provided.
1 
1 ‘-S’
1 ‘--server-response’
1      Print the headers sent by HTTP servers and responses sent by FTP
1      servers.
1 
1 ‘--spider’
1      When invoked with this option, Wget will behave as a Web “spider”,
1      which means that it will not download the pages, just check that
1      they are there.  For example, you can use Wget to check your
1      bookmarks:
1 
1           wget --spider --force-html -i bookmarks.html
1 
1      This feature needs much more work for Wget to get close to the
1      functionality of real web spiders.
1 
1 ‘-T seconds’
1 ‘--timeout=SECONDS’
1      Set the network timeout to SECONDS seconds.  This is equivalent to
1      specifying ‘--dns-timeout’, ‘--connect-timeout’, and
1      ‘--read-timeout’, all at the same time.
1 
1      When interacting with the network, Wget can check for timeout and
1      abort the operation if it takes too long.  This prevents anomalies
1      like hanging reads and infinite connects.  The only timeout enabled
1      by default is a 900-second read timeout.  Setting a timeout to 0
1      disables it altogether.  Unless you know what you are doing, it is
1      best not to change the default timeout settings.
1 
1      All timeout-related options accept decimal values, as well as
1      subsecond values.  For example, ‘0.1’ seconds is a legal (though
1      unwise) choice of timeout.  Subsecond timeouts are useful for
1      checking server response times or for testing network latency.
1 
1 ‘--dns-timeout=SECONDS’
1      Set the DNS lookup timeout to SECONDS seconds.  DNS lookups that
1      don’t complete within the specified time will fail.  By default,
1      there is no timeout on DNS lookups, other than that implemented by
1      system libraries.
1 
1 ‘--connect-timeout=SECONDS’
1      Set the connect timeout to SECONDS seconds.  TCP connections that
1      take longer to establish will be aborted.  By default, there is no
1      connect timeout, other than that implemented by system libraries.
1 
1 ‘--read-timeout=SECONDS’
1      Set the read (and write) timeout to SECONDS seconds.  The “time” of
1      this timeout refers to “idle time”: if, at any point in the
1      download, no data is received for more than the specified number of
1      seconds, reading fails and the download is restarted.  This option
1      does not directly affect the duration of the entire download.
1 
1      Of course, the remote server may choose to terminate the connection
1      sooner than this option requires.  The default read timeout is 900
1      seconds.
1 
1 ‘--limit-rate=AMOUNT’
1      Limit the download speed to AMOUNT bytes per second.  Amount may be
1      expressed in bytes, kilobytes with the ‘k’ suffix, or megabytes
1      with the ‘m’ suffix.  For example, ‘--limit-rate=20k’ will limit
1      the retrieval rate to 20KB/s.  This is useful when, for whatever
1      reason, you don’t want Wget to consume the entire available
1      bandwidth.
1 
1      This option allows the use of decimal numbers, usually in
1      conjunction with power suffixes; for example, ‘--limit-rate=2.5k’
1      is a legal value.
1 
1      Note that Wget implements the limiting by sleeping the appropriate
1      amount of time after a network read that took less time than
1      specified by the rate.  Eventually this strategy causes the TCP
1      transfer to slow down to approximately the specified rate.
1      However, it may take some time for this balance to be achieved, so
1      don’t be surprised if limiting the rate doesn’t work well with very
1      small files.
1 
1 ‘-w SECONDS’
1 ‘--wait=SECONDS’
1      Wait the specified number of seconds between the retrievals.  Use
1      of this option is recommended, as it lightens the server load by
1      making the requests less frequent.  Instead of in seconds, the time
1      can be specified in minutes using the ‘m’ suffix, in hours using
1      ‘h’ suffix, or in days using ‘d’ suffix.
1 
1      Specifying a large value for this option is useful if the network
1      or the destination host is down, so that Wget can wait long enough
1      to reasonably expect the network error to be fixed before the
1      retry.  The waiting interval specified by this function is
1      influenced by ‘--random-wait’, which see.
1 
1 ‘--waitretry=SECONDS’
1      If you don’t want Wget to wait between _every_ retrieval, but only
1      between retries of failed downloads, you can use this option.  Wget
1      will use “linear backoff”, waiting 1 second after the first failure
1      on a given file, then waiting 2 seconds after the second failure on
1      that file, up to the maximum number of SECONDS you specify.
1 
1      By default, Wget will assume a value of 10 seconds.
1 
1 ‘--random-wait’
1      Some web sites may perform log analysis to identify retrieval
1      programs such as Wget by looking for statistically significant
1      similarities in the time between requests.  This option causes the
1      time between requests to vary between 0.5 and 1.5 * WAIT seconds,
1      where WAIT was specified using the ‘--wait’ option, in order to
1      mask Wget’s presence from such analysis.
1 
1      A 2001 article in a publication devoted to development on a popular
1      consumer platform provided code to perform this analysis on the
1      fly.  Its author suggested blocking at the class C address level to
1      ensure automated retrieval programs were blocked despite changing
1      DHCP-supplied addresses.
1 
1      The ‘--random-wait’ option was inspired by this ill-advised
1      recommendation to block many unrelated users from a web site due to
1      the actions of one.
1 
1 ‘--no-proxy’
1      Don’t use proxies, even if the appropriate ‘*_proxy’ environment
1      variable is defined.
1 
1      ⇒Proxies, for more information about the use of proxies with
1      Wget.
1 
1 ‘-Q QUOTA’
1 ‘--quota=QUOTA’
1      Specify download quota for automatic retrievals.  The value can be
1      specified in bytes (default), kilobytes (with ‘k’ suffix), or
1      megabytes (with ‘m’ suffix).
1 
1      Note that quota will never affect downloading a single file.  So if
1      you specify ‘wget -Q10k https://example.com/ls-lR.gz’, all of the
1      ‘ls-lR.gz’ will be downloaded.  The same goes even when several
1      URLs are specified on the command-line.  However, quota is
1      respected when retrieving either recursively, or from an input
1      file.  Thus you may safely type ‘wget -Q2m -i sites’—download will
1      be aborted when the quota is exceeded.
1 
1      Setting quota to 0 or to ‘inf’ unlimits the download quota.
1 
1 ‘--no-dns-cache’
1      Turn off caching of DNS lookups.  Normally, Wget remembers the IP
1      addresses it looked up from DNS so it doesn’t have to repeatedly
1      contact the DNS server for the same (typically small) set of hosts
1      it retrieves from.  This cache exists in memory only; a new Wget
1      run will contact DNS again.
1 
1      However, it has been reported that in some situations it is not
1      desirable to cache host names, even for the duration of a
1      short-running application like Wget.  With this option Wget issues
1      a new DNS lookup (more precisely, a new call to ‘gethostbyname’ or
1      ‘getaddrinfo’) each time it makes a new connection.  Please note
1      that this option will _not_ affect caching that might be performed
1      by the resolving library or by an external caching layer, such as
1      NSCD.
1 
1      If you don’t understand exactly what this option does, you probably
1      won’t need it.
1 
1 ‘--restrict-file-names=MODES’
1      Change which characters found in remote URLs must be escaped during
1      generation of local filenames.  Characters that are “restricted” by
1      this option are escaped, i.e.  replaced with ‘%HH’, where ‘HH’ is
1      the hexadecimal number that corresponds to the restricted
1      character.  This option may also be used to force all alphabetical
1      cases to be either lower- or uppercase.
1 
1      By default, Wget escapes the characters that are not valid or safe
1      as part of file names on your operating system, as well as control
1      characters that are typically unprintable.  This option is useful
1      for changing these defaults, perhaps because you are downloading to
1      a non-native partition, or because you want to disable escaping of
1      the control characters, or you want to further restrict characters
1      to only those in the ASCII range of values.
1 
1      The MODES are a comma-separated set of text values.  The acceptable
1      values are ‘unix’, ‘windows’, ‘nocontrol’, ‘ascii’, ‘lowercase’,
1      and ‘uppercase’.  The values ‘unix’ and ‘windows’ are mutually
1      exclusive (one will override the other), as are ‘lowercase’ and
1      ‘uppercase’.  Those last are special cases, as they do not change
1      the set of characters that would be escaped, but rather force local
1      file paths to be converted either to lower- or uppercase.
1 
1      When “unix” is specified, Wget escapes the character ‘/’ and the
1      control characters in the ranges 0–31 and 128–159.  This is the
1      default on Unix-like operating systems.
1 
1      When “windows” is given, Wget escapes the characters ‘\’, ‘|’, ‘/’,
1      ‘:’, ‘?’, ‘"’, ‘*’, ‘<’, ‘>’, and the control characters in the
1      ranges 0–31 and 128–159.  In addition to this, Wget in Windows mode
1      uses ‘+’ instead of ‘:’ to separate host and port in local file
1      names, and uses ‘@’ instead of ‘?’ to separate the query portion of
1      the file name from the rest.  Therefore, a URL that would be saved
1      as ‘www.xemacs.org:4300/search.pl?input=blah’ in Unix mode would be
1      saved as ‘www.xemacs.org+4300/search.pl@input=blah’ in Windows
1      mode.  This mode is the default on Windows.
1 
1      If you specify ‘nocontrol’, then the escaping of the control
1      characters is also switched off.  This option may make sense when
1      you are downloading URLs whose names contain UTF-8 characters, on a
1      system which can save and display filenames in UTF-8 (some possible
1      byte values used in UTF-8 byte sequences fall in the range of
1      values designated by Wget as “controls”).
1 
1      The ‘ascii’ mode is used to specify that any bytes whose values are
1      outside the range of ASCII characters (that is, greater than 127)
1      shall be escaped.  This can be useful when saving filenames whose
1      encoding does not match the one used locally.
1 
1 ‘-4’
1 ‘--inet4-only’
1 ‘-6’
1 ‘--inet6-only’
1      Force connecting to IPv4 or IPv6 addresses.  With ‘--inet4-only’ or
1      ‘-4’, Wget will only connect to IPv4 hosts, ignoring AAAA records
1      in DNS, and refusing to connect to IPv6 addresses specified in
1      URLs.  Conversely, with ‘--inet6-only’ or ‘-6’, Wget will only
1      connect to IPv6 hosts and ignore A records and IPv4 addresses.
1 
1      Neither options should be needed normally.  By default, an
1      IPv6-aware Wget will use the address family specified by the host’s
1      DNS record.  If the DNS responds with both IPv4 and IPv6 addresses,
1      Wget will try them in sequence until it finds one it can connect
1      to.  (Also see ‘--prefer-family’ option described below.)
1 
1      These options can be used to deliberately force the use of IPv4 or
1      IPv6 address families on dual family systems, usually to aid
1      debugging or to deal with broken network configuration.  Only one
1      of ‘--inet6-only’ and ‘--inet4-only’ may be specified at the same
1      time.  Neither option is available in Wget compiled without IPv6
1      support.
1 
1 ‘--prefer-family=none/IPv4/IPv6’
1      When given a choice of several addresses, connect to the addresses
1      with specified address family first.  The address order returned by
1      DNS is used without change by default.
1 
1      This avoids spurious errors and connect attempts when accessing
1      hosts that resolve to both IPv6 and IPv4 addresses from IPv4
1      networks.  For example, ‘www.kame.net’ resolves to
1      ‘2001:200:0:8002:203:47ff:fea5:3085’ and to ‘203.178.141.194’.
1      When the preferred family is ‘IPv4’, the IPv4 address is used
1      first; when the preferred family is ‘IPv6’, the IPv6 address is
1      used first; if the specified value is ‘none’, the address order
1      returned by DNS is used without change.
1 
1      Unlike ‘-4’ and ‘-6’, this option doesn’t inhibit access to any
1      address family, it only changes the _order_ in which the addresses
1      are accessed.  Also note that the reordering performed by this
1      option is “stable”—it doesn’t affect order of addresses of the same
1      family.  That is, the relative order of all IPv4 addresses and of
1      all IPv6 addresses remains intact in all cases.
1 
1 ‘--retry-connrefused’
1      Consider “connection refused” a transient error and try again.
1      Normally Wget gives up on a URL when it is unable to connect to the
1      site because failure to connect is taken as a sign that the server
1      is not running at all and that retries would not help.  This option
1      is for mirroring unreliable sites whose servers tend to disappear
1      for short periods of time.
1 
1 ‘--user=USER’
1 ‘--password=PASSWORD’
1      Specify the username USER and password PASSWORD for both FTP and
1      HTTP file retrieval.  These parameters can be overridden using the
1      ‘--ftp-user’ and ‘--ftp-password’ options for FTP connections and
1      the ‘--http-user’ and ‘--http-password’ options for HTTP
1      connections.
1 
1 ‘--ask-password’
1      Prompt for a password for each connection established.  Cannot be
1      specified when ‘--password’ is being used, because they are
1      mutually exclusive.
1 
1 ‘--use-askpass=COMMAND’
1      Prompt for a user and password using the specified command.  If no
1      command is specified then the command in the environment variable
1      WGET_ASKPASS is used.  If WGET_ASKPASS is not set then the command
1      in the environment variable SSH_ASKPASS is used.
1 
1      You can set the default command for use-askpass in the ‘.wgetrc’.
1      That setting may be overridden from the command line.
1 
1 ‘--no-iri’
1 
1      Turn off internationalized URI (IRI) support.  Use ‘--iri’ to turn
1      it on.  IRI support is activated by default.
1 
1      You can set the default state of IRI support using the ‘iri’
1      command in ‘.wgetrc’.  That setting may be overridden from the
1      command line.
1 
1 ‘--local-encoding=ENCODING’
1 
1      Force Wget to use ENCODING as the default system encoding.  That
1      affects how Wget converts URLs specified as arguments from locale
1      to UTF-8 for IRI support.
1 
1      Wget use the function ‘nl_langinfo()’ and then the ‘CHARSET’
1      environment variable to get the locale.  If it fails, ASCII is
1      used.
1 
1      You can set the default local encoding using the ‘local_encoding’
1      command in ‘.wgetrc’.  That setting may be overridden from the
1      command line.
1 
1 ‘--remote-encoding=ENCODING’
1 
1      Force Wget to use ENCODING as the default remote server encoding.
1      That affects how Wget converts URIs found in files from remote
1      encoding to UTF-8 during a recursive fetch.  This options is only
1      useful for IRI support, for the interpretation of non-ASCII
1      characters.
1 
1      For HTTP, remote encoding can be found in HTTP ‘Content-Type’
1      header and in HTML ‘Content-Type http-equiv’ meta tag.
1 
1      You can set the default encoding using the ‘remoteencoding’ command
1      in ‘.wgetrc’.  That setting may be overridden from the command
1      line.
1 
1 ‘--unlink’
1 
1      Force Wget to unlink file instead of clobbering existing file.
1      This option is useful for downloading to the directory with
1      hardlinks.
1