On some sites when I try to download a file, if I use the browser the
file is saved with the correct name, but using Wget I get a diferent
name.

It seems that Wget ignores the Content-disposition HTTP header.

Ir you try to download, for example, the Sun Java Server Faces
reference implementation v1.0 from this URL:

http://192.18.97.54/ECom/EComTicketServlet/BEGINjsecom16d.sun.com-9e2e%3A40468515%3Abb9b32dc1eadcc48/-2147483648/304347855/1/441722/441710/304347855/2ts+/westCoastFSEND/jsf-1.0-fr-ri-oth-JPR/jsf-1.0-fr-ri-oth-JPR:1/jsf-1_0.zip

This URL redirects Wget to other address and Wget tries to download the
file. This are the HTTP headers:

 1 HTTP/1.1 200 OK
 2 Server: Netscape-Enterprise/6.0
 3 Date: Thu, 04 Mar 2004 01:43:02 GMT
 4 Content-length: 11268757
 5 Content-type: application/zip
 6 Content-disposition: attachment; filename=jsf-1_0.zip
 7 Connection: keep-alive

but Wget don't save the file as jsf-1_0.zip but with other very
diferent name.

Regards,
Rivas.


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

Reply via email to