On Thu, 20 May 2004 10:27:03 -0400, Geoffrey Talvola
>Interesting... the actual image in the example I just sent is a GIF, but I
>accidentally set the content-type to PNG in the servlet. It still renders
>properly in both IE and Firefox. I guess they are smart enough to recognize
>that the actual image type is GIF based on the first few characters of the
There is a lengthy and rather complicated web page on Microsoft's web
site that describes the byzantine heuristics that Internet Explorer
follows to decide the MIME type of the page. To me, the most bizarre
item is that it the Content-Type header is rather low on the list. IE
reads the data and attempts to automatically recognize the file type; if
it can guess the type with any amount of confidence, that overrides the
I would not have programmed it that way, personally.
- Tim Roberts, timr@...
Providenza & Boekelheide, Inc.