wget: Sample Wgetrc
1
1 6.4 Sample Wgetrc
1 =================
1
1 This is the sample initialization file, as given in the distribution.
1 It is divided in two section—one for global usage (suitable for global
1 startup file), and one for local usage (suitable for ‘$HOME/.wgetrc’).
1 Be careful about the things you change.
1
1 Note that almost all the lines are commented out. For a command to
1 have any effect, you must remove the ‘#’ character at the beginning of
1 its line.
1
1 ###
1 ### Sample Wget initialization file .wgetrc
1 ###
1
1 ## You can use this file to change the default behaviour of wget or to
1 ## avoid having to type many many command-line options. This file does
1 ## not contain a comprehensive list of commands -- look at the manual
1 ## to find out what you can put into this file. You can find this here:
1 ## $ info wget.info 'Startup File'
1 ## Or online here:
1 ## https://www.gnu.org/software/wget/manual/wget.html#Startup-File
1 ##
1 ## Wget initialization file can reside in /etc/wgetrc
1 ## (global, for all users) or $HOME/.wgetrc (for a single user).
1 ##
1 ## To use the settings in this file, you will have to uncomment them,
1 ## as well as change them, in most cases, as the values on the
1 ## commented-out lines are the default values (e.g. "off").
1 ##
1 ## Command are case-, underscore- and minus-insensitive.
1 ## For example ftp_proxy, ftp-proxy and ftpproxy are the same.
1
1
1 ##
1 ## Global settings (useful for setting up in /etc/wgetrc).
1 ## Think well before you change them, since they may reduce wget's
1 ## functionality, and make it behave contrary to the documentation:
1 ##
1
1 # You can set retrieve quota for beginners by specifying a value
1 # optionally followed by 'K' (kilobytes) or 'M' (megabytes). The
1 # default quota is unlimited.
1 #quota = inf
1
1 # You can lower (or raise) the default number of retries when
1 # downloading a file (default is 20).
1 #tries = 20
1
1 # Lowering the maximum depth of the recursive retrieval is handy to
1 # prevent newbies from going too "deep" when they unwittingly start
1 # the recursive retrieval. The default is 5.
1 #reclevel = 5
1
1 # By default Wget uses "passive FTP" transfer where the client
1 # initiates the data connection to the server rather than the other
1 # way around. That is required on systems behind NAT where the client
1 # computer cannot be easily reached from the Internet. However, some
1 # firewalls software explicitly supports active FTP and in fact has
1 # problems supporting passive transfer. If you are in such
1 # environment, use "passive_ftp = off" to revert to active FTP.
1 #passive_ftp = off
1
1 # The "wait" command below makes Wget wait between every connection.
1 # If, instead, you want Wget to wait only between retries of failed
1 # downloads, set waitretry to maximum number of seconds to wait (Wget
1 # will use "linear backoff", waiting 1 second after the first failure
1 # on a file, 2 seconds after the second failure, etc. up to this max).
1 #waitretry = 10
1
1
1 ##
1 ## Local settings (for a user to set in his $HOME/.wgetrc). It is
1 ## *highly* undesirable to put these settings in the global file, since
1 ## they are potentially dangerous to "normal" users.
1 ##
1 ## Even when setting up your own ~/.wgetrc, you should know what you
1 ## are doing before doing so.
1 ##
1
1 # Set this to on to use timestamping by default:
1 #timestamping = off
1
1 # It is a good idea to make Wget send your email address in a `From:'
1 # header with your request (so that server administrators can contact
1 # you in case of errors). Wget does *not* send `From:' by default.
1 #header = From: Your Name <username@site.domain>
1
1 # You can set up other headers, like Accept-Language. Accept-Language
1 # is *not* sent by default.
1 #header = Accept-Language: en
1
1 # You can set the default proxies for Wget to use for http, https, and ftp.
1 # They will override the value in the environment.
1 #https_proxy = http://proxy.yoyodyne.com:18023/
1 #http_proxy = http://proxy.yoyodyne.com:18023/
1 #ftp_proxy = http://proxy.yoyodyne.com:18023/
1
1 # If you do not want to use proxy at all, set this to off.
1 #use_proxy = on
1
1 # You can customize the retrieval outlook. Valid options are default,
1 # binary, mega and micro.
1 #dot_style = default
1
1 # Setting this to off makes Wget not download /robots.txt. Be sure to
1 # know *exactly* what /robots.txt is and how it is used before changing
1 # the default!
1 #robots = on
1
1 # It can be useful to make Wget wait between connections. Set this to
1 # the number of seconds you want Wget to wait.
1 #wait = 0
1
1 # You can force creating directory structure, even if a single is being
1 # retrieved, by setting this to on.
1 #dirstruct = off
1
1 # You can turn on recursive retrieving by default (don't do this if
1 # you are not sure you know what it means) by setting this to on.
1 #recursive = off
1
1 # To always back up file X as X.orig before converting its links (due
1 # to -k / --convert-links / convert_links = on having been specified),
1 # set this variable to on:
1 #backup_converted = off
1
1 # To have Wget follow FTP links from HTML files by default, set this
1 # to on:
1 #follow_ftp = off
1
1 # To try ipv6 addresses first:
1 #prefer-family = IPv6
1
1 # Set default IRI support state
1 #iri = off
1
1 # Force the default system encoding
1 #localencoding = UTF-8
1
1 # Force the default remote server encoding
1 #remoteencoding = UTF-8
1
1 # Turn on to prevent following non-HTTPS links when in recursive mode
1 #httpsonly = off
1
1 # Tune HTTPS security (auto, SSLv2, SSLv3, TLSv1, PFS)
1 #secureprotocol = auto
1