Re: unviewable images
by Noone Special <pfarabee(at)indy.net>
|
| Date: |
Mon, 1 Feb 1999 11:39:25 -0500 (EST) |
| To: |
graphics <hwg-graphics(at)hwg.org> |
| In-Reply-To: |
webscape1 |
| |
todo: View
Thread,
Original
|
|
Steve Loney wrote:
> http://www.achinc.com/ach/index.html
> is the site. (requested by Jack Weaver)
>
> Right clicking & saving gives you a copy of the same nonsense you get when
> right clicking & trying to "view image". (NN4.5)
>
> GIF89a(BINARY DATA DELETED)
Please don't include binary data in an email message.
OK, here is what I found (which is the same as what I suspected.. go fig ;)
This is a capture from a telnet session to port 80 of the host in
question. I sent the GET command to request an image, and here's what I
got:
-------------------------------------------------------------------
[indy4]/home/IndyNet/web {web}: telnet www.achinc.com 80
Trying 199.250.240.66 ...
Connected to www.achinc.com.
Escape character is '^]'.
GET /ach/Media/prodbut.gif HTTP/1.0
HTTP/1.0 200 OK
MIME-Version: 1.0
Server: WebSTAR/2.1 ID/51815
Message-ID: <b2dac9f2.960(at)www.i-285.com>
Date: Mon, 01 Feb 1999 16:13:55 GMT
Last-Modified: Tue, 07 Apr 1998 17:38:58 GMT
Content-type: text/html
Content-length: 1109
GIF89a
BinaryData
-------------------------------------------------------------------
Notice the Content-type line...
Content-type: text/html
That means that .gif files are being sent as text/html documents instead
of image/gif documents. The reason the browser can display it in the web
page is because it is looking for an image (the <IMG> tag puts the
document into context) instead of an html. Just viewing the document,
however, the browser will accept whatever MIME type it is sent as.. which
in this case is "text/html"
NOTE: what mime type a file is sent as should NOT affect your ability to
save it on your hard drive and open it in an editor. All HTTP transfers
are (should be) treated as binary information and not ASCII, so there
should be no translation issues to deal with, and you should still recieve
all data for the image. Of course, it might drive your browser insane..
my Netscape 4.0 couldn't even bring up a right-click menu for half the
images, for instance.
In any case, it is definately a problem, and should be brought to the
attention of the admin of the server, as they are sending documents as the
wrong type, which could conceivably break a browser somewhere.
Pat
HWG: hwg-graphics mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.