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-2 < prev    next >
Encoding:
GNU Info File  |  1997-02-09  |  32.0 KB  |  937 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: Wgetrc Commands,  Next: Sample Wgetrc,  Prev: Wgetrc Syntax,  Up: Startup File
  15.  
  16. Wgetrc Commands
  17. ===============
  18.  
  19.    The complete set of commands is listed below, the letter after `='
  20. denoting the value the command takes. It is `on/off' for `on' or `off'
  21. (which can also be `1' or `0'), STRING for any non-empty string or N
  22. for a positive integer.  For example, you may specify `use_proxy = off'
  23. to disable use of PROXY servers by default. You may use `inf' for
  24. infinite values, where appropriate.
  25.  
  26.    Most of the commands have their equivalent command-line option
  27. (*Note Invoking::), except some more obscure or rarely used ones.
  28.  
  29. accept/reject = STRING
  30.      Same as `-A'/`-R' (*Note Types of Files::).
  31.  
  32. add_hostdir = on/off
  33.      Enable/disable host-prefixed file names. `-nH' disables it.
  34.  
  35. always_rest = on/off
  36.      Enable/disable continuation of the retrieval, the same as `-c'.
  37.  
  38. base = STRING
  39.      Set base for relative URLs, the same as `-B'.
  40.  
  41. convert links = on/off
  42.      Convert non-relative links locally. The same as `-k'.
  43.  
  44. debug = on/off
  45.      Debug mode, same as `-d'.
  46.  
  47. delete_after = on/off
  48.      Delete after download, the same as `--delete-after'.
  49.  
  50. dir_mode = N
  51.      Set permission modes of created subdirectories (default is 0755).
  52.  
  53. dir_prefix = STRING
  54.      Top of directory tree, the same as `-P'.
  55.  
  56. dirstruct = on/off
  57.      Turning dirstruct on or off, the same as `-x' or `-nd',
  58.      respectively.
  59.  
  60. domains = STRING
  61.      Same as `-D' (*Note Domain Acceptance::).
  62.  
  63. dot_bytes = N
  64.      Specify the number of bytes "contained" in a dot, as seen
  65.      throughout the retrieval (1024 by default).  You can postfix the
  66.      value with `k' or `m', representing kilobytes and megabytes,
  67.      respectively.  With dot settings you can tailor the dot retrieval
  68.      to suit your needs, or you can use the predefined "styles" (*Note
  69.      Advanced Options::).
  70.  
  71. dots_in_line = N
  72.      Specify the number of dots that will be printed in each line
  73.      throughout the retrieval (50 by default).
  74.  
  75. dot_spacing = N
  76.      Specify the number of dots in a single cluster (10 by default).
  77.  
  78. dot_style = STRING
  79.      Specify the dot retrieval "style", as with `--dot-style'.
  80.  
  81. exclude_directories = STRING
  82.      Specify a comma-separated list of directories you wish to exclude
  83.      from download, the same as `-X' (*Note Directory-Based Limits::).
  84.  
  85. exclude_domains = STRING
  86.      Same as `--exclude-domains' (*Note Domain Acceptance::).
  87.  
  88. follow_ftp = on/off
  89.      Follow FTP links from HTML documents, the same as `-f'.
  90.  
  91. force_html = on/off
  92.      If set to on, force the input filename to be regarded as an HTML
  93.      document, the same as `-F'.
  94.  
  95. ftp_proxy = STRING
  96.      Use STRING as FTP proxy, instead of the one specified in
  97.      environment.
  98.  
  99. glob = on/off
  100.      Turn globbing on/off, the same as `-g'.
  101.  
  102. header = STRING
  103.      Define an additional header, like `--header'.
  104.  
  105. http_passwd = STRING
  106.      Set HTTP password.
  107.  
  108. http_proxy = STRING
  109.      Use STRING as HTTP proxy, instead of the one specified in
  110.      environment.
  111.  
  112. http_user = STRING
  113.      Set HTTP user to STRING.
  114.  
  115. ignore_length = on/off
  116.      When set to on, ignore `Content-Length' header; the same as
  117.      `--ignore-length'.
  118.  
  119. include_directories = STRING
  120.      Specify a comma-separated list of directories you wish to follow
  121.      when downloading, the same as `-I'.
  122.  
  123. input = STRING
  124.      Read the URLs from STRING, like `-i'.
  125.  
  126. kill_longer = on/off
  127.      Consider data longer than specified in content-length header as
  128.      invalid (and retry getting it). The default behaviour is to save
  129.      as much data as there is, provided there is more than or equal to
  130.      the value in `Content-Length'.
  131.  
  132. logfile = STRING
  133.      Set logfile, the same as `-o'.
  134.  
  135. login = STRING
  136.      Your user name on the remote machine, for FTP Defaults to
  137.      `anonymous'.
  138.  
  139. mirror = on/off
  140.      Turn mirroring on/off. The same as `-m'.
  141.  
  142. noclobber = on/off
  143.      Same as `-nc'.
  144.  
  145. no_proxy = STRING
  146.      Use STRING as the comma-separated list of domains to avoid in
  147.      PROXY loading, instead of the one specified in environment.
  148.  
  149. no_parent = on/off
  150.      Disallow retrieving outside the directory hierarchy, like
  151.      `--no-parent' (*Note Directory-Based Limits::).
  152.  
  153. output_document = STRING
  154.      Set the output filename, the same as `-O'.
  155.  
  156. passive_ftp = on/off
  157.      Set passive FTP, the same as `--passive-ftp'.
  158.  
  159. passwd = STRING
  160.      Set your FTP password to PASSWORD.  Without this setting, the
  161.      password defaults to `username@hostname.domainname'.
  162.  
  163. quiet = on/off
  164.      Quiet mode, the same as `-q'.
  165.  
  166. quota = QUOTA
  167.      Specify the download quota, which is useful to put in global
  168.      wgetrc. When download quota is specified, Wget will stop retrieving
  169.      after the download sum has become greater than quota.  The quota
  170.      can be specified in bytes (default), kbytes `k' appended) or mbytes
  171.      (`m' appended).  Thus `quota = 5m' will set the quota to 5 mbytes.
  172.      Note that the user's startup file overrides system settings.
  173.  
  174. reclevel = N
  175.      Recursion level, the same as `-l'.
  176.  
  177. recursive = on/off
  178.      Recursive on/off, the same as `-r'.
  179.  
  180. relative_only = on/off
  181.      Follow only relative links, the same as `-L' (*Note Relative
  182.      Links::).
  183.  
  184. remove_listing = on/off
  185.      If set to on, remove FTP listings downloaded by Wget.  Setting it
  186.      to off is the same as `-nr'.
  187.  
  188. retr_symlinks = on/off
  189.      When set to on, retrieve symbolic links as if they were plain
  190.      files; the same as `--retr-symlinks'.
  191.  
  192. robots = on/off
  193.      Use (or not) `/robots.txt' file (*Note Robots::).  Be sure to know
  194.      what you are doing before changing the default (which is `on').
  195.  
  196. server_response = on/off
  197.      Choose whether or not to print the HTTP and FTP server responses,
  198.      the same as `-S'.
  199.  
  200. simple_host_check = on/off
  201.      Same as `-nh' (*Note Host Checking::).
  202.  
  203. span_hosts = on/off
  204.      Same as `-H'.
  205.  
  206. timeout = N
  207.      Set timeout value, the same as `-T'.
  208.  
  209. timestamping = on/off
  210.      Turn timestamping on/off. The same as `-N' (*Note Time-Stamping::).
  211.  
  212. tries = N
  213.      Set number of retries per URL, the same as `-t'.
  214.  
  215. use_proxy = on/off
  216.      Turn PROXY support on/off. The same as `-Y'.
  217.  
  218. verbose = on/off
  219.      Turn verbose on/off, the same as `-v'/`-nv'.
  220.  
  221. wait = N
  222.      Wait N seconds between retrievals, the same as `-w'.
  223.  
  224. 
  225. File: wget.info,  Node: Sample Wgetrc,  Prev: Wgetrc Commands,  Up: Startup File
  226.  
  227. Sample Wgetrc
  228. =============
  229.  
  230.    This is the sample initialization file, as given in the distribution.
  231. It is divided in two section--one for global usage (suitable for global
  232. startup file), and one for local usage (suitable for `$HOME/.wgetrc').
  233. Be careful about the things you change.
  234.  
  235.    Note that all the lines are commented out.  For any line to have
  236. effect, you must remove the `#' prefix at the beginning of line.
  237.  
  238.      ###
  239.      ### Sample initialization file .wgetrc
  240.      ###
  241.      
  242.      ## You can use this file to change the default behaviour of wget or to
  243.      ## avoid having to type many many command-line options. This file does
  244.      ## not contain a comprehensive list of commands -- look at the manual
  245.      ## to find out what you can put into this file.
  246.      ##
  247.      ## Wget initialization file can reside in /usr/local/etc/wgetrc
  248.      ## (global, for all users) or $HOME/.wgetrc (for a single user).
  249.      ##
  250.      ## To use any of the settings in this file, you will have to uncomment
  251.      ## them (and probably change them).
  252.      
  253.      
  254.      ##
  255.      ## Global settings (useful for setting up in /usr/local/etc/wgetrc).
  256.      ## Think well before you change them, since they may reduce wget's
  257.      ## functionality, and make it behave contrary to the documentation:
  258.      ##
  259.      
  260.      # You can set retrieve quota for beginners by specifying a value
  261.      # optionally followed by 'K' (kilobytes) or 'M' (megabytes).  The
  262.      # default quota is unlimited.
  263.      #quota = inf
  264.      
  265.      # You can lower (or raise) the default number of retries when
  266.      # downloading a file (default is 20).
  267.      #tries = 20
  268.      
  269.      # Lowering the maximum depth of the recursive retrieval is handy to
  270.      # prevent newbies from going too "deep" when they unwittingly start
  271.      # the recursive retrieval.  The default is 5.
  272.      #reclevel = 5
  273.      
  274.      # Many sites are behind firewalls that do not allow initiation of
  275.      # connections from the outside.  On these sites you have to use the
  276.      # `passive' feature of FTP.  If you are behind such a firewall, you
  277.      # can turn this on to make Wget use passive FTP by default.
  278.      #passive_ftp = off
  279.      
  280.      
  281.      ##
  282.      ## Local settings (for a user to set in his $HOME/.wgetrc).  It is
  283.      ## *highly* undesirable to put these settings in the global file, since
  284.      ## they are potentially dangerous to "normal" users.
  285.      ##
  286.      ## Even when setting up your own ~/.wgetrc, you should know what you
  287.      ## are doing before doing so.
  288.      ##
  289.      
  290.      # Set this to on to use timestamping by default:
  291.      #timestamping = off
  292.      
  293.      # It is a good idea to make Wget send your email address in a `From:'
  294.      # header with your request (so that server administrators can contact
  295.      # you in case of errors).  Wget does *not* send `From:' by default.
  296.      #header = From: Your Name <username@site.domain>
  297.      
  298.      # You can set up other headers, like Accept-Language.  Accept-Language
  299.      # is *not* sent by default.
  300.      #header = Accept-Language: en
  301.      
  302.      # You can set the default proxy for Wget to use.  It will override the
  303.      # value in the environment.
  304.      #http_proxy = http://proxy.yoyodyne.com:18023/
  305.      
  306.      # If you do not want to use proxy at all, set this to off.
  307.      #use_proxy = on
  308.      
  309.      # You can customize the retrieval outlook.  Valid options are default,
  310.      # binary, mega and micro.
  311.      #dot_style = default
  312.      
  313.      # Setting this to off makes Wget not download /robots.txt.  Be sure to
  314.      # know *exactly* what /robots.txt is and how it is used before changing
  315.      # the default!
  316.      #robots = on
  317.      
  318.      # It can be useful to make Wget wait between connections.  Set this to
  319.      # the number of seconds you want Wget to wait.
  320.      #wait = 0
  321.      
  322.      # You can force creating directory structure, even if a single is being
  323.      # retrieved, by setting this to on.
  324.      #dirstruct = off
  325.      
  326.      # You can turn on recursive retrieving by default (don't do this if
  327.      # you are not sure you know what it means) by setting this to on.
  328.      #recursive = off
  329.      
  330.      # To have Wget follow FTP links from HTML files by default, set this
  331.      # to on:
  332.      #follow_ftp = off
  333.  
  334. 
  335. File: wget.info,  Node: Examples,  Next: Various,  Prev: Startup File,  Up: Top
  336.  
  337. Examples
  338. ********
  339.  
  340.    The examples are classified into three sections, because of clarity.
  341. The first section is a tutorial for beginners.  The second section
  342. explains some of the more complex program features.  The third section
  343. contains advice for mirror administrators, as well as even more complex
  344. features (that some would call perverted).
  345.  
  346. * Menu:
  347.  
  348. * Simple Usage::        Simple, basic usage of the program.
  349. * Advanced Usage::      Advanced techniques of usage.
  350. * Guru Usage::          Mirroring and the hairy stuff.
  351.  
  352. 
  353. File: wget.info,  Node: Simple Usage,  Next: Advanced Usage,  Prev: Examples,  Up: Examples
  354.  
  355. Simple Usage
  356. ============
  357.  
  358.    * Say you want to download a URL.  Just type:
  359.  
  360.           wget http://fly.cc.fer.hr/
  361.  
  362.      The response will be something like:
  363.  
  364.           --13:30:45--  http://fly.cc.fer.hr:80/
  365.                      => `index.html'
  366.           Connecting to fly.cc.fer.hr:80... connected!
  367.           HTTP request sent, fetching headers... done.
  368.           Length: 1,749 [text/html]
  369.           
  370.               0K -> .
  371.           
  372.           13:30:46 (68.32K/s) - `index.html' saved [1749/1749]
  373.  
  374.    * But what will happen if the connection is slow, and the file is
  375.      lengthy?  The connection will probably fail before the whole file
  376.      is retrieved, more than once.  In this case, Wget will try getting
  377.      the file until it either gets the whole of it, or exceeds the
  378.      default number of retries (this being 20).  It is easy to change
  379.      the number of tries to 45, to insure that the whole file will
  380.      arrive safely:
  381.  
  382.           wget --tries=45 http://fly.cc.fer.hr/jpg/flyweb.jpg
  383.  
  384.    * Now let's leave Wget to work in the background, and write its
  385.      progress to log file `log'.  It is tiring to type `--tries', so we
  386.      shall use `-t'.
  387.  
  388.           wget -t 45 -o log http://fly.cc.fer.hr/jpg/flyweb.jpg &
  389.  
  390.      The ampersand at the end of the line makes sure that Wget works in
  391.      the background.  To unlimit the number of retries, use `-t inf'.
  392.  
  393.    * The usage of FTP is as simple.  Wget will take care of login and
  394.      password.
  395.  
  396.           $ wget ftp://gnjilux.cc.fer.hr/welcome.msg
  397.           --23:35:55--  ftp://gnjilux.cc.fer.hr:21/welcome.msg
  398.                      => `welcome.msg'
  399.           Connecting to gnjilux.cc.fer.hr:21... connected!
  400.           Logging in as anonymous ... Logged in!
  401.           ==> TYPE I ... done.  ==> CWD not needed.
  402.           ==> PORT ... done.    ==> RETR welcome.msg ... done.
  403.           Length: 1,340 (unauthoritative)
  404.           
  405.               0K -> .
  406.           
  407.           23:35:56 (37.39K/s) - `welcome.msg' saved [1340]
  408.  
  409.    * If you specify a directory, Wget will retrieve the directory
  410.      listing, parse it and convert it to HTML.  Try:
  411.  
  412.           wget ftp://prep.ai.mit.edu/pub/gnu/
  413.           lynx index.html
  414.  
  415. 
  416. File: wget.info,  Node: Advanced Usage,  Next: Guru Usage,  Prev: Simple Usage,  Up: Examples
  417.  
  418. Advanced Usage
  419. ==============
  420.  
  421.    * You would like to read the list of URLs from a file?  Not a problem
  422.      with that:
  423.  
  424.           wget -i file
  425.  
  426.      If you specify `-' as file name, the URLs will be read from
  427.      standard input.
  428.  
  429.    * Create a mirror image of GNU WWW site (with the same directory
  430.      structure the original has) with only one try per document, saving
  431.      the log of the activities to `gnulog':
  432.  
  433.           wget -r -t1 http://www.gnu.ai.mit.edu/ -o gnulog
  434.  
  435.    * Retrieve the first layer of yahoo links:
  436.  
  437.           wget -r -l1 http://www.yahoo.com/
  438.  
  439.    * Retrieve the index.html of `www.lycos.com', showing the original
  440.      server headers:
  441.  
  442.           wget -S http://www.lycos.com/
  443.  
  444.    * Save the server headers with the file:
  445.           wget -s http://www.lycos.com/
  446.           more index.html
  447.  
  448.    * Retrieve the first two levels of `wuarchive.wustl.edu', saving them
  449.      to /tmp.
  450.  
  451.           wget -P/tmp -l2 ftp://wuarchive.wustl.edu/
  452.  
  453.    * You want to download all the GIFs from an HTTP directory.  `wget
  454.      http://host/dir/*.gif' doesn't work, since HTTP retrieval does not
  455.      support globbing.  In that case, use:
  456.  
  457.           wget -r -l1 --no-parent -A.gif http://host/dir/
  458.  
  459.      It is a bit of a kludge, but it works perfectly.  `-r -l1' means to
  460.      retrieve recursively (*Note Advanced Options::), with maximum
  461.      depth of 1.  `--no-parent' means that references to the parent
  462.      directory are ignored (*Note Directory-Based Limits::), and
  463.      `-A.gif' means to download only the GIF files.  `-A "*.gif"' would
  464.      have worked too.
  465.  
  466.    * Suppose you were in the middle of downloading, when Wget was
  467.      interrupted.  Now you do not want to clobber the files already
  468.      present.  It would be:
  469.  
  470.           wget -nc -r http://www.gnu.ai.mit.edu/
  471.  
  472.    * If you want to encode your own username and password to HTTP or
  473.      FTP, use the appropriate URL syntax (*Note URL Format::).
  474.  
  475.           wget ftp://hniksic:mypassword@jagor.srce.hr/.emacs
  476.  
  477.    * If you do not like the default retrieval visualization (1K dots
  478.      with 10 dots per cluster and 50 dots per line), you can customize
  479.      it through dot settings (*Note Wgetrc Commands::).  For example,
  480.      many people like the "binary" style of retrieval, with 8K dots and
  481.      512K lines:
  482.  
  483.           wget --dot-style=binary ftp://prep.ai.mit.edu/pub/gnu/README
  484.  
  485.      You can experiment with other styles, like:
  486.  
  487.           wget --dot-style=mega ftp://ftp.xemacs.org/pub/xemacs/xemacs-19.15.tar.gz
  488.           wget --dot-style=micro http://fly.cc.fer.hr/
  489.  
  490.      To make these settings permanent, put them in your `.wgetrc', as
  491.      described before (*Note Sample Wgetrc::).
  492.  
  493. 
  494. File: wget.info,  Node: Guru Usage,  Prev: Advanced Usage,  Up: Examples
  495.  
  496. Guru Usage
  497. ==========
  498.  
  499.    * If you wish Wget to keep a mirror of a page (or FTP
  500.      subdirectories), use `--mirror' (`-m'), which is the shorthand for
  501.      `-r -N'.  You can put Wget in the crontab file asking it to
  502.      recheck a site each Sunday:
  503.  
  504.           crontab
  505.           0 0 * * 0 wget --mirror ftp://ftp.xemacs.org/pub/xemacs/ -o /home/me/weeklog
  506.  
  507.    * You may wish to do the same with someone's home page.  But you do
  508.      not want to download all those images--you're only interested in
  509.      HTML.
  510.  
  511.           wget --mirror -A.html http://www.w3.org/
  512.  
  513.    * But what about mirroring the hosts networkologically close to you?
  514.      It seems so awfully slow because of all that DNS resolving.  Just
  515.      use `-D' (*Note Domain Acceptance::).
  516.  
  517.           wget -rN -Dsrce.hr http://www.srce.hr/
  518.  
  519.      Now Wget will correctly find out that `regoc.srce.hr' is the same
  520.      as `www.srce.hr', but will not even take into consideration the
  521.      link to `www.mit.edu'.
  522.  
  523.    * You have a presentation and would like the dumb absolute links to
  524.      be converted to relative?  Use `-k':
  525.  
  526.           wget -k -r URL
  527.  
  528.    * You would like the output documents to go to standard output
  529.      instead of to files?  OK, but Wget will automatically shut up
  530.      (turn on `--quiet') to prevent mixing of Wget output and the
  531.      retrieved documents.
  532.  
  533.           wget -O - http://jagor.srce.hr/ http://www.srce.hr/
  534.  
  535.      You can also combine the two options and make weird pipelines to
  536.      retrieve the documents from remote hotlists:
  537.  
  538.           wget -O - http://cool.list.com/ | wget --force-html -i -
  539.  
  540. 
  541. File: wget.info,  Node: Various,  Next: Appendices,  Prev: Examples,  Up: Top
  542.  
  543. Various
  544. *******
  545.  
  546.    This chapter contains all the stuff that could not fit anywhere else.
  547.  
  548. * Menu:
  549.  
  550. * Distribution::        Getting the latest version.
  551. * Mailing List::        Wget mailing list for announcements and discussion.
  552. * Reporting Bugs::      How and where to report bugs.
  553. * Portability::         The systems Wget works on.
  554. * Signals::             Signal-handling performed by Wget.
  555.  
  556. 
  557. File: wget.info,  Node: Distribution,  Next: Mailing List,  Prev: Various,  Up: Various
  558.  
  559. Distribution
  560. ============
  561.  
  562.    Like all GNU utilities, the latest version of Wget can be found at
  563. the master GNU archive site prep.ai.mit.edu, and its mirrors.  For
  564. example, Wget 1.4.3 is at:
  565.  
  566.      <URL:ftp://prep.ai.mit.edu/pub/gnu/wget-1.4.3.tar.gz>.
  567.  
  568.    The latest version is also available via FTP from the maintainer's
  569. machine, at:
  570.  
  571.      <URL:ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/wget.tar.gz>.
  572.  
  573.    This location is mirrored at:
  574.  
  575.      <URL:ftp://sunsite.auc.dk/pub/infosystems/wget/> and
  576.      <URL:http://sunsite.auc.dk/ftp/pub/infosystems/wget/>.
  577.      <URL:ftp://ftp.fu-berlin.de/pub/unix/network/wget/>
  578.  
  579.    I'll try to make a "real" home page for Wget some time in the future.
  580. If you would like to do it, please say so--I'll be delighted.
  581.  
  582. 
  583. File: wget.info,  Node: Mailing List,  Next: Reporting Bugs,  Prev: Distribution,  Up: Various
  584.  
  585. Mailing List
  586. ============
  587.  
  588.    Wget has its own mailing list at `<wget@sunsite.auc.dk>', thanks to
  589. Karsten Thygesen.  The mailing list is for discussion of Wget features
  590. and web, reporting Wget bugs (those that you think may be of interest
  591. to the public) and mailing announcements.  You are welcome to
  592. subscribe.  The more people on the list, the better!
  593.  
  594.    To subscribe, send mail to `<wget-request@sunsite.auc.dk>' with the
  595. magic word `subscribe' in the subject line.  Unsubscribe analogously.
  596.  
  597.    The mailing list is archived at
  598. `http://fly.cc.fer.hr/en/wget-archive.mbox'.
  599.  
  600. 
  601. File: wget.info,  Node: Reporting Bugs,  Next: Portability,  Prev: Mailing List,  Up: Various
  602.  
  603. Reporting Bugs
  604. ==============
  605.  
  606.    You are welcome to send bug reports about GNU Wget to
  607. `<bug-wget@prep.ai.mit.edu>'.  The bugs that you think are of the
  608. interest to the public (i.e. more people should be informed about them)
  609. can be Cc-ed to the mailing list at `<wget@sunsite.auc.dk>'.
  610.  
  611.    Before actually submitting a bug report, please try to follow a few
  612. simple guidelines.
  613.  
  614.   1. Please try to ascertain that the behaviour you see really is a
  615.      bug.  If Wget crashes, it's a bug.  If Wget does not behave as
  616.      documented, it's a bug.  If things work strange, but you are not
  617.      sure about the way they are supposed to work, it might well be a
  618.      bug.
  619.  
  620.   2. Try to repeat the bug in as simple circumstances as possible.
  621.      E.g. if Wget crashes on `wget -rLl0 -t5 -Y0 http://yoyodyne.com -o
  622.      /tmp/log', you should try to see if it will crash with a simpler
  623.      set of options.
  624.  
  625.   3. Please start Wget with `-d' option and send the log (or the
  626.      relevant parts of it).  If Wget was compiled without debug support,
  627.      recompile it.  It is *much* easier to trace bugs with debug support
  628.      on.
  629.  
  630.   4. If Wget has crashed, try to run it in a debugger, e.g. `gdb `which
  631.      wget` core' and type `where' to get the backtrace.
  632.  
  633.   5. Find where the bug is, fix it and send me the patches. :-)
  634.  
  635. 
  636. File: wget.info,  Node: Portability,  Next: Signals,  Prev: Reporting Bugs,  Up: Various
  637.  
  638. Portability
  639. ===========
  640.  
  641.    Since Wget uses GNU Autoconf for building and configuring, and avoids
  642. using "special" features of any one Unix system, it should compile (and
  643. work) on all common flavors of Unix.
  644.  
  645.    This version was compiled and tested this version on various Unix
  646. systems, including Solaris, Linux, SunOS, OSF (aka Digital Unix), and
  647. Ultrix; refer to the file `MACHINES' in the distribution directory for
  648. a comprehensive list.  If you compile it on an architecture not listed
  649. there, please let me know.
  650.  
  651.    Wget should also compile on the other Unix systems, not listed in
  652. `MACHINES'.  If it doesn't, please let me know.
  653.  
  654. 
  655. File: wget.info,  Node: Signals,  Prev: Portability,  Up: Various
  656.  
  657. Signals
  658. =======
  659.  
  660.    Since the purpose of Wget is background work, it catches the hangup
  661. signal (`SIGHUP') and ignores it.  If the output was on standard
  662. output, it will be redirected to a file named `wget-log'.  Otherwise,
  663. `SIGHUP' is ignored.  This is convenient when you wish to redirect the
  664. output of Wget after having started it.
  665.  
  666.      $ wget http://www.ifi.uio.no/~larsi/gnus.tar.gz &
  667.      $ kill -HUP %%     # Redirect the output to wget-log
  668.  
  669.    Other than that, Wget will not try to interfere with signals in any
  670. way. `C-c', `kill -TERM' and `kill -KILL' should kill it alike.
  671.  
  672. 
  673. File: wget.info,  Node: Appendices,  Next: Copying,  Prev: Various,  Up: Top
  674.  
  675. Appendices
  676. **********
  677.  
  678.    This chapter contains some references I consider useful, like the
  679. Robots Exclusion Standard specification, as well as a list of
  680. contributors to GNU Wget.
  681.  
  682. * Menu:
  683.  
  684. * Robots::                  Wget as a WWW robot.
  685. * Security Considerations:: Security with Wget.
  686. * Contributors::            People who helped.
  687.  
  688. 
  689. File: wget.info,  Node: Robots,  Next: Security Considerations,  Prev: Appendices,  Up: Appendices
  690.  
  691. Robots
  692. ======
  693.  
  694.    Since Wget is able to traverse the web, it counts as one of the Web
  695. "robots".  Thus Wget understands "Robots Exclusion Standard"
  696. (RES)--contents of `/robots.txt', used by server administrators to
  697. shield parts of their systems from wanderings of Wget.
  698.  
  699.    Norobots support is turned on only when retrieving recursively, and
  700. *never* for the first page.  Thus, you may issue:
  701.  
  702.      wget -r http://fly.cc.fer.hr/
  703.  
  704.    First the index of fly.cc.fer.hr will be downloaded.  If Wget finds
  705. anything worth downloading on the same host, only *then* will it load
  706. the robots, and decide whether or not to load the links after all.
  707. `/robots.txt' is loaded only once per host.  Wget does not support the
  708. robots `META' tag.
  709.  
  710.    The description of the norobots standard was written, and is
  711. maintained by Martijn Koster `<m.koster@webcrawler.com>'.  With his
  712. permission, I contribute a (slightly modified) texified version of the
  713. RES.
  714.  
  715. * Menu:
  716.  
  717. * Introduction to RES::
  718. * RES Format::
  719. * User-Agent Field::
  720. * Disallow Field::
  721. * Norobots Examples::
  722.  
  723. 
  724. File: wget.info,  Node: Introduction to RES,  Next: RES Format,  Prev: Robots,  Up: Robots
  725.  
  726. Introduction to RES
  727. -------------------
  728.  
  729.    "WWW Robots" (also called "wanderers" or "spiders") are programs
  730. that traverse many pages in the World Wide Web by recursively
  731. retrieving linked pages. For more information see the robots page.
  732.  
  733.    In 1993 and 1994 there have been occasions where robots have visited
  734. WWW servers where they weren't welcome for various reasons. Sometimes
  735. these reasons were robot specific, e.g. certain robots swamped servers
  736. with rapid-fire requests, or retrieved the same files repeatedly. In
  737. other situations robots traversed parts of WWW servers that weren't
  738. suitable, e.g. very deep virtual trees, duplicated information,
  739. temporary information, or cgi-scripts with side-effects (such as
  740. voting).
  741.  
  742.    These incidents indicated the need for established mechanisms for
  743. WWW servers to indicate to robots which parts of their server should
  744. not be accessed. This standard addresses this need with an operational
  745. solution.
  746.  
  747.    This document represents a consensus on 30 June 1994 on the robots
  748. mailing list (`robots@webcrawler.com'), between the majority of robot
  749. authors and other people with an interest in robots. It has also been
  750. open for discussion on the Technical World Wide Web mailing list
  751. (`www-talk@info.cern.ch'). This document is based on a previous working
  752. draft under the same title.
  753.  
  754.    It is not an official standard backed by a standards body, or owned
  755. by any commercial organization. It is not enforced by anybody, and there
  756. no guarantee that all current and future robots will use it. Consider
  757. it a common facility the majority of robot authors offer the WWW
  758. community to protect WWW server against unwanted accesses by their
  759. robots.
  760.  
  761.    The latest version of this document can be found at:
  762.  
  763.      http://info.webcrawler.com/mak/projects/robots/norobots.html
  764.  
  765. 
  766. File: wget.info,  Node: RES Format,  Next: User-Agent Field,  Prev: Introduction to RES,  Up: Robots
  767.  
  768. RES Format
  769. ----------
  770.  
  771.    The format and semantics of the `/robots.txt' file are as follows:
  772.  
  773.    The file consists of one or more records separated by one or more
  774. blank lines (terminated by `CR', `CR/NL', or `NL').  Each record
  775. contains lines of the form:
  776.  
  777.      <field>:<optionalspace><value><optionalspace>
  778.  
  779.    The field name is case insensitive.
  780.  
  781.    Comments can be included in file using UNIX bourne shell conventions:
  782. the `#' character is used to indicate that preceding space (if any) and
  783. the remainder of the line up to the line termination is discarded.
  784. Lines containing only a comment are discarded completely, and therefore
  785. do not indicate a record boundary.
  786.  
  787.    The record starts with one or more User-agent lines, followed by one
  788. or more Disallow lines, as detailed below. Unrecognized headers are
  789. ignored.
  790.  
  791.    The presence of an empty `/robots.txt' file has no explicit
  792. associated semantics, it will be treated as if it was not present, i.e.
  793. all robots will consider themselves welcome.
  794.  
  795. 
  796. File: wget.info,  Node: User-Agent Field,  Next: Disallow Field,  Prev: RES Format,  Up: Robots
  797.  
  798. User-Agent Field
  799. ----------------
  800.  
  801.    The value of this field is the name of the robot the record is
  802. describing access policy for.
  803.  
  804.    If more than one User-agent field is present the record describes an
  805. identical access policy for more than one robot.  At least one field
  806. needs to be present per record.
  807.  
  808.    The robot should be liberal in interpreting this field. A case
  809. insensitive substring match of the name without version information is
  810. recommended.
  811.  
  812.    If the value is `*', the record describes the default access policy
  813. for any robot that has not matched any of the other records. It is not
  814. allowed to have multiple such records in the `/robots.txt' file.
  815.  
  816. 
  817. File: wget.info,  Node: Disallow Field,  Next: Norobots Examples,  Prev: User-Agent Field,  Up: Robots
  818.  
  819. Disallow Field
  820. --------------
  821.  
  822.    The value of this field specifies a partial URL that is not to be
  823. visited. This can be a full path, or a partial path; any URL that
  824. starts with this value will not be retrieved. For example,
  825. `Disallow: /help' disallows both `/help.html' and `/help/index.html',
  826. whereas `Disallow: /help/' would disallow `/help/index.html' but allow
  827. `/help.html'.
  828.  
  829.    Any empty value, indicates that all URLs can be retrieved. At least
  830. one Disallow field needs to be present in a record.
  831.  
  832. 
  833. File: wget.info,  Node: Norobots Examples,  Prev: Disallow Field,  Up: Robots
  834.  
  835. Norobots Examples
  836. -----------------
  837.  
  838.    The following example `/robots.txt' file specifies that no robots
  839. should visit any URL starting with `/cyberworld/map/' or `/tmp/':
  840.  
  841.      # robots.txt for http://www.site.com/
  842.      
  843.      User-agent: *
  844.      Disallow: /cyberworld/map/ # This is an infinite virtual URL space
  845.      Disallow: /tmp/ # these will soon disappear
  846.  
  847.    This example `/robots.txt' file specifies that no robots should
  848. visit any URL starting with `/cyberworld/map/', except the robot called
  849. `cybermapper':
  850.  
  851.      # robots.txt for http://www.site.com/
  852.      
  853.      User-agent: *
  854.      Disallow: /cyberworld/map/ # This is an infinite virtual URL space
  855.      
  856.      # Cybermapper knows where to go.
  857.      User-agent: cybermapper
  858.      Disallow:
  859.  
  860.    This example indicates that no robots should visit this site further:
  861.  
  862.      # go away
  863.      User-agent: *
  864.      Disallow: /
  865.  
  866. 
  867. File: wget.info,  Node: Security Considerations,  Next: Contributors,  Prev: Robots,  Up: Appendices
  868.  
  869. Security Considerations
  870. =======================
  871.  
  872.    When using Wget, you must be aware that it is sends unencrypted
  873. passwords through the network, which may present a security problem.
  874. Here are the main issues, and some solutions.
  875.  
  876.   1. The passwords on the command line are visible using `ps'.  If this
  877.      is a problem, avoid putting passwords from the command line--e.g.
  878.      you can use `.netrc' for this.
  879.  
  880.   2. Only the insecure "basic" authentication scheme is supported in
  881.      HTTP, which also sends unencrypted passwords through the network
  882.      all routers and gateways.  Feel free to implement something better.
  883.  
  884.   3. The FTP passwords are also in no way encrypted.  There is no good
  885.      solution for this at the moment.
  886.  
  887.   4. Although the "normal" output of Wget tries to hide the passwords,
  888.      debugging logs show them, in all forms.  This problem is avoided by
  889.      being careful when you send debug logs (yes, even when you send
  890.      them to me).
  891.  
  892. 
  893. File: wget.info,  Node: Contributors,  Prev: Security Considerations,  Up: Appendices
  894.  
  895. Contributors
  896. ============
  897.  
  898.    GNU Wget was written by Hrvoje Niksic `<hniksic@srce.hr>'.  However,
  899. its development could never have gone as far as it has, were it not for
  900. the help of many people, either with bug reports, feature proposals,
  901. patches, or letters saying "Thanks!".
  902.  
  903.    Special thanks goes to the following people (no particular order):
  904.  
  905.    * Karsten Thygesen--donated FTP space and mailing list.
  906.  
  907.    * Shawn McHorse--bug reports and patches.
  908.  
  909.    * Kaveh R. Gazi--on-the-fly ansi2knr-ization.
  910.  
  911.    * Gordon Matzigkeit--`.netrc' support.
  912.  
  913.    * Zlatko Calusic, Drazen Kacar--feature suggestions and
  914.      "philosophical" discussions.
  915.  
  916.    * Darko Budor--port to Windows.
  917.  
  918.    * Antonio Rosella--help and suggestions.
  919.  
  920.    * Tomislav Petrovic, Mario Mikocevic--many bug reports and
  921.      suggestions.
  922.  
  923.    The following people have either provided bug reports, useful
  924. suggestoins, or beta tested the various releases:
  925.  
  926.    Dieter Baron, Roger Beeman, Mark Boyns, Kristijan Conkas, Damir
  927. Dzeko, Andrew Davison, Marc Duponcheel, Aleksandar Erkalovic, Gregor
  928. Hoffleit, Erik Magnus Hulthen, Richard Huveneers, Marijo Juric, Goran
  929. Kezunovic, Martin Kraemer, Tage Stabell-Kulo, Hrvoje Lacko, Francois
  930. Pinard, Andrew Pollock, Steve Pothier, Sven Sternberger, Markus
  931. Strasser, Russell Vincent, Tomislav Vujec, Jasmin Zainul, Bojan Zdrnja,
  932. Kristijan Zimmer.
  933.  
  934.    I apologize to all whom I forgot to mention (probably a lot).  Also
  935. thanks to all the subscribers of the Wget mailing list.
  936.  
  937.