Re: wget 1.11 alpha1 - content disposition filename

2006-07-17 Thread Mauro Tortonesi

Jochen Roderburg ha scritto:

Hi,

I was happy to see that a long missed future was now implemented in this alpha,
namely the interpretaion of the filename in the content dispostion header.
Just recently I had hacked a little script together to achieve this, when I
wanted to download a greater number of files where this was used  ;-)

I had a few cases, however, which did not come out as expected, but I think the
error is this time in the sending web application and not in wget.

E.g, a file which was supposed to have the name BW.txt came with the header:
Content-Disposition: attachment; filename=Bamp;W.txt;


the error is definitely in the web application. the correct header would be:

Content-Disposition: attachment; filename=BW.txt;


All programs I tried (the new wget and several browsers and my own script ;-)
seemed to stop parsing at the first semicolon and produced the filename Bamp.

Any thoughts ??


i think that the filename parsing heuristics currently implemented in 
wget are fine. you really can't do much better in this case.


--
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi  http://www.tortonesi.com

University of Ferrara - Dept. of Eng.http://www.ing.unife.it
GNU Wget - HTTP/FTP file retrieval tool  http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linuxhttp://www.deepspace6.net
Ferrara Linux User Group http://www.ferrara.linux.it


Re: wget 1.11 alpha1 - content disposition filename

2006-07-17 Thread Hrvoje Niksic
Jochen Roderburg [EMAIL PROTECTED] writes:

 E.g, a file which was supposed to have the name BW.txt came with the header:
 Content-Disposition: attachment; filename=Bamp;W.txt;
 All programs I tried (the new wget and several browsers and my own script ;-)
 seemed to stop parsing at the first semicolon and produced the filename Bamp.

Unfortunately, if it doesn't work in web browsers, how can it be
expected to work in Wget?  The server-side software should be fixed.


Re: wget 1.11 alpha1 - content disposition filename

2006-07-17 Thread Jochen Roderburg
Zitat von Hrvoje Niksic [EMAIL PROTECTED]:

 Jochen Roderburg [EMAIL PROTECTED] writes:

  E.g, a file which was supposed to have the name BW.txt came with the
 header:
  Content-Disposition: attachment; filename=Bamp;W.txt;
  All programs I tried (the new wget and several browsers and my own script
 ;-)
  seemed to stop parsing at the first semicolon and produced the filename
 Bamp.

 Unfortunately, if it doesn't work in web browsers, how can it be
 expected to work in Wget?  The server-side software should be fixed.


I mainly wanted to hear from some HTTP/HTML-Experts that I was correct with my
assumption that the problem here is at the server side  ;-)
Thank you, Mauro and Hrvoje, for confirming that.

Regards, J.Roderburg