home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 May / PCO_5_97.ISO / FilesBBS / OS2 / GNUWGET.ARJ / GNUWGET.ZIP / wget-1.4.3 / doc / wget.info-1 < prev    next >
Encoding:
GNU Info File  |  1997-02-09  |  45.0 KB  |  1,160 lines

  1. This is Info file wget.info, produced by Makeinfo version 1.67 from the
  2. input file ./wget.texi.
  3.  
  4.    Permission is granted to make and distribute verbatim copies of this
  5. manual provided the copyright notice and this permission notice are
  6. preserved on all copies.  Permission is granted to copy and distribute
  7. modified versions of this manual under the conditions for verbatim
  8. copying, provided also that the sections entitled "Copying" and "GNU
  9. General Public License" are included exactly as in the original, and
  10. provided that the entire resulting derived work is distributed under
  11. the terms of a permission notice identical to this one.
  12.  
  13. 
  14. File: wget.info,  Node: Top,  Next: Overview,  Prev: (dir),  Up: (dir)
  15.  
  16. Wget/1.4.3
  17. **********
  18.  
  19.    This manual documents version 1.4.3 of GNU Wget, the freely available
  20. utility for network download.
  21.  
  22.    Copyright (C) 1996, 1997 Free Software Foundation, Inc.
  23.  
  24. * Menu:
  25.  
  26. * Overview::            Features of Wget.
  27. * Invoking::            Wget command-line arguments.
  28. * Recursive Retrieval:: Description of recursive retrieval.
  29. * Following Links::     The available methods of chasing links.
  30. * Time-Stamping::       Mirroring according to time-stamps.
  31. * Startup File::        Wget's initialization file.
  32. * Examples::            Examples of usage.
  33. * Various::             The stuff that doesn't fit anywhere else.
  34. * Appendices::          Some useful references.
  35. * Copying::             You may give out copies of Wget.
  36. * Concept Index::       Topics found in this manual.
  37.  
  38. 
  39. File: wget.info,  Node: Overview,  Next: Invoking,  Prev: Top,  Up: Top
  40.  
  41. Overview
  42. ********
  43.  
  44.    GNU Wget is a freely available network utility to retrieve files from
  45. the World Wide Web, using HTTP (Hyper Text Transfer Protocol) and FTP
  46. (File Transfer Protocol), the two most widely used Internet protocols.
  47. It has many useful features to make downloading easier, some of them
  48. being:
  49.  
  50.    * Wget is non-interactive, which means it can work in the background,
  51.      while the user is not logged on, so that you may start the program
  52.      and log off, letting it do its work.  By contrast, most of the Web
  53.      browsers require constant user's presence, which can be a great
  54.      hindrance when transferring a lot of data.
  55.  
  56.    * Wget is capable of descending recursively through the structure of
  57.      HTML documents and FTP directory trees, making a local copy of the
  58.      directory hierarchy similar to the one on the remote server.  This
  59.      feature can be used to mirror archives and home pages, or traverse
  60.      the web in search of data, like a WWW robot (*Note Robots::).  In
  61.      that spirit, Wget understands the `norobots' convention.
  62.  
  63.    * File name wildcard matching and recursive mirroring of directories
  64.      are available when retrieving via FTP.  Wget can read the
  65.      time-stamp information given by both HTTP and FTP servers, and
  66.      store it locally.  Thus Wget can see if the remote file has
  67.      changed since last retrieval, and automatically retrieve the new
  68.      version if it has.  This makes Wget suitable for mirroring of FTP
  69.      sites, as well as home pages.
  70.  
  71.    * Wget works exceedingly well on slow or unstable connections,
  72.      keeping getting the document until it is fully retrieved, or until
  73.      a user-specified retry count is surpassed.  It will try to resume
  74.      the download from the point of interruption, using `REST' with FTP
  75.      and `Range' with HTTP servers that support them.
  76.  
  77.    * By default, Wget supports PROXY servers, which can lighten the
  78.      network load, speed up retrieval and provide access behind
  79.      firewalls.  However, if you are behind a firewall that requires
  80.      that you use a socks style gateway, you can get the socks library
  81.      and build wget with support for socks.  Wget also supports the
  82.      passive FTP downloading as an option.
  83.  
  84.    * Builtin features offer mechanisms to tune which links you wish to
  85.      follow (*Note Following Links::).
  86.  
  87.    * The retrieval is conveniently traced with printing dots, each dot
  88.      representing a fixed amount of data received (1KB by default).
  89.      These representations can be customized to your preferences.
  90.  
  91.    * Most of the features are fully configurable, either through
  92.      command line options, or via the initialization file `.wgetrc'
  93.      (*Note Startup File::).  Wget allows you to define "global"
  94.      startup files (`/usr/local/etc/wgetrc' by default) for site
  95.      settings.
  96.  
  97.    * Finally, GNU Wget is free software.  This means that everyone may
  98.      use it, redistribute it and/or modify it under the terms of the
  99.      GNU General Public License, as published by the Free Software
  100.      Foundation (*Note Copying::).
  101.  
  102. 
  103. File: wget.info,  Node: Invoking,  Next: Recursive Retrieval,  Prev: Overview,  Up: Top
  104.  
  105. Invoking
  106. ********
  107.  
  108.    By default, Wget is very simple to invoke.  The basic syntax is:
  109.  
  110.      wget [options] URL1 [URL2 ...]
  111.  
  112.    Wget will simply download all the URLs specified on the command
  113. line.  URL is a "Uniform Resource Locator", as defined below.
  114.  
  115.    Be aware that `ksh' and its descendants (like `zsh') kill off the
  116. background processes during logout.  To prevent this, use `nohup', as
  117. documented in system manuals.
  118.  
  119.    However, you may wish to change some of the default parameters of
  120. Wget.  You can do it two ways: permanently, adding the appropriate
  121. command to `.wgetrc' (*Note Startup File::), or specifying it on the
  122. command line.
  123.  
  124. * Menu:
  125.  
  126. * URL Format::          What is considered a URL.
  127. * Option Syntax::       Syntax of options.
  128. * Basic Options::       Basic command line arguments.
  129. * Advanced Options::    Advanced command line arguments.
  130.  
  131. 
  132. File: wget.info,  Node: URL Format,  Next: Option Syntax,  Prev: Invoking,  Up: Invoking
  133.  
  134. URL Format
  135. ==========
  136.  
  137.    "URL" is an acronym for Uniform Resource Locator.  Wget recognizes
  138. the URL syntax as per RFC1738.  This is the most widely used form
  139. (square brackets denote optional parts):
  140.  
  141.      http://host[:port]/path
  142.      ftp://host[:port]/path
  143.  
  144.    You can also encode your username and password within a URL:
  145.  
  146.      ftp://user:password@host/path
  147.      http://user:password@host/path
  148.  
  149.    Either USER or PASSWORD, or both may be left out.  If you leave out
  150. either the HTTP username or password, no authentication will be sent.
  151. If you leave out the FTP username, `anonymous' will be used.  If you
  152. leave out the FTP password, your email address will be supplied as a
  153. default password.(1)
  154.  
  155.    You can encode unsafe characters in a URL as `%xy', `xy' being the
  156. hexadecimal representation of the character's ASCII value.  Some common
  157. unsafe characters include `%' (quoted as `%25'), `:' (quoted as `%3A'),
  158. and `@' (quoted as `%40').  Refer to RFC1738 for a comprehensive list
  159. of unsafe characters.
  160.  
  161.    Two alternative variants of URL specification are also supported,
  162. because of historical (hysterical?) reasons and their wide-spreadedness.
  163.  
  164.    FTP-only syntax (supported by `NcFTP'):
  165.      host:/dir/file
  166.  
  167.    HTTP-only syntax (introduced by `Netscape'):
  168.      host[:port]/dir/file
  169.  
  170.    These two alternative forms are deprecated, and may cease being
  171. supported in the future.
  172.  
  173.    If you do not understand the difference between these notations, or
  174. do not know which one to use, just use the plain ordinary format you use
  175. with your favorite browser, like `Lynx' or `Netscape'.
  176.  
  177.    ---------- Footnotes ----------
  178.  
  179.    (1)  If you have a `.netrc' file in your home directory, password
  180. will also be searched for there.
  181.  
  182. 
  183. File: wget.info,  Node: Option Syntax,  Next: Basic Options,  Prev: URL Format,  Up: Invoking
  184.  
  185. Option Syntax
  186. =============
  187.  
  188.    Since Wget uses GNU getopts to process its arguments, every option
  189. has a short form and a long form.  Long options are more convenient to
  190. remember, but take time to type.  You may freely mix different option
  191. styles, or specify options after the command-line arguments. Thus you
  192. may write:
  193.  
  194.      wget -r --tries=10 http://fly.cc.fer.hr/ -o log
  195.  
  196.    The space between the option accepting an argument and the argument
  197. may be omitted.  Instead `-o log' you can write `-olog'.
  198.  
  199.    You may put several options that do not require arguments together,
  200. like:
  201.  
  202.      wget -drc URL
  203.  
  204.    This is a complete equivalent of:
  205.  
  206.      wget -d -r -c URL
  207.  
  208.    Since the options can be specified after the arguments, you may
  209. terminate them with `--'.  So the following will try to download URL
  210. `-x', reporting failure to `log':
  211.  
  212.      wget -o log -- -x
  213.  
  214.    The options that accept comma-separated lists all use the convention
  215. that, when presented an empty list, it means to clear it.  This can be
  216. useful to clear the `.wgetrc' settings.  So, if your .wgetrc sets the
  217. exclude_directories to `/cgi-bin', the following example will first
  218. reset it, and then set it to exclude `/~nobody' and `/~somebody'.  You
  219. can also clear the lists in `.wgetrc' (*Note Wgetrc Syntax::).
  220.  
  221.      wget -X '' -X /~nobody,/~somebody
  222.  
  223. 
  224. File: wget.info,  Node: Basic Options,  Next: Advanced Options,  Prev: Option Syntax,  Up: Invoking
  225.  
  226. Basic Options
  227. =============
  228.  
  229.    The command line arguments, sorted alphabetically.
  230.  
  231. `-a LOGFILE'
  232. `--append-output=LOGFILE'
  233.      Append to LOGFILE--the same as `-o', but appending to the LOGFILE
  234.      (or creating a new one if the old does not exist) instead of
  235.      overwriting the old log file.
  236.  
  237. `-d'
  238. `--debug'
  239.      Turn on debug output, meaning various information important to the
  240.      developers of Wget if it does not work properly.  Your system
  241.      administrator may have chosen to compile Wget without debug
  242.      support.  In that case `-d' will not work.  Please note that even
  243.      if the program is compiled with debug support, it will *not* print
  244.      any debug info unless `-d' is turned on explicitly.  *Note
  245.      Reporting Bugs:: for more information on how to send a bug report.
  246.  
  247. `-h'
  248. `--help'
  249.      Print a help screen. You will also get help if you do not supply
  250.      command-line arguments.
  251.  
  252. `-i FILE'
  253. `--input-file=FILE'
  254.      Read URLs from FILE, in which case no URLs need to be on the
  255.      command line.  If there are URLs both on the command line and in
  256.      an input file, those on the command lines will be the first ones to
  257.      be retrieved.  The FILE need not be an HTML document (but no harm
  258.      if it is)--it is enough if the URLs are just listed sequentially.
  259.  
  260.      However, if you specify `--force-html', the document will be
  261.      regarded as `html'.  In that case you may have problems with
  262.      relative links, which you can solve either by adding `<base
  263.      href="URL">' to the documents or by specifying `--base=URL' on the
  264.      command line.
  265.  
  266. `-l DEPTH'
  267. `--level=DEPTH'
  268.      Specify recursion maximum depth level DEPTH (*Note Recursive
  269.      Retrieval::).  The default maximum depth is 5.
  270.  
  271. `-nc'
  272. `--no-clobber'
  273.      Do not clobber existing files when saving to directory hierarchy
  274.      within recursive retrieval of several files. This option is
  275.      *extremely* useful when you wish to continue where you left off
  276.      with retrieval of many files.  If the files have the `.html' or
  277.      (yuck) `.htm' suffix, they will be loaded from the local disk, and
  278.      parsed as if they have been retrieved from the Web.
  279.  
  280. `-o LOGFILE'
  281. `--output-file=LOGFILE'
  282.      Log all messages to LOGFILE, instead of standard output, which is
  283.      the default.  If you do not wish the log output to be verbose, use
  284.      `-nv' (non-verbose).
  285.  
  286. `-q'
  287. `--quiet'
  288.      This option is the opposite of verbose, making Wget completely
  289.      quiet.
  290.  
  291. `-r'
  292. `--recursive'
  293.      Turn on recursive retrieving (*Note Recursive Retrieval::).
  294.  
  295. `-t NUM'
  296. `--tries=NUM'
  297.      Set number of retries to NUM.  Specify 0 or `inf' for infinite
  298.      retrying.
  299.  
  300. `-V'
  301. `--version'
  302.      Display the version of Wget.
  303.  
  304. `-v'
  305. `--verbose'
  306.      Turn on verbose output, with all the available data.  The default
  307.      output is verbose.
  308.  
  309. 
  310. File: wget.info,  Node: Advanced Options,  Prev: Basic Options,  Up: Invoking
  311.  
  312. Advanced Options
  313. ================
  314.  
  315.    The following table contains the alphabetically sorted list of the
  316. "advanced" command line arguments, for people familiar with basic
  317. operating of Wget, wishing to change its default behavior.  Not for the
  318. faint of heart.
  319.  
  320. `-A ACCLIST --accept ACCLIST'
  321. `-R REJLIST --reject REJLIST'
  322.      Specify comma-separated lists of file name suffices or patterns to
  323.      accept or reject (*Note Types of Files:: for more details).
  324.  
  325. `-c'
  326. `--continue'
  327.      Continue retrieval of FTP documents, from where it was left off by
  328.      another program or a previous instance of Wget.  Thus you can
  329.      write:
  330.  
  331.           wget -c ftp://sunsite.doc.ic.ac.uk/ls-lR.Z
  332.  
  333.      If there is a file name `ls-lR.Z' in the current directory, Wget
  334.      will assume that it is the first portion of the remote file, and
  335.      will require the server to continue the retrieval from an offset
  336.      equal to the length of the local file.
  337.  
  338.      Note that you need not specify this option if all you want is Wget
  339.      to continue retrieving where it left off when the connection is
  340.      lost--Wget does this by default.  You need this option only when
  341.      you want to continue retrieval of a file already halfway
  342.      retrieved, saved by another FTP client, or left by Wget being
  343.      killed.
  344.  
  345.      Without `-c', the previous example would just begin to download the
  346.      remote file to `ls-lR.Z.1'.  The `-c' option is also applicable
  347.      for HTTP servers that support the `Range' header.
  348.  
  349. `-D DOMAIN-LIST'
  350. `--domains=DOMAIN-LIST'
  351.      Set domains to be accepted and DNS looked-up, where DOMAIN-LIST is
  352.      a comma-separated list.  Note that it does *not* turn on `-H'.
  353.      This option speeds things up, even if only one host is spanned
  354.      (*Note Domain Acceptance::).
  355.  
  356. `--delete-after'
  357.      This option tells Wget to delete every single file it downloads,
  358.      *after* having done so.  It is useful for pre-fetching popular
  359.      pages through PROXY, e.g.:
  360.  
  361.           wget -r -nd --delete-after http://whatever.com/~popular/page/
  362.  
  363.      The `-r' option is to retrieve recursively, and `-nd' not to
  364.      create directories.
  365.  
  366. `--dot-style=STYLE'
  367.      Set the retrieval style to STYLE.  Wget traces the retrieval of
  368.      each document by printing dots on the screen, each dot
  369.      representing a fixed amount of retrieved data.  Any number of dots
  370.      may be separated in a "cluster", to make counting easier.  This
  371.      option allows you to choose one of the pre-defined styles,
  372.      determining the number of bytes represented by a dot, the number
  373.      of dots in a cluster, and the number of dots on the line.
  374.  
  375.      With the `default' style each dot represents 1K, there are ten dots
  376.      in a cluster and 50 dots in a line.  The `binary' style has a more
  377.      "computer"-like orientation--8K dots, 16-dots clusters and 64 dots
  378.      per line (which makes for 512K lines).  The `mega' style is
  379.      suitable for downloading very large files--each dot represents 64K
  380.      retrieved, there are eight dots in a cluster, and 48 dots on each
  381.      line (so each line contains 3M).  The `micro' style is exactly the
  382.      reverse; it is suitable for downloading small files, with 128-byte
  383.      dots, 8 dots per cluster, and 48 dots (6K) per line.
  384.  
  385. `-e COMMAND'
  386. `--execute COMMAND'
  387.      Execute COMMAND as if it were a part of `.wgetrc' (*Note Startup
  388.      File::).  A command thus invoked will be executed *after* the
  389.      commands in `.wgetrc', thus taking precedence over them.
  390.  
  391. `--exclude-domains DOMAIN-LIST'
  392.      Exclude the domains given in a comma-separated DOMAIN-LIST from
  393.      DNS-lookup (*Note Domain Acceptance::).
  394.  
  395. `-F'
  396. `--force-html'
  397.      When input is read from a file, force it to be treated as an HTML
  398.      file.  This enables you to retrieve relative links from existing
  399.      HTML files on your local disk, by adding `<base href="URL">' to
  400.      HTML, or using the `--base' command-line option.
  401.  
  402. `-g on/off'
  403. `--glob=on/off'
  404.      Turn FTP globbing on or off.  Globbing means you may use the
  405.      shell-like special characters ("wildcards"), like `*', `?', `['
  406.      and `]' to retrieve more than one file from the same directory at
  407.      once, like:
  408.  
  409.           wget ftp://gnjilux.cc.fer.hr/*.msg
  410.  
  411.      By default, globbing will be turned on if the URL contains a
  412.      globbing character.  This option may be used to turn globbing on
  413.      or off permanently.
  414.  
  415.      You may have to quote the URL to protect it from being expanded by
  416.      your shell.  Globbing makes Wget look for a directory listing,
  417.      which is system-specific.  This is why it currently works only
  418.      with Unix FTP servers (and the ones emulating Unix `ls' output).
  419.  
  420. `--ignore-length'
  421.      Unfortunately, some HTTP servers (CGI programs, to be more
  422.      precise) send out bogus `Content-Length' headers, which makes Wget
  423.      go wild, as it thinks not all the document was retrieved.  You can
  424.      spot this syndrome if Wget retries getting the same document again
  425.      and again, each time claiming that the (otherwise normal)
  426.      connection has closed on the very same byte.
  427.  
  428.      With this option, Wget will ignore the `Content-Length' header--as
  429.      if it never existed.
  430.  
  431. `--retr-symlinks'
  432.      Retrieve symbolic links on FTP sites as if they were plain files,
  433.      i.e. don't just create links locally.
  434.  
  435. `-H'
  436. `--span-hosts'
  437.      Enable spanning across hosts when doing recursive retrieving
  438.      (*Note All Hosts::).
  439.  
  440. `--header=ADDITIONAL-HEADER'
  441.      Define an ADDITIONAL-HEADER to be passed to the HTTP servers.
  442.      Headers must contain a `:' preceded by one or more non-blank
  443.      characters, and must not contain newlines.
  444.  
  445.      You may define more than one additional header by specifying
  446.      `--header' more than once.
  447.  
  448.           wget --header='Accept-Charset: iso-8859-2' \
  449.                --header='Accept-Language: hr'        \
  450.                  http://fly.cc.fer.hr/
  451.  
  452.      Specification of an empty string as the header value will clear all
  453.      previous user-defined headers.
  454.  
  455. `--http-user=USER'
  456. `--http-passwd=PASSWORD'
  457.      Specify the username USER and password PASSWORD on an HTTP server.
  458.      Wget will encode them using the `basic' (insecure) WWW
  459.      authentication scheme.  You can also encode the username and
  460.      password to the URL (*Note URL Format::).
  461.  
  462.      For more data about security issues with Wget, *Note Security
  463.      Considerations::.
  464.  
  465. `-I LIST'
  466. `--include-directories=LIST'
  467.      Specify a comma-separated list of directories you wish to follow
  468.      when downloading (*Note Directory-Based Limits:: for more details)
  469.  
  470. `-k'
  471. `--convert-links'
  472.      Convert the non-relative links to relative ones locally.  Only the
  473.      references to the documents actually downloaded will be converted;
  474.      the rest will be left unchanged.
  475.  
  476. `-L'
  477. `--relative'
  478.      Follow relative links only.  Useful for retrieving a specific home
  479.      page without any distractions, not even those from the same hosts
  480.      (*Note Relative Links::).
  481.  
  482. `-m'
  483. `--mirror'
  484.      Turn on options suitable for mirroring.  This option turns on
  485.      recursion and time-stamping, sets infinite recursion depth and
  486.      keeps FTP directory listings.  It is currently equivalent to `-r
  487.      -N -l0 -nr'.
  488.  
  489. `-N'
  490. `--timestamping'
  491.      Turn on time-stamping (*Note Time-Stamping:: for details).
  492.  
  493. `-nd'
  494.      Do not create a hierarchy of directories when retrieving
  495.      recursively. With this option turned on, all files will get saved
  496.      to the current directory, without clobbering (if a name shows up
  497.      more than once, the filenames will get extensions `.n').
  498.  
  499. `-nH'
  500.      Disable generation of host-prefixed directories.  By default,
  501.      invoking Wget with `-r http://fly.cc.fer.hr/' will create a
  502.      structure of directories beginning with `fly.cc.fer.hr/'.  This
  503.      option disables such behavior.
  504.  
  505. `-nh'
  506.      Disable the time-consuming DNS lookup of almost all hosts (*Note
  507.      Host Checking::).
  508.  
  509. `-np'
  510. `--no-parent'
  511.      Do not ever ascend to the parent directory when retrieving
  512.      recursively.  This is a useful option, since it guarantees that
  513.      only the files *below* a certain hierarchy will be downloaded.
  514.      *Note Directory-Based Limits:: for more details.
  515.  
  516. `-nr'
  517.      Do not remove the `.listing' files generated by FTP.  This is
  518.      useful when running a mirror to see the remote file list.  It can
  519.      also be used for debugging purposes.
  520.  
  521. `-nv'
  522.      Non-verbose output--turn off verbose without being completely quiet
  523.      (use `-q' for that), which means that error messages and basic
  524.      information still get printed.
  525.  
  526. `-O FILE'
  527. `--output-document=FILE'
  528.      The documents will not be written to the appropriate files, but
  529.      all will be appended to a unique file specified by this option.
  530.      The number of tries will be set to 1 automatically.  If the FILE
  531.      is `-', the documents will be written to standard output, and
  532.      `--quiet' will be turned on.  This option is useful for making
  533.      Wget a part of pipelines (*Note Advanced Usage::).
  534.  
  535.      Be careful, however, since setting `--quiet' turns off all the
  536.      useful diagnostics Wget can otherwise give.  This option is
  537.      usually a bad choice, as it disables a great number of Wget
  538.      features, e.g. recursive retrieval.
  539.  
  540. `--passive-ftp'
  541.      Use the "passive" FTP retrieval scheme, in which the client
  542.      initiates the data connection.  This is sometimes required for FTP
  543.      to work behind firewalls.
  544.  
  545. `-P PREFIX'
  546. `--directory-prefix=PREFIX'
  547.      Set directory prefix to PREFIX.  The "directory prefix" is the
  548.      directory where all other files and subdirectories will be saved
  549.      to, i.e. the top of the retrieval tree.  The default is `.' (the
  550.      current directory).
  551.  
  552. `-Q QUOTA'
  553. `--quota=QUOTA'
  554.      Specify download quota for automatic retrievals.  The value can be
  555.      specified in bytes (default), kilobytes (with `k' suffix), or
  556.      megabytes (with `m' suffix).
  557.  
  558.      Note that quota will never affect downloading a single file.  So
  559.      if you specify `wget -Q10k ftp://wuarchive.wustl.edu/ls-lR.gz',
  560.      all of the `ls-lR.gz' will be downloaded.  The same goes even when
  561.      several URLs are specified on the command-line.  However, quota is
  562.      respected when retrieving either recursively, or from an input
  563.      file.  Thus you may safely type `wget -Q2m -i sites'--download
  564.      will be aborted when the quota is exceeded.
  565.  
  566.      Setting quota to 0 or to `inf' unlimits the download quota.
  567.  
  568. `-S'
  569. `--server-response'
  570.      Print the headers sent by HTTP servers and responses sent by FTP
  571.      servers.
  572.  
  573. `-s'
  574. `--save-headers'
  575.      Save the headers sent by the HTTP server to the file, preceding the
  576.      actual contents, with an empty line as the separator.
  577.  
  578. `--spider'
  579.      When invoked with this option, Wget will behave as a Web "spider",
  580.      which means that it will not download the pages, just check that
  581.      they are there.  You can use it to check your bookmarks, e.g. with:
  582.  
  583.           wget --spider --force-html -i bookmarks.html
  584.  
  585.      This feature needs much more work for Wget to get close to the
  586.      functionality of real WWW spiders.
  587.  
  588. `-T seconds'
  589. `--timeout=SECONDS'
  590.      Set the read timeout to SECONDS seconds.  Whenever a network read
  591.      is issued, the file descriptor is checked for a timeout, which
  592.      could otherwise leave a pending connection (uninterrupted read).
  593.      The default timeout is 900 seconds (fifteen minutes).  Setting
  594.      timeout to 0 will disable checking for timeouts.
  595.  
  596.      Please do not lower the default timeout value with this option
  597.      unless you know what you are doing.
  598.  
  599. `-w SECONDS'
  600. `--wait=SECONDS'
  601.      Wait the specified number of seconds between the retrievals.  Use
  602.      of this option is recommended, as it lightens the server load by
  603.      making the requests less frequent.
  604.  
  605. `-X LIST'
  606. `--exclude-directories=LIST'
  607.      Specify a comma-separated list of directories you wish to exclude
  608.      from download (*Note Directory-Based Limits:: for more details).
  609.  
  610. `-x'
  611.      The opposite of `-nd'--create a hierarchy of directories, even if
  612.      one would not have been created otherwise.  E.g. `wget -x
  613.      http://fly.cc.fer.hr/robots.txt' will save the downloaded file to
  614.      `fly.cc.fer.hr/robots.txt'.
  615.  
  616. `-Y on/off'
  617. `--proxy=on/off'
  618.      Turn PROXY support on or off. The proxy is on by default if the
  619.      appropriate environmental variable is defined.
  620.  
  621. 
  622. File: wget.info,  Node: Recursive Retrieval,  Next: Following Links,  Prev: Invoking,  Up: Top
  623.  
  624. Recursive Retrieval
  625. *******************
  626.  
  627.    GNU Wget is capable of traversing parts of the Web (or a single HTTP
  628. or FTP server), depth-first following links and directory structure.
  629. This is called "recursive" retrieving, or "recursion".
  630.  
  631.    With HTTP URLs, Wget retrieves and parses the HTML from the given
  632. URL, documents, retrieving the files the HTML document was referring
  633. to, through markups like `href', or `src'.  If the freshly downloaded
  634. file is also of type `text/html', it will be parsed and followed
  635. further.
  636.  
  637.    The maximum "depth" to which the retrieval may descend is specified
  638. with the `-l' option (the default maximum depth is five layers).  *Note
  639. Basic Options::.
  640.  
  641.    When retrieving an FTP URL recursively, Wget will retrieve all the
  642. data from the given directory tree (including the subdirectories up to
  643. the specified depth) on the remote server, creating its mirror image
  644. locally.  FTP retrieval is also limited by the `dept' parameter.
  645.  
  646.    By default, Wget will create a local directory tree, corresponding to
  647. the one found on the remote server.
  648.  
  649.    Recursive retrieving can find a number of applications, the most
  650. important of which is mirroring.  It is also useful for WWW
  651. presentations, and any other opportunities where slow network
  652. connections should be bypassed by storing the files locally.
  653.  
  654.    You should be warned that invoking recursion may cause grave
  655. overloading on your system, because of the fast exchange of data
  656. through the network; all of this may hamper other users' work.  The
  657. same stands for the foreign server you are mirroring--the more requests
  658. it gets in a rows, the greater is its load.
  659.  
  660.    Careless retrieving can also fill your file system unctrollably,
  661. which can grind the machine to a halt.
  662.  
  663.    The load can be minimized by lowering the maximum recursion level
  664. (`-l') and/or by lowering the number of retries (`-t').  You may also
  665. consider using the `-w' option to slow down your requests to the remote
  666. servers, as well as the numerous options to narrow the number of
  667. followed links (*Note Following Links::).
  668.  
  669.    Recursive retrieval is a good thing when used properly.  Please take
  670. all precautions not to wreak havoc through carelessness.
  671.  
  672. 
  673. File: wget.info,  Node: Following Links,  Next: Time-Stamping,  Prev: Recursive Retrieval,  Up: Top
  674.  
  675. Following Links
  676. ***************
  677.  
  678.    When retrieving recursively, one does not wish to retrieve the loads
  679. of unnecessary data.  Most of the time the users bear in mind exactly
  680. what they want to download, and want Wget to follow only specific links.
  681.  
  682.    For example, if you wish to download the music archive from
  683. `fly.cc.fer.hr', you will not want to download all the home pages that
  684. happen to be referenced by an obscure part of the archive.
  685.  
  686.    Wget possesses several mechanisms that allows you to fine-tune which
  687. links it will follow.
  688.  
  689. * Menu:
  690.  
  691. * Relative Links::         Follow relative links only.
  692. * Host Checking::          Follow links on the same host.
  693. * Domain Acceptance::      Check on a list of domains.
  694. * All Hosts::              No host restrictions.
  695. * Types of Files::         Getting only certain files.
  696. * Directory-Based Limits:: Getting only certain directories.
  697. * FTP Links::              Following FTP links.
  698.  
  699. 
  700. File: wget.info,  Node: Relative Links,  Next: Host Checking,  Prev: Following Links,  Up: Following Links
  701.  
  702. Relative Links
  703. ==============
  704.  
  705.    When only relative links are followed (option `-L'), recursive
  706. retrieving will never span hosts.  No time-expensive DNS-lookups will
  707. be performed, and the process will be very fast, with the minimum
  708. strain of the network.  This will suit your needs often, especially when
  709. mirroring the output of various `x2html' converters, since they
  710. generally output relative links.
  711.  
  712. 
  713. File: wget.info,  Node: Host Checking,  Next: Domain Acceptance,  Prev: Relative Links,  Up: Following Links
  714.  
  715. Host Checking
  716. =============
  717.  
  718.    The drawback of following the relative links solely is that humans
  719. often tend to mix them with absolute links to the very same host, and
  720. the very same page.  In this mode (which is the default mode for
  721. following links) all URLs the that refer to the same host will be
  722. retrieved.
  723.  
  724.    The problem with this option are the aliases of the hosts and
  725. domains.  Thus there is no way for Wget to know that `regoc.srce.hr' and
  726. `www.srce.hr' are the same host, or that `fly.cc.fer.hr' is the same as
  727. `fly.cc.etf.hr'.  Whenever an absolute link is encountered, the host is
  728. DNS-looked-up with `gethostbyname' to check whether we are maybe
  729. dealing with the same hosts.  Although the results of `gethostbyname'
  730. are cached, it is still a great slowdown, e.g. when dealing with large
  731. indices of home pages on different hosts (because each of the hosts
  732. must be and DNS-resolved to see whether it just *might* an alias of the
  733. starting host).
  734.  
  735.    To avoid the overhead you may use `-nh', which will turn off
  736. DNS-resolving and make Wget compare hosts literally.  This will make
  737. things run much faster, but also much less reliable (e.g. `www.srce.hr'
  738. and `regoc.srce.hr' will be flagged as different hosts).
  739.  
  740.    Note that HTTP/1.1 allows one IP address to support several virtual
  741. servers, each of them with its own root; this feature is also used by
  742. many HTTP/1.0 servers.  Such "servers" are then distinguished by their
  743. hostnames (all of which point to the same IP address); for this to
  744. work, a client must send a `Host' header, which is what Wget does.
  745. However, in that case Wget *must not* try to divine a host's "real"
  746. address, nor try to use the same hostname for each access, i.e. `-nh'
  747. must be turned on.
  748.  
  749.    In other words, the `-nh' option must be used to enabling the
  750. retrieval from virtual servers distinguished by their hostnames.  As the
  751. number of such server setups grow, the behavior of `-nh' may become the
  752. default in the future.
  753.  
  754. 
  755. File: wget.info,  Node: Domain Acceptance,  Next: All Hosts,  Prev: Host Checking,  Up: Following Links
  756.  
  757. Domain Acceptance
  758. =================
  759.  
  760.    With the `-D' option you may specify the domains that will be
  761. followed.  The hosts the domain of which is not in this list will not be
  762. DNS-resolved.  Thus you can specify `-Dmit.edu' just to make sure that
  763. *nothing outside of MIT gets looked up*.  This is very important and
  764. useful.  It also means that `-D' does *not* imply `-H' (span all
  765. hosts), which must be specified explicitly.  Feel free to use this
  766. options since it will speed things up, with almost all the reliability
  767. of checking for all hosts.  Thus you could invoke
  768.  
  769.      wget -r -D.hr http://fly.cc.fer.hr/
  770.  
  771.    to make sure that only the hosts in `.hr' domain get DNS-looked-up
  772. for being equal to `fly.cc.fer.hr'.  So `fly.cc.etf.hr' will be checked
  773. (only once!) and found equal, but `www.gnu.ai.mit.edu' will not even be
  774. checked.
  775.  
  776.    Of course, domain acceptance can be used to limit the retrieval to
  777. particular domains with spanning of hosts in them, but then you must
  778. specify `-H' explicitly.  E.g.:
  779.  
  780.      wget -r -H -Dmit.edu,stanford.edu http://www.mit.edu/
  781.  
  782.    will start with `http://www.mit.edu/', following links across MIT
  783. and Stanford.
  784.  
  785.    If there are domains you want to exclude specifically, you can do it
  786. with `--exclude-domains', which accepts the same type of arguments of
  787. `-D', but will *exclude* all the listed domains.  For example, if you
  788. want to download all the hosts from `foo.edu' domain, with the
  789. exception of `sunsite.foo.edu', you can do it like this:
  790.  
  791.      wget -rH -Dfoo.edu --exclude-domains sunsite.foo.edu http://www.foo.edu/
  792.  
  793. 
  794. File: wget.info,  Node: All Hosts,  Next: Types of Files,  Prev: Domain Acceptance,  Up: Following Links
  795.  
  796. All Hosts
  797. =========
  798.  
  799.    When `-H' is specified without `-D', all hosts are freely spanned.
  800. There are no restrictions whatsoever as to what part of the net Wget
  801. will go to fetch documents, other than maximum retrieval depth.  If a
  802. page references `www.yahoo.com', so be it.  Such an option is rarely
  803. useful for itself.
  804.  
  805. 
  806. File: wget.info,  Node: Types of Files,  Next: Directory-Based Limits,  Prev: All Hosts,  Up: Following Links
  807.  
  808. Types of Files
  809. ==============
  810.  
  811.    When downloading material from the web, you will often want to
  812. restrict the retrieval to only certain file types.  For example, if you
  813. are interested in downloading GIFS, you will not be overjoyed to get
  814. loads of Postscript documents, and vice versa.
  815.  
  816.    Wget offers two options to deal with this problem.  Each option
  817. description lists a short name, a long name, and the equivalent command
  818. in `.wgetrc'.
  819.  
  820. `-A ACCLIST'
  821. `--accept ACCLIST'
  822. `accept = ACCLIST'
  823.      The argument to `--accept' option is a list of file suffixes or
  824.      patterns that Wget will download during recursive retrieval.  A
  825.      suffix is the ending part of a file, and consists of "normal"
  826.      letters, e.g. `gif' or `.jpg'.  A matching pattern contains
  827.      shell-like wildcards, e.g. `books*' or `zelazny*196[0-9]*'.
  828.  
  829.      So, specifying `wget -A gif,jpg' will make Wget download only the
  830.      files ending with `gif' or `jpg', i.e. GIFs and JPEGs.  On the
  831.      other hand, `wget -A "zelazny*196[0-9]*"' will download only files
  832.      beginning with `zelazny' and containing numbers from 1960 to 1969
  833.      anywhere within.  Look up the manual of your shell for a
  834.      description of how pattern matching works.
  835.  
  836.      Of course, any number of suffixes and patterns can be combined
  837.      into a comma-separated list, and given as an argument to `-A'.
  838.  
  839. `-R REJLIST'
  840. `--reject REJLIST'
  841. `reject = REJLIST'
  842.      The `--reject' option works the same way as `--accept', only its
  843.      logic is the reverse; Wget will download all files *except* the
  844.      ones matching the suffixes (or patterns) in the list.
  845.  
  846.      So, if you want to download a whole page except for the cumbersome
  847.      MPEGs and .AU files, you can use `wget -R mpg,mpeg,au'.
  848.      Analogously, to download all files except the ones beginning with
  849.      `bjork', use `wget -R "bjork*"'.  The quotes are to prevent
  850.      expansion by the shell.
  851.  
  852.    The `-A' and `-R' options may be combined to achieve even better
  853. fine-tuning of which files to retrieve.  E.g. `wget -A "*zelazny*" -R
  854. .ps' will download all the files having `zelazny' as a part of their
  855. name, but *not* the postscript files.
  856.  
  857.    Note that these two options do not affect the downloading of HTML
  858. files; Wget must load all the HTMLs to know where to go at
  859. all--recursive retrieval would make no sense otherwise.
  860.  
  861. 
  862. File: wget.info,  Node: Directory-Based Limits,  Next: FTP Links,  Prev: Types of Files,  Up: Following Links
  863.  
  864. Directory-Based Limits
  865. ======================
  866.  
  867.    Regardless of other link-following facilities, it is often useful to
  868. place the restriction of what files to retrieve based on the directories
  869. those files are placed in.  There can be many reasons for this--the
  870. home pages may be organized in a reasonable directory structure; or some
  871. directories may contain useless information, e.g. `/cgi-bin' or `/dev'
  872. directories.
  873.  
  874.    Wget offers three different options to deal with this requirement.
  875. Each option description lists a short name, a long name, and the
  876. equivalent command in `.wgetrc'.
  877.  
  878. `-I LIST'
  879. `--include LIST'
  880. `include_directories = LIST'
  881.      `-I' option accepts a comma-separated list of directories included
  882.      in the retrieval.  Any other directories will simply be ignored.
  883.      The directories are absolute paths.
  884.  
  885.      So, if you wish to download from `http://host/people/bozo/'
  886.      following only links to bozo's colleagues in the `/people'
  887.      directory and the bogus scripts in `/cgi-bin', you can specify:
  888.  
  889.           wget -I /people,/cgi-bin http://host/people/bozo/
  890.  
  891. `-X LIST'
  892. `--exclude LIST'
  893. `exclude_directories = LIST'
  894.      `-X' option is exactly the reverse of `-I'--this is a list of
  895.      directories *excluded* from the download.  E.g. if you do not want
  896.      Wget to download things from `/cgi-bin' directory, specify `-X
  897.      /cgi-bin' on the command line.
  898.  
  899.      The same as with `-A'/`-R', these two options can be combined to
  900.      get a better fine-tuning of downloading subdirectories.  E.g. if
  901.      you want to load all the files from `/pub' hierarchy except for
  902.      `/pub/worthless', specify `-I/pub -X/pub/worthless'.
  903.  
  904. `-np'
  905. `--no-parent'
  906. `no_parent = on'
  907.      The simplest, and often very useful way of limiting directories is
  908.      disallowing retrieval of the links that refer to the hierarchy
  909.      "upper" than the beginning directory, i.e. disallowing ascent to
  910.      the parent directory/directories.
  911.  
  912.      The `--no-parent' option (short `-np') is useful in this case.
  913.      Using it guarantees that you will never leave the existing
  914.      hierarchy.  Supposing you issue Wget with:
  915.  
  916.           wget -r --no-parent http://somehost/~luzer/my-archive/
  917.  
  918.      You may rest assured that none of the references to
  919.      `/~his-girls-homepage/' or `/~luzer/all-my-mpegs/' will be
  920.      followed.  Only the archive you are interested in will be
  921.      downloaded.  Essentially, `--no-parent' is similar to
  922.      `-I/~luzer/my-archive', only it handles redirections in a more
  923.      intelligent fashion.
  924.  
  925. 
  926. File: wget.info,  Node: FTP Links,  Prev: Directory-Based Limits,  Up: Following Links
  927.  
  928. Following FTP Links
  929. ===================
  930.  
  931.    The rules for FTP are somewhat specific, as it is necessary for them
  932. to be.  FTP links in HTML documents are often included for purposes of
  933. reference, and it is often inconvenient to download them by default.
  934.  
  935.    To have FTP links followed from HTML documents, you need to specify
  936. the `-f' (`--follow-ftp') option.  Having done that, FTP links will
  937. span hosts regardless of `-H' setting.  This is logical, as FTP links
  938. rarely point to the same host where the HTTP server resides.  For
  939. similar reasons, the `-L' options has no effect on such downloads.  On
  940. the other hand, domain acceptance (`-D') and suffix rules (`-A' and
  941. `-R') apply normally.
  942.  
  943.    Also note that followed links to FTP directories will not be
  944. retrieved recursively further.
  945.  
  946. 
  947. File: wget.info,  Node: Time-Stamping,  Next: Startup File,  Prev: Following Links,  Up: Top
  948.  
  949. Time-Stamping
  950. *************
  951.  
  952.    One of the most important aspects of mirroring information from the
  953. Internet is updating your archives.
  954.  
  955.    Downloading the whole archive again and again, just to replace a few
  956. changed files is expensive, both in terms of wasted bandwidth and money,
  957. and the time to do the update.  This is why all the mirroring tools
  958. offer the option of incremental updating.
  959.  
  960.    Such an updating mechanism means that the remote server is scanned in
  961. search of "new" files.  Only those new files will be downloaded in the
  962. place of the old ones.
  963.  
  964.    A file is considered new if one of these two conditions are met:
  965.  
  966.   1. A file of that name does not already exist locally.
  967.  
  968.   2. A file of that name does exist, but the remote file was modified
  969.      more recently than the local file.
  970.  
  971.    To implement this, the program needs to be aware of the time of last
  972. modification of both remote and local files.  Such information are
  973. called the "time-stamps".
  974.  
  975.    The time-stamping in GNU Wget is turned on using `--timestamping'
  976. (`-N') option, or through `timestamping = on' directive in `.wgetrc'.
  977. With this option, for each file it intends to download, Wget will check
  978. whether a local file of the same name exists.  If it does, and the
  979. remote file is older, Wget will not download it.
  980.  
  981.    If the local file does not exist, or the sizes of the files do not
  982. match, Wget will download the remote file no matter what the time-stamps
  983. say.
  984.  
  985. * Menu:
  986.  
  987. * Time-Stamping Usage::
  988. * HTTP Time-Stamping Internals::
  989. * FTP Time-Stamping Internals::
  990.  
  991. 
  992. File: wget.info,  Node: Time-Stamping Usage,  Next: HTTP Time-Stamping Internals,  Prev: Time-Stamping,  Up: Time-Stamping
  993.  
  994. Time-Stamping Usage
  995. ===================
  996.  
  997.    The usage of time-stamping is simple.  Say you would like to
  998. download a file so that it keeps its date of modification.
  999.  
  1000.      wget -S http://www.gnu.ai.mit.edu/
  1001.  
  1002.    A simple `ls -l' shows that the time stamp on the local file equals
  1003. the state of the `Last-Modified' header, as returned by the server.  As
  1004. you can see, the time-stamping info is preserved locally, even without
  1005. `-N'.
  1006.  
  1007.    Several days later, you would like Wget to check if the remote file
  1008. has changed, and download it if it has.
  1009.  
  1010.      wget -N http://www.gnu.ai.mit.edu/
  1011.  
  1012.    Wget will ask the server for the last-modified date.  If the local
  1013. file is newer, the remote file will not be re-fetched.  However, if the
  1014. remote file is more recent, Wget will proceed fetching it normally.
  1015.  
  1016.    The same goes for FTP.  For example:
  1017.  
  1018.      wget ftp://ftp.ifi.uio.no/pub/emacs/gnus/*
  1019.  
  1020.    `ls' will show that the timestamps are set according to the state on
  1021. the remote server.  Reissuing the command with `-N' will make Wget
  1022. re-fetch *only* the files that have been modified.
  1023.  
  1024.    In both HTTP and FTP retrieval Wget will time-stamp the local file
  1025. correctly (with or without `-N') if it gets the stamps, i.e. gets the
  1026. directory listing for FTP or the `Last-Modified' header for HTTP.
  1027.  
  1028.    If you wished to mirror the GNU archive every week, you would use the
  1029. following command every week:
  1030.  
  1031.      wget --timestamping -r ftp://prep.ai.mit.edu/pub/gnu/
  1032.  
  1033. 
  1034. File: wget.info,  Node: HTTP Time-Stamping Internals,  Next: FTP Time-Stamping Internals,  Prev: Time-Stamping Usage,  Up: Time-Stamping
  1035.  
  1036. HTTP Time-Stamping Internals
  1037. ============================
  1038.  
  1039.    Time-stamping in HTTP is implemented by checking of the
  1040. `Last-Modified' header.  If you wish to retrieve the file `foo.html'
  1041. through HTTP, Wget will check whether `foo.html' exists locally.  If it
  1042. doesn't, `foo.html' will be retrieved unconditionally.
  1043.  
  1044.    If the file does exist locally, Wget will first check its local
  1045. time-stamp (similar to the way `ls -l' checks it), and then send a
  1046. `HEAD' request to the remote server, demanding the information on the
  1047. remote file.
  1048.  
  1049.    The `Last-Modified' header is examined to find which file was
  1050. modified more recently (which makes it "newer").  If the remote file is
  1051. newer, it will be downloaded; if it is older, Wget will give up.(1)
  1052.  
  1053.    Arguably, HTTP time-stamping should be implemented using the
  1054. `If-Modified-Since' request.
  1055.  
  1056.    ---------- Footnotes ----------
  1057.  
  1058.    (1)  As an additional check, Wget will look at the `Content-Length'
  1059. header, and compare the sizes; if they are not the same, the remote
  1060. file will be downloaded no matter what the time-stamp says.
  1061.  
  1062. 
  1063. File: wget.info,  Node: FTP Time-Stamping Internals,  Prev: HTTP Time-Stamping Internals,  Up: Time-Stamping
  1064.  
  1065. FTP Time-Stamping Internals
  1066. ===========================
  1067.  
  1068.    In theory, FTP time-stamping works much the same as HTTP, only FTP
  1069. has no headers--time-stamps must be received from the directory
  1070. listings.
  1071.  
  1072.    For each directory files must be retrieved from, Wget will use the
  1073. `LIST' command to get the listing.  It will try to analyze the listing,
  1074. assuming that it is a Unix `ls -l' listing, and extract the
  1075. time-stamps.  The rest is exactly the same as for HTTP.
  1076.  
  1077.    Assumption that every directory listing is a Unix-style listing may
  1078. sound extremely constraining, but in practice it is not, as many
  1079. non-Unix FTP servers use the Unixoid listing format because most (all?)
  1080. of the clients understand it.  Bear in mind that RFC959 defines no
  1081. standard way to get a file list, let alone the time-stamps.  We can
  1082. only hope that a future standard will define this.
  1083.  
  1084.    Another non-standard solution includes the use of `MDTM' command
  1085. that is supported by some FTP servers (including the popular
  1086. `wu-ftpd'), which returns the exact time of the specified file.  Wget
  1087. may support this command in the future.
  1088.  
  1089. 
  1090. File: wget.info,  Node: Startup File,  Next: Examples,  Prev: Time-Stamping,  Up: Top
  1091.  
  1092. Startup File
  1093. ************
  1094.  
  1095.    Once you know how to change default settings of Wget through command
  1096. line arguments, you may wish to make some of those settings permanent.
  1097. You can do that in a convenient way by creating the Wget startup
  1098. file--`.wgetrc'.
  1099.  
  1100.    Besides `.wgetrc' is the "main" initialization file, it is
  1101. convenient to have a special facility for storing passwords.  Thus Wget
  1102. reads and interprets the contents of `$HOME/.netrc', if it finds it.
  1103. You can find `.netrc' format in your system manuals.
  1104.  
  1105.    Wget reads `.wgetrc' upon startup, recognizing a limited set of
  1106. commands.
  1107.  
  1108. * Menu:
  1109.  
  1110. * Wgetrc Location::   Location of various wgetrc files.
  1111. * Wgetrc Syntax::     Syntax of wgetrc.
  1112. * Wgetrc Commands::   List of available commands.
  1113. * Sample Wgetrc::     A wgetrc example.
  1114.  
  1115. 
  1116. File: wget.info,  Node: Wgetrc Location,  Next: Wgetrc Syntax,  Prev: Startup File,  Up: Startup File
  1117.  
  1118. Wgetrc Location
  1119. ===============
  1120.  
  1121.    When initializing, Wget will look for a "global" startup file,
  1122. `/usr/local/etc/wgetrc' by default (or some prefix other than
  1123. `/usr/local', if Wget was not installed there) and read commands from
  1124. there, if it exists.
  1125.  
  1126.    Then it will look for the user's file.  If the environmental variable
  1127. `WGETRC' is set, Wget will try to load that file.  Failing that, no
  1128. further attempts will be made.
  1129.  
  1130.    If `WGETRC' is not set, Wget will try to load `$HOME/.wgetrc'.
  1131.  
  1132.    The fact that user's settings are loaded after the system-wide ones
  1133. means that in case of collision user's wgetrc *overrides* the
  1134. system-wide wgetrc (in `/usr/local/etc/wgetrc' by default).  Fascist
  1135. admins, away!
  1136.  
  1137. 
  1138. File: wget.info,  Node: Wgetrc Syntax,  Next: Wgetrc Commands,  Prev: Wgetrc Location,  Up: Startup File
  1139.  
  1140. Wgetrc Syntax
  1141. =============
  1142.  
  1143.    The syntax of a wgetrc command is simple:
  1144.  
  1145.      variable = value
  1146.  
  1147.    The "variable" will also be called "command".  Valid "values" are
  1148. different for different commands.
  1149.  
  1150.    The commands are case-insensitive and underscore-insensitive.  Thus
  1151. `DIr__PrefiX' is the same as `dirprefix'.  Empty lines, lines beginning
  1152. with `#' and lines containing white-space only are discarded.
  1153.  
  1154.    Commands that expect a comma-separated list will clear the list on an
  1155. empty command.  So, if you wish to reset the rejection list specified in
  1156. global `wgetrc', you can do it with:
  1157.  
  1158.      reject =
  1159.  
  1160.