[ Sorry for answering so late; I'm going through a back log. ]

"Mark Holt" <[EMAIL PROTECTED]> writes:

> I am writing a site copier program for a free web hosting company.
> In testing the -k option, I find that it only converts absolute
> links to relative links if it has already downloaded the page in
> question through a relative link.  BUT if there is only one link to
> a certain page, and that link is absolute, the link won't be
> converted and the document won't get downloaded.  Is this accurate?

Two things here:

* What does and what doesn't get downloaded is a function of the
  parameters you specify.  You can tell Wget to only download relative
  links, and it will happily do so.  But if you don't tell it that,
  and it still refuses to download absolute links, it's a bug.

* What gets converted is a function of what was downloaded.  A link
  that was downloaded will be converted to a relative link referring
  to the relative position of the downloaded file.  A link that was
  not downloaded will be converted to an absolute link (http://...).
  If this doesn't happen, it's a bug.

Having said that, please also note that sometimes strange URLs,
redirections, etc., can confuse Wget.  The recursive retrieval and URL
handling logic has been vastly improved for Wget 1.8 (currently
available through CVS), and many of these bugs have been fixed.

If you have time and still have this problem, please download the
latest CVS sources and see if the problem persists.
http://wget.sunsite.dk explains how to download the sources from CVS.

Reply via email to