View previous topic :: View next topic |
Author |
Message |
psdasilva Apprentice
Joined: 03 Sep 2005 Posts: 239
|
Posted: Sun Apr 29, 2007 3:32 pm Post subject: .shtm extension files in my browsers |
|
|
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 |
|
|
tarpman Veteran
Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Sun Apr 29, 2007 3:59 pm Post subject: |
|
|
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 |
|
|
qisback n00b
Joined: 29 Apr 2007 Posts: 6 Location: Derby
|
Posted: Sun Apr 29, 2007 4:49 pm Post subject: |
|
|
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 |
|
|
psdasilva Apprentice
Joined: 03 Sep 2005 Posts: 239
|
Posted: Tue May 15, 2007 2:19 pm Post subject: |
|
|
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 |
|
|
skellr l33t
Joined: 18 Jun 2005 Posts: 976 Location: The Village, Portmeirion
|
Posted: Tue May 15, 2007 7:04 pm Post subject: |
|
|
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 |
|
|
psdasilva Apprentice
Joined: 03 Sep 2005 Posts: 239
|
Posted: Wed May 16, 2007 2:54 am Post subject: |
|
|
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 |
|
|
skellr l33t
Joined: 18 Jun 2005 Posts: 976 Location: The Village, Portmeirion
|
|
Back to top |
|
|
|