Re: Website + file bug: W3C check graphics file has no ext

On 12:08 AM 8/16/00 Rolf Hemmerling <hemmerling@geocities.com> wrote:

> page contains the W3C graphics
> http://validator.w3.org/images/vh40
> unfortunately with NO extension.
> This means that the implicit extension is .html with most browsers.

Any browser which does what you describe is broken by design.

Send data (96 bytes) on stream 2.
<00000000< GET /images/vh40 HTTP/1.0  
<0000001B< Accept: */*  
<00000028< Host: validator.w3.org  
<00000040< User-Agent: Interarchy/3.8d9  
<0000005E<   

Receive data (1120 bytes) on stream 2.
>00000000> HTTP/1.1 200 OK  
>00000011> Date: Thu, 17 Aug 2000 05:05:44 GMT  
>00000036> Server: Apache/1.3.12 (Unix)  
>00000054> Content-Location: vh40.png  
>00000070> Vary: negotiate,accept  
>00000088> TCN: choice  
>00000095> Last-Modified: Tue, 05 Oct 1999 18:15:48 GMT  
>000000C3> ETag: "1a264-31f-37fa4054;3912e2a7"  
>000000E8> Accept-Ranges: bytes  
>000000FE> Content-Length: 799  
>00000113> Connection: close  
>00000126> Content-Type: image/png  

The browser should be looking at the content-type returned by the server
and adjusting its behavior accordingly.

In fact, IE 5 Mac is *STILL* doing that very thing with files served up
as type text/plain that look like HTML.  If I have done that, it is for
good reason and the browser shouldn't override what the server tells it
about the content:

Send data (459 bytes) on stream 2.
<00000000< GET /~hermitlake/Testing123.txt HTTP/1.1  
<0000002A< Host: home.earthlink.net  
<00000044< Accept: */*  
<00000051< Accept-Language: en  
<00000066< Connection: Keep-Alive  
<0000007E< User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)  
<000000BB< UA-OS: MacOS  
<000000C9< UA-CPU: PPC  
<000000D6< Cookie: PSP30=Nzg1ODc2Nw==;
PSP20=dGdlcnNiYWNoQGVhcnRobGluay5uZX
<00000116< Q=; elnk_currentNF=0;
webmail.earthlink.net-mail=AJHKIGBLGKDKBLE
<00000156<
LFJIJHJJKEDHFCEIKBJHLELGKEKIKFLAKHEGLAKBLGDIKCLEGBLGLELHKBDILCKD
<00000196< GBKBKILADI  
<000001A2< Extension: Security/Remote-Passphrase  
<000001C9<   

Receive data (523 bytes) on stream 2.
>00000000> HTTP/1.1 200 OK  
>00000011> Date: Thu, 17 Aug 2000 05:09:09 GMT  
>00000036> Server: Apache/1.3.4 (Unix)  
>00000053> Last-Modified: Thu, 17 Aug 2000 05:08:22 GMT  
>00000081> ETag: "907c2c-ee-399b7346"  
>0000009D> Accept-Ranges: bytes  
>000000B3> Content-Length: 238  
>000000C8> Keep-Alive: timeout=15, max=100  
>000000E9> Connection: Keep-Alive  
>00000101> Content-Type: text/plain  


This gets rendered as HTML in the browser.  Bad IE.  As soon as I figure
out who to complain to, I will.
-- 
Jim Correia                                Bare Bones Software, Inc.
correia@barebones.com                     <http://web.barebones.com>

Received on Thursday, 17 August 2000 01:10:53 UTC