Newbie has question that's not exactly Python...
Chris Gonnerman
chris.gonnerman at usa.net
Tue Apr 3 23:28:36 EDT 2001
----- Original Message -----
From: "Dave LeBlanc" <whisper at oz.net>
Subject: Re: Newbie has question that's not exactly Python...
> I did an experiment where I tried to load a gif file into IE directly
> from disk (File:Open). Instead of displaying it inline, it brought up
> the helper app associated with gif files.
Doesn't work that way. IE uses it's internal mime-type handler when
processing Content-type: headers, but may call the helper app when
File:Open is used. My method is fundamentally correct.
> I believe that you'll have to add just a bit of html around your image
> before a browser is going to accept it. I don't believe that
> "content-type image/gif" is enough! According to the html standard, at
> least <html> is needed to start things off.
Nope again. The data following the blank line must be raw image data
of the type specified. Starting with a DTD or <html> tag is only done
when the Content-type: text/html is being processed (actually some browsers
"guess" that HTML is required when the type is text/plain and the data
"looks like" HTML... drives me nuts sometimes.)
More information about the Python-list
mailing list