[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Why does wget download Index.html file even though it is
From: |
Micah Cowan |
Subject: |
Re: [Bug-wget] Why does wget download Index.html file even though it is not there ? |
Date: |
Thu, 10 Jun 2010 11:48:58 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 |
On 06/10/2010 12:09 AM, Avinash wrote:
> Hi All,
>
> When I use any http URL with wget it shows downloading some index.html file
> whereas that file is not actually there on the server.
> Has it something to do with HTTP server setting ?
This happens when wget encounters a URL that ends in a slash. Since
there's no file name, wget has no idea what it should name it, but does
have to name it something. So it goes with the traditional "index.html"
filename.
> Is it true that index.html file will be downloaded in any case, irrespective
> of server settings ?
If you are using Wget 1.12 and later, and wish to change the default
filename, check out the --default-page option.
--
Micah J. Cowan
http://micah.cowan.name/