lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev Incorrect content-type-headers


From: Ari Moisio
Subject: Re: lynx-dev Incorrect content-type-headers
Date: Sun, 21 Jun 1998 16:59:36 +0300 (EET DST)

On 20 Jun 1998, Jason F. McBrayer wrote:

> >>>>> "PW" == Philip Webb <address@hidden> writes:
> 
> PW> so a further question: does the server vary its response here
> PW> according to something in the page in question or does it respond
> PW> the same way for all pages it handles, which would seem to be very
> PW> awkward?
> 
> It depends on the particular http server in question.  Most servers
> set MIME content types based on extensions, though others set them
> based on local file-type (Mac) or based on a catalog of files and
> types, or on magic number.

  This particular server is Apache 1.2.5 and it uses mime.types-file to
match  file name extensions an mime types.  On that file there is type
text/html for both .htm and .html so the problem is prbably not in .htm
extensions.
 
> >> The problem stays: how to force Lynx to render the page as html
> >> despite mime-headers?
>  
> PW> is this something Lynx could & should provide for?
> 
> I'm not sure it's something Lynx should provide for, though it
> certainly could.  Maybe just more agressive behavior for -force-html.
> It should definately be only something invoked conciously by the user
> when needed, or else we fall into the MSIE evil of pretending to know
> better than the server what type a file is.

  I  agree completely. -force_html might be most intuitive way to handle
it. 

  I tried to look the source code, answer is somewhere in LYMainLoop.c,
but > 5000 lines of C with speech is too much... especially when C is not
my native language:-(

  There is very few sites like this, i have seen only this one, and
primarily these things should be fixed at the server side.
> -- 


--
Ari Moisio, Niittykatu 7, 41160 Tikkakoski, +358-40-5055239
<address@hidden><address@hidden><address@hidden>
PGP 0x3FAF0F05, fp 8A91 96E2 9864 D04D  575E 3EEE 72E9 DDD2
WWW: http://www.sci.fi/~armoi,http://www.arlainst.fi/~arimo


reply via email to

[Prev in Thread] Current Thread [Next in Thread]