-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

> 2007/8/8, Micah Cowan <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:
> 
> Jack Black wrote:
> 
>> Ive noticed that Content-Disposition header filenames are ignored when
>> an input file is specified except for the first one.
>> The file from the first link in the input file is stored with the
> right
>> filename but the following files get saved as something like "
>> index.php?sid=123123...".
>> I'm using the latest svn source from this morning. When I'm
> downloading
>> every file one after another they are named right.
> 
> Are you still able to reproduce this? Because, I'm not. I can't seem to
> reproduce it with the trunk code as of 7/5, either, but then, that code
> had other problems, with some HEAD-related issues.
> 
> If you can still reproduce this problem, could you please give a
> real-life example input file that produces this problem that we can test
> with? And perhaps attach the --debug output from wget...

Jack Black wrote:
> Yes I'm still able to reproduce this. I'm sorry I cant give you this
> real-life example. Its a little private community of some close friends.
> But Ive run wget with the --debug option and pasted the output here:
> http://pastebin.com/m68332415
> One thing I haven't told you in my first message is that I'm using an
> SSL-encrypted connection. I'm not sure if this could affect it in any case.

> The wget version Ive used to test this was build this morning
> (wget-svn-2329)
> There were 2 links in the "links" input file. The first file from the
> first link is named correct but the second (and further) doesn't.

It appears that the connection is closed after each GET finished, and
that Wget detects this when it sends the HEAD for the next item, and
detects it as an error, so doesn't retry the HEAD; and then additionally
ignores the header from the GET response.

So, it looks like there are two problems: Wget should be respecting the
Content-Disposition header from the GET response, when a HEAD attempt
failes; and Wget should be retrying the HEAD request when a connection
is lost.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGu2Ku7M8hyUobTrERCIMfAJ4g+Bphblio2hKgkWZEiQLdjut2fQCfZ8RG
7eEp0SkG9AE5qIOAWmAmmQk=
=Mjuu
-----END PGP SIGNATURE-----

Reply via email to