[31829] | 1 | ###
|
---|
| 2 | ### Sample Wget initialization file .wgetrc
|
---|
| 3 | ###
|
---|
| 4 |
|
---|
| 5 | # for versions with openssl support, don't want to be forced to run wget
|
---|
| 6 | # with --no-check-certificate each time
|
---|
| 7 | check_certificate = off
|
---|
| 8 |
|
---|
| 9 | ## You can use this file to change the default behaviour of wget or to
|
---|
| 10 | ## avoid having to type many many command-line options. This file does
|
---|
| 11 | ## not contain a comprehensive list of commands -- look at the manual
|
---|
| 12 | ## to find out what you can put into this file. You can find this here:
|
---|
| 13 | ## $ info wget.info 'Startup File'
|
---|
| 14 | ## Or online here:
|
---|
| 15 | ## https://www.gnu.org/software/wget/manual/wget.html#Startup-File
|
---|
| 16 | ##
|
---|
| 17 | ## Wget initialization file can reside in /usr/local/etc/wgetrc
|
---|
| 18 | ## (global, for all users) or $HOME/.wgetrc (for a single user).
|
---|
| 19 | ##
|
---|
| 20 | ## To use the settings in this file, you will have to uncomment them,
|
---|
| 21 | ## as well as change them, in most cases, as the values on the
|
---|
| 22 | ## commented-out lines are the default values (e.g. "off").
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 | ##
|
---|
| 26 | ## Global settings (useful for setting up in /usr/local/etc/wgetrc).
|
---|
| 27 | ## Think well before you change them, since they may reduce wget's
|
---|
| 28 | ## functionality, and make it behave contrary to the documentation:
|
---|
| 29 | ##
|
---|
| 30 |
|
---|
| 31 | # You can set retrieve quota for beginners by specifying a value
|
---|
| 32 | # optionally followed by 'K' (kilobytes) or 'M' (megabytes). The
|
---|
| 33 | # default quota is unlimited.
|
---|
| 34 | #quota = inf
|
---|
| 35 |
|
---|
| 36 | # You can lower (or raise) the default number of retries when
|
---|
| 37 | # downloading a file (default is 20).
|
---|
| 38 | #tries = 20
|
---|
| 39 |
|
---|
| 40 | # Lowering the maximum depth of the recursive retrieval is handy to
|
---|
| 41 | # prevent newbies from going too "deep" when they unwittingly start
|
---|
| 42 | # the recursive retrieval. The default is 5.
|
---|
| 43 | #reclevel = 5
|
---|
| 44 |
|
---|
| 45 | # By default Wget uses "passive FTP" transfer where the client
|
---|
| 46 | # initiates the data connection to the server rather than the other
|
---|
| 47 | # way around. That is required on systems behind NAT where the client
|
---|
| 48 | # computer cannot be easily reached from the Internet. However, some
|
---|
| 49 | # firewalls software explicitly supports active FTP and in fact has
|
---|
| 50 | # problems supporting passive transfer. If you are in such
|
---|
| 51 | # environment, use "passive_ftp = off" to revert to active FTP.
|
---|
| 52 | #passive_ftp = off
|
---|
| 53 |
|
---|
| 54 | # The "wait" command below makes Wget wait between every connection.
|
---|
| 55 | # If, instead, you want Wget to wait only between retries of failed
|
---|
| 56 | # downloads, set waitretry to maximum number of seconds to wait (Wget
|
---|
| 57 | # will use "linear backoff", waiting 1 second after the first failure
|
---|
| 58 | # on a file, 2 seconds after the second failure, etc. up to this max).
|
---|
| 59 | #waitretry = 10
|
---|
| 60 |
|
---|
| 61 |
|
---|
| 62 | ##
|
---|
| 63 | ## Local settings (for a user to set in his $HOME/.wgetrc). It is
|
---|
| 64 | ## *highly* undesirable to put these settings in the global file, since
|
---|
| 65 | ## they are potentially dangerous to "normal" users.
|
---|
| 66 | ##
|
---|
| 67 | ## Even when setting up your own ~/.wgetrc, you should know what you
|
---|
| 68 | ## are doing before doing so.
|
---|
| 69 | ##
|
---|
| 70 |
|
---|
| 71 | # Set this to on to use timestamping by default:
|
---|
| 72 | #timestamping = off
|
---|
| 73 |
|
---|
| 74 | # It is a good idea to make Wget send your email address in a `From:'
|
---|
| 75 | # header with your request (so that server administrators can contact
|
---|
| 76 | # you in case of errors). Wget does *not* send `From:' by default.
|
---|
| 77 | #header = From: Your Name <[email protected]>
|
---|
| 78 |
|
---|
| 79 | # You can set up other headers, like Accept-Language. Accept-Language
|
---|
| 80 | # is *not* sent by default.
|
---|
| 81 | #header = Accept-Language: en
|
---|
| 82 |
|
---|
| 83 | # You can set the default proxies for Wget to use for http, https, and ftp.
|
---|
| 84 | # They will override the value in the environment.
|
---|
| 85 | #https_proxy = http://proxy.yoyodyne.com:18023/
|
---|
| 86 | #http_proxy = http://proxy.yoyodyne.com:18023/
|
---|
| 87 | #ftp_proxy = http://proxy.yoyodyne.com:18023/
|
---|
| 88 |
|
---|
| 89 | # If you do not want to use proxy at all, set this to off.
|
---|
| 90 | #use_proxy = on
|
---|
| 91 |
|
---|
| 92 | # You can customize the retrieval outlook. Valid options are default,
|
---|
| 93 | # binary, mega and micro.
|
---|
| 94 | #dot_style = default
|
---|
| 95 |
|
---|
| 96 | # Setting this to off makes Wget not download /robots.txt. Be sure to
|
---|
| 97 | # know *exactly* what /robots.txt is and how it is used before changing
|
---|
| 98 | # the default!
|
---|
| 99 | #robots = on
|
---|
| 100 |
|
---|
| 101 | # It can be useful to make Wget wait between connections. Set this to
|
---|
| 102 | # the number of seconds you want Wget to wait.
|
---|
| 103 | #wait = 0
|
---|
| 104 |
|
---|
| 105 | # You can force creating directory structure, even if a single is being
|
---|
| 106 | # retrieved, by setting this to on.
|
---|
| 107 | #dirstruct = off
|
---|
| 108 |
|
---|
| 109 | # You can turn on recursive retrieving by default (don't do this if
|
---|
| 110 | # you are not sure you know what it means) by setting this to on.
|
---|
| 111 | #recursive = off
|
---|
| 112 |
|
---|
| 113 | # To always back up file X as X.orig before converting its links (due
|
---|
| 114 | # to -k / --convert-links / convert_links = on having been specified),
|
---|
| 115 | # set this variable to on:
|
---|
| 116 | #backup_converted = off
|
---|
| 117 |
|
---|
| 118 | # To have Wget follow FTP links from HTML files by default, set this
|
---|
| 119 | # to on:
|
---|
| 120 | #follow_ftp = off
|
---|
| 121 |
|
---|
| 122 | # To try ipv6 addresses first:
|
---|
| 123 | #prefer-family = IPv6
|
---|
| 124 |
|
---|
| 125 | # Set default IRI support state
|
---|
| 126 | #iri = off
|
---|
| 127 |
|
---|
| 128 | # Force the default system encoding
|
---|
| 129 | #locale = UTF-8
|
---|
| 130 |
|
---|
| 131 | # Force the default remote server encoding
|
---|
| 132 | #remoteencoding = UTF-8
|
---|
| 133 |
|
---|
| 134 | # Turn on to prevent following non-HTTPS links when in recursive mode
|
---|
| 135 | #httpsonly = off
|
---|
| 136 |
|
---|
| 137 | # Tune HTTPS security (auto, SSLv2, SSLv3, TLSv1, PFS)
|
---|
| 138 | #secureprotocol = auto
|
---|