Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
.shtm extension files in my browsers
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
psdasilva
Apprentice
Apprentice


Joined: 03 Sep 2005
Posts: 239

PostPosted: Sun Apr 29, 2007 3:32 pm    Post subject: .shtm extension files in my browsers Reply with quote

Hi!

All my installed browsers (ff, konqueror, opera) show *some* .shtm files, with html contents, as text source code. If I save them to the HD with .html extensions and then reopen those files they show up fine!
How do I "tell" the browsers to interpret these files?

Example:
http://ffden-2.phys.uaf.edu/212_fall2003.web.dir/Dane_Lenaker/refrigerator.shtm

Thanks
Paulo
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Sun Apr 29, 2007 3:59 pm    Post subject: Reply with quote

I'm pretty sure that's the server's fault. I've never seen .shtm before - usually it's .shtml. That could be confusing the servers, resulting in them passing the default content type of text/plain to us.
Back to top
View user's profile Send private message
qisback
n00b
n00b


Joined: 29 Apr 2007
Posts: 6
Location: Derby

PostPosted: Sun Apr 29, 2007 4:49 pm    Post subject: Reply with quote

yes if I remember correctly that is a server problem, some thing to do with the cgi interpretor.

I remember coming across it when I was setting apache up on my server, if you like I'll try dig out the exact problem and how I solved it.

-={Q}=-
Back to top
View user's profile Send private message
psdasilva
Apprentice
Apprentice


Joined: 03 Sep 2005
Posts: 239

PostPosted: Tue May 15, 2007 2:19 pm    Post subject: Reply with quote

At the time I posted this question I didn't know how browser/server protocol works. Apparently this has nothing to do with "extensions" but with the way Content-Type in the page is interpreted by the browser.
The site in question shows
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
and firefox displays this as a text while IE interprets it as html. Which is right? That's the question.

Nevertheless it is still strange that if I save this page to the HD, even with the extension .shtm, and reloaded it from there it interprets the page as html.

I don't know much about this stuff anyway ...
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 976
Location: The Village, Portmeirion

PostPosted: Tue May 15, 2007 7:04 pm    Post subject: Reply with quote

psdasilva wrote:
The site in question shows
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
and firefox displays this as a text while IE interprets it as html. Which is right? That's the question.
IE will make a guess based on the files content, Firefox won't. Is IE correct for guessing or is Firefox correct for doing what it's told?

The file is being sent as text/plain.

Edit:
http://httpd.apache.org/docs/1.3/misc/FAQ.html#ie-ignores-mime
Back to top
View user's profile Send private message
psdasilva
Apprentice
Apprentice


Joined: 03 Sep 2005
Posts: 239

PostPosted: Wed May 16, 2007 2:54 am    Post subject: Reply with quote

I misunderstood the way things work! In fact the server provides a Header and that's that header that tells what is the nature of the document. Anyway, when the file is on the HD how does the ff work? Does it look at the file extension or at the doc contents?

About which is right ...:
There are lots of pages like that. IE shows them. ff not. This, together with other less understandable cases, may put many people away from using ff.

Well ... this is a discussion for others fora. I posted the question here at first because I thought I had my ff misconfigured.
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 976
Location: The Village, Portmeirion

PostPosted: Wed May 16, 2007 8:45 pm    Post subject: Reply with quote

This should have a better explanation.
http://developer.mozilla.org/en/docs/How_Mozilla_determines_MIME_Types

Quote:
Well ... this is a discussion for others fora.

http://forums.mozillazine.org/viewtopic.php?t=66577
:lol: The flames are more passionate in the older threads 03-04 or so.

HTH
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
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