Subject:
|
Re: Unofficial Parts Update
|
Newsgroups:
|
lugnet.cad.dev.org.ldraw
|
Date:
|
Thu, 21 Jun 2001 08:31:42 GMT
|
Viewed:
|
746 times
|
| |
| |
"Chris Dee" <chris_w_dee@hotmail.com> wrote in message
news:GF9qKG.9Ln@lugnet.com...
> Nope - still just shows me the HTML source - and the .html extension is not
> included in the URL box. Same problem in Netscape 4.7 from different PC.
>
> If I cut an paste that HTML to a file, then I can open that file OK in
> Netscape.
Netscape is really picky about the HTTP content-type headers when read from
a server, and IE tends to ignore the content-type headers if there is HTML
in the file. Using Telnet to try and get parts_x902.html I found that the
browser first gets a "Document has moved" response pointing to
http://www.ldraw.org/library/unofficial/detail/parts_x902 (this explains
the .html disappearing). When the real file is retrieved the HTTP headers
are shown as:
HTTP/1.1 200 OK
Date: Thu, 21 Jun 2001 08:25:15 GMT
Server: Apache/1.3.19 (Unix) (Red-Hat/Linux) PHP/4.0.4pl1
Last-Modified: Wed, 20 Jun 2001 20:44:32 GMT
ETag: "5b028-24f-3b310b30"
Accept-Ranges: bytes
Content-Length: 591
Content-Type: text/plain
X-Pad: avoid browser bug
The content-type header tells NS that this is plain text, therefore NS
ignores HTML tags. IE sees HTML in the file and renders it anyway.
I believe that this is caused by the Apache server not having a mapping to
treat all files with no extension as HTML (this is normal). The problem is
that the files don't have .html extensions, there is a redirection happening
instead to map the .html URL to the file with no extension. If the files
themselves could be given the .html extension everything would be fixed :)
Dan
|
|
Message has 1 Reply: | | Re: Unofficial Parts Update
|
| (...) That sounds cool and reasonable, except that (AFAIK) the files *do* have .html extensions, there are no redirects involved. See, I'll just login to the server, and cd to the unofficial/parts dir, and do an ls -l, and you'll see that all the (...) (23 years ago, 21-Jun-01, to lugnet.cad.dev.org.ldraw)
|
Message is in Reply To:
| | Re: Unofficial Parts Update
|
| (...) Nope - still just shows me the HTML source - and the .html extension is not included in the URL box. Same problem in Netscape 4.7 from different PC. If I cut an paste that HTML to a file, then I can open that file OK in Netscape. Chris (23 years ago, 21-Jun-01, to lugnet.cad.dev.org.ldraw)
|
20 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|