Jump to content

Pages coming across as text/plain, not text/html


steve_dunn2

Recommended Posts

There are a number of pages I can't get to using Netscape 7.02 today.

I first noticed it when looking for equipment reviews, but the

Contact Us page does the same thing. They're being tagged with a

content type of text/plain, not text/html, so instead of being

rendered as an HTML page, the HTML source is being displayed.

Netscape 4.79 does the same. The home page is fine, as are the forum

pages. I haven't visited any of those pages in a while but have never

seen this problem with them before.

 

IE6 manages to display those pages; I don't know how to get it to tell

me what the content type is supposed to be so I don't know if

photo.net is sending different content depending on my browser. Opera

7.03 also displays them correctly, and I don't know how to get it to

tell me what content type it's receiving.

Link to comment
Share on other sites

It is indeed the incorrect mime type. IE attempts to fake it, when it sees something that looks like HTML it renders it such. Mozilla, however, accepts the mime type as given.

 

------------------------------------------------------

 

Escape character is '^]'.

 

GET /contact-us HTTP/1.0

 

HTTP/1.0 200 OK

 

Content-Type: text/plain; charset=iso-8859-1

 

MIME-Version: 1.0

 

Date: Fri, 30 Apr 2004 01:11:37 GMT

 

Server: NaviServer/2.0 AOLserver/3.3.1+ad13

 

Content-Length: 7518

 

Connection: close

Link to comment
Share on other sites

You can "fix" this problem for now by using the full URL to a file rather than the trailing slash format.

<p>

For example:

<p>

<a href="/learn/optics/tc2/">http://www.photo.net/learn/optics/tc2/</a> will server text but...

<p>

<a href="/learn/optics/tc2/index.html">http://www.photo.net/learn/optics/tc2/index.html</a> will serve the same file as HTML.

<p>

It seems to be a server configuration problem. Brian mentioned elsewhere he has been doing things with the trailing slash vs. no trailing slash links and this seems likely to be a side effect of that. Hopefully he can configure the server to serve default files as HTML rather than text.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...