[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Incorrect filena,es in linux version
From: |
Ángel González |
Subject: |
Re: [Bug-wget] Incorrect filena,es in linux version |
Date: |
Mon, 02 May 2011 16:06:45 +0200 |
User-agent: |
Thunderbird |
kns wrote:
> Hello.
> In linux (tested on debian) version of wget 1.12 it saves files with
> incorrect name.
>
> Example:
> wget
> http://sourceforge.net/projects/logs2html/files/logs2html.mod/2.4.3/logs2html.mod-2.4.3.zip/download
> 2011-05-02 03:28:28 (915 KB/s) - “download” saved [204412/204412]
>
> or
>
> wget egghelp.net
> 2011-05-02 03:24:37 (51.1 MB/s) - “index.html” saved [1438160/1438160]
>
> This links has been redirected to archives, but wget hasn't extract name from
> link.
>
> In cygwin version it ok.
>
> Thank you.
You are probably using an older version in cygwin. To get the redirected
name, you need to pass
the --trust-server-names option (or adding trust_server_names = on to
your wgetrc). But note
that using redirected names could be a security problem if the server
uses a filename which
another program executes automatically.