Adding MIME type not enough?

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
exo99
-


Joined: 03 May 2007
Posts: 4

PostPosted: Sat Aug 18, 2007 10:15 am    Post subject: Adding MIME type not enough? Reply with quote

Hey, got a quick question, hopefully someone can help me with.

I recently setup a new MIME type in the MIME type configuration panel on Abyss Web Serv 2x. I added...

application/x-bittorrent and then --> torrent for the extension.

Porblem is then when i click on a .torrent link on a web page i am serving, it still comes up as Unknown in IE without the Open or Save dialog box. I have also tried restarting and completly shutting down and powering on the server but still no luck.

Anyone have another idea i could try to get .torrent links working on my site?
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sat Aug 18, 2007 4:05 pm    Post subject: Reply with quote

Maybe it's your browser? Have you tried flushing your browser's cache?
Back to top View user's profile Send private message Visit poster's website
exo99
-


Joined: 03 May 2007
Posts: 4

PostPosted: Sat Aug 18, 2007 4:54 pm    Post subject: Reply with quote

ya tried that also... history, temp files, cookies etc. torrent links on other sites work fine btw.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sat Aug 18, 2007 5:53 pm    Post subject: Reply with quote

Can you link us to one of the torrent links, so that we may test it also?
Back to top View user's profile Send private message Visit poster's website
exo99
-


Joined: 03 May 2007
Posts: 4

PostPosted: Sat Aug 18, 2007 6:27 pm    Post subject: Reply with quote

Ok i found the problem and although i dont understand it, i did manage to make it work.

In my particular situation i have a download.php which is part of a tracker website/script and in that file i have the code...

header("Content-Type: application/x-bittorrent");
header('Content-Disposition: attachment; filename="'.$mysiteurl.''.$f.'"');
print($alltorrent);

but if i remove the .$mysiteurl. then it works fine.

header("Content-Type: application/x-bittorrent");
header('Content-Disposition: attachment; filename="'.$f.'"');
print($alltorrent);
Back to top View user's profile Send private message
pkSML
-


Joined: 29 May 2006
Posts: 955
Location: Michigan, USA

PostPosted: Sat Aug 18, 2007 10:37 pm    Post subject: Reply with quote

The filename attribute in the Content-Disposition header is not to be a URL. It is only supposed to be a standard file system name.

Example shown here: http://support.microsoft.com/kb/260519
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
exo99
-


Joined: 03 May 2007
Posts: 4

PostPosted: Sun Aug 19, 2007 4:50 am    Post subject: Reply with quote

Thank you very much, i have passed your posted link and revelent info onto the dev of the tracker website script to let them know.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Aug 19, 2007 11:45 pm    Post subject: Reply with quote

exo99,

Your MIME type header is generated by a script so the MIME table is not used here (it is only used when the file is static i.e. not generated by a script).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group