If this function is used, no urls need be present on the command line. If there are urls both on the command line and in an input file, those on the command lines will be the first ones to be retrieved. If ‘--force-html’ is not specified, then file should consist of a series of URLs, one per line.
However, if you specify ‘--force-html’, the document will be
regarded as ‘html’. In that case you may have problems with
relative links, which you can solve either by adding <base
href="
url">
to the documents or by specifying
‘--base=url’ on the command line.
If the file is an external one, the document will be automatically treated as ‘html’ if the Content-Type matches ‘text/html’. Furthermore, the file's location will be implicitly used as base href if none was specified.
<base
href="
url">
to html, or using the ‘--base’ command-line
option.
BASE
tag in the html input file, with
URL as the value for the href
attribute.
For instance, if you specify ‘http://foo/bar/a.html’ for URL, and Wget reads ‘../baz/b.html’ from the input file, it would be resolved to ‘http://foo/baz/b.html’.