On Thursday 30 November 2006 15:50, Todd Zullinger wrote: >Gene Heskett wrote: >> On Thursday 30 November 2006 09:37, Todd Zullinger wrote: > >[...] > >>>The lightscribe.com site has an incorrected mime-type set for .rpm >>>files (audio/x-pn-realaudio-plugin), at least for .rpm files as most >>>of us are used to them. You can use wget to download it: >> >> That's not lacies mistake > >Yes, it is their mistake. They are returning the wrong mime-type. >See for yourself with curl: > >$ curl --head > http://www.lightscribe.com/downloadSection/linux/downloads/lightscribe- >1.4.124.1-linux-2.6-intel.rpm HTTP/1.1 200 OK >Content-Length: 489040 >Content-Type: audio/x-pn-realaudio-plugin <----- wrong >Last-Modified: Thu, 02 Nov 2006 20:20:20 GMT >Accept-Ranges: bytes >ETag: "05a6c51bcfec61:79d" >Server: Microsoft-IIS/6.0 >X-Powered-By: ASP.NET >Date: Thu, 30 Nov 2006 20:41:09 GMT > >Compare that to a server properly configured for .rpm software >packages: > >$ curl --head > http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedor >a/RPMS/curl-7.15.5-1.fc6.i386.rpm HTTP/1.1 200 OK >Date: Thu, 30 Nov 2006 20:48:48 GMT >Server: Apache >Last-Modified: Thu, 05 Oct 2006 23:21:52 GMT >ETag: "107529d-3a07b-9ee00400" >Accept-Ranges: bytes >Content-Length: 237691 >Cache-Control: max-age=86400 >Expires: Fri, 01 Dec 2006 20:48:48 GMT >Content-Type: application/x-rpm <----- right > >> its the browsers mimetype associations and can be fixed if one is >> determined to. > >You wouldn't be fixing it so much as rigging it if you forced all >content with the mime-type audio/x-pn-realaudio-plugin to be >downloaded or worse yet, sent to some tool that is expecting an rpm >package. What if you want to view an actual Real Audio .rpm? The >mime-type should be set properly by the web server to give the best >indication to the browser of what it should be doing with the content. > >> Its also very very commonly made, and can be worked around by right >> clicking and choosing the save as option from the pop-up. > >In this case that's difficult do to the lightscribe site not providing >a direct link to the file but instead making the user click "I Agree" >to a popup window and then redirecting to the (wrongly labelled) .rpm >file. I see. Interesting is that the fedora page didn't even have a "content-type' listing. But it usually works. What should the lacie site be returning as a content type? -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Yahoo.com and AOL/TW attorneys please note, additions to the above message by Gene Heskett are: Copyright 2006 by Maurice Eugene Heskett, all rights reserved.