24 May '13 - 13:50 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Wrong Content-Types  (Read 5928 times)
Asbjorn
Guest
« on: 13 Aug '03 - 14:54 »
Reply with quoteQuote

You have to check what content-types the server sends out when serving files, especially when you want the file to be downloaded (and not displayed in the browser).

Internet Explorer has a bug that "intelligently" (it's not intelligent at all) decides the content-type upon the file-extension. E.g. the content-type ".html" is assumend "text/html", although the server miht send "Content-Type: application/something". All unknown extensions will most likely be downloaded, even if the content-type is known.

When I was to download the "Windows Classic skin"[1], my Mozilla Firebird 0.6.1 opened the file in the browser (displaying the binary output as plain text), which is absolutely correct behavior.

Why is this correct behavior? Because the content-type served was "text/plain" and not "application/octet-stream"[2] as it should be for unknown file types that should be downloaded. I can see that you are using Apache, and it's quite easy to add content-types based on extensions there. Just read about the AddType directive[3].

As there's probably not registered any official MIME-type for XMPlay Skin files, the right content-type to use is "application/octet-stream"[2]. Can you please set up Apache so it serves the right content types for different files?

____
[1] http://support.xmplay.com/Skins_Files/Windows%20Classic.xmpskin
[2] http://www.freesoft.org/CIE/RFC/1521/32.htm
[3] http://httpd.apache.org/docs/mod/mod_mime.html#addtype
Logged
Asbjorn
Guest
« Reply #1 on: 13 Aug '03 - 14:59 »
Reply with quoteQuote

I forgot to mention that you can view the headers of a specific URL with Delorie.com's HTTP Header Viewer: http://www.delorie.com/web/headers.html

The headers for the "Windows Classic skin"[1] are:


 HTTP/1.1 200 OK
 Date: Wed, 13 Aug 2003 13:29:59 GMT
 Server: Apache
 Last-Modified: Thu, 10 Jul 2003 13:52:01 GMT
 ETag: "3c02fe-cb91-3f0d6f81"
 Accept-Ranges: bytes
 Content-Length: 52113
 Connection: close
 Content-Type: text/plain


As you see, the "Content-Type" is set to "text/plain". This is not correct as I've explained above.

____
[1] http://www.delorie.com/web/headers.cgi?url=http%3A%2F%2Fsupport.xmplay.com%2FSkins_Files%2FWindows%2520Classic.xmpskin
Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #2 on: 13 Aug '03 - 15:34 »
Reply with quoteQuote

It should be ok now (I set it to "application/x-xmplay-skin", Netscape seemed to assume that "application/octet-stream" meant an EXE).

Thanks for the notification.
Logged
quark
Posts: 49


« Reply #3 on: 13 Aug '03 - 17:05 »
Reply with quoteQuote

Nice. Works like a charm now.

I have a question I don't find necessary to start a new thread for: How do I innstall the plugins / visual effects? I found out by an accident how the skins were to be "installed" (saved a skin file inside the XMPlay-folder) in XMPlay, but I can't get XMPlay to find the Plugins in the same way.

I can't find any information on how to innstall either skins or plugins. If it doesn't exist, maybe it should be created? If it does exist, can you point me to where? Smiley
Logged
Zarggg
Posts: 1239


« Reply #4 on: 13 Aug '03 - 18:09 »
Reply with quoteQuote

Hmm. Have we been targeted as a Tech Evangelism bug over at mozilla.org? Wink

*is ashamed he never brought this up before. Lips Sealed*

Oh, and Ian, you should be using Mozilla to test those things, not Netscape. Wink


Quote

I have a question I don't find necessary to start a new thread for: How do I innstall the plugins / visual effects? I found out by an accident how the skins were to be "installed" (saved a skin file inside the XMPlay-folder) in XMPlay, but I can't get XMPlay to find the Plugins in the same way.


Here's the "preferred" directory trees:

Plugins: %XMPlayDir%\Plugins\
Skins: %XMPlayDir%\Skins\
Visualizations: %XMPlayDir%\Vis\

where %XMPlayDir% is the directory where xmplay.exe is located. XMPlay itself will function correctly if these files are all contained in %XMPlayDir%, but certain visualizations (i.e., Rappa, WhiteCap) require this tree setup.

Also, the plugins off the Support Site have their own installers.
« Last Edit: 13 Aug '03 - 18:29 by Zarggg » Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #5 on: 15 Aug '03 - 13:40 »
Reply with quoteQuote

Quote
Oh, and Ian, you should be using Mozilla to test those things, not Netscape. Wink

I will next time I load up Linux, but I had NS6 installed and ready to go, so that's what I used to quickly confirm the problem... and it did Cheesy
Logged
quark
Posts: 49


« Reply #6 on: 15 Aug '03 - 15:55 »
Reply with quoteQuote

Quote

Hmm. Have we been targeted as a Tech Evangelism bug over at mozilla.org? Wink


Hehe. I don't work with the Mozilla project, but I use their browser as it's superior to Internet Explorer. Opera is a good alternative, but I find Mozilla to be the best one, especially the new Firebird.

Quote


Plugins: %XMPlayDir%\Plugins\
Skins: %XMPlayDir%\Skins\
Visualizations: %XMPlayDir%\Vis\


Also, the plugins off the Support Site have their own installers.


Ok, thanks. I've already tried to place the visualizations into the %XMPlayDir%\Vis\-folder, but there are still no visualizations available in XMPlay. I've tried to put the .svp-files into seperate folders underneath "Vis", directly into the "Vis"-folder, and into the %XMPlayDir% folder as well. Nothing works.

And also worth mentioning; I can't find that <b>any</b> of the visualizations I've downloaded have an installer bundeled with them. All the .zip-archives include, is a .svp and .txt file, and the .svp file aren't registered as anything in Windows and thus can't be opened.

Where can I find these installers, and what have I done wrong?
Logged
Zarggg
Posts: 1239


« Reply #7 on: 15 Aug '03 - 22:03 »
Reply with quoteQuote

Quote
Hehe. I don't work with the Mozilla project, but I use their browser as it's superior to Internet Explorer. Opera is a good alternative, but I find Mozilla to be the best one, especially the new Firebird.


I do, though, which was why I was asking. I was wondering if I missed it. Wink

Quote
Ok, thanks. I've already tried to place the visualizations into the %XMPlayDir%\Vis\-folder, but there are still no visualizations available in XMPlay. I've tried to put the .svp-files into seperate folders underneath "Vis", directly into the "Vis"-folder, and into the %XMPlayDir% folder as well. Nothing works.

And also worth mentioning; I can't find that <b>any</b> of the visualizations I've downloaded have an installer bundeled with them. All the .zip-archives include, is a .svp and .txt file, and the .svp file aren't registered as anything in Windows and thus can't be opened.

Where can I find these installers, and what have I done wrong?


No installers. Just unzip the contents into the Vis folder. Since Rappa requires visualizations (which is what the .SVPs are; they're Sonique visulizations) to be in individual directories, I put them in directories named after the .ZIP files. For example, visulization FOO available in the archive BAR.zip from the Support Site would be located at: %XMPlayDir%\Vis\BAR\FOO.svp

The visulizations are activated by selecting them from a right-click context menu in the Visulization pane (F4 is the hotkey, I believe).

If what I said is confusing, I believe the Support Site does a much better job of explaining this.

The installers I spoke of are for input plugins only.
« Last Edit: 15 Aug '03 - 22:13 by Zarggg » Logged
quark
Posts: 49


« Reply #8 on: 24 Aug '03 - 19:13 »
Reply with quoteQuote

Ah, of course. I mixed 'plugins' and 'visualizations' and thought the 'visualizations' were supposed to show up inside "Options and stuff" -> "Plugins & Skins". Of course it shouldn't. Thanks!
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines